Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006949/0.0006949, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008351/0.0008351, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9084/0.9084, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.01206/0.01206, allocations: 1.985 MB / 261.2 MB, free: 11.27 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 384.6 MB, free: 11.94 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.112e-05/2.296e-05, allocations: 6.219 kB / 384.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.008093/0.008116, allocations: 7.693 MB / 392.3 MB, free: 4.203 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.01309, allocations: 8.163 MB / 400.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.01322, allocations: 0 / 400.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004739/0.01369, allocations: 131.1 kB / 400.6 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003072/0.014, allocations: 107.2 kB / 400.7 MB, free: 11.78 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.003611/0.01761, allocations: 1.486 MB / 402.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004545/0.01807, allocations: 274.6 kB / 402.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.862e-05/0.01813, allocations: 9.797 kB / 402.5 MB, free: 10 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004001/0.02214, allocations: 161 kB / 402.6 MB, free: 9.848 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.0223, allocations: 63.81 kB / 402.7 MB, free: 9.785 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.02232, allocations: 12 kB / 402.7 MB, free: 9.773 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.02362, allocations: 475.6 kB / 403.2 MB, free: 9.309 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-05/0.02369, allocations: 31.83 kB / 403.2 MB, free: 9.277 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.158e-05/0.02376, allocations: 59.84 kB / 403.3 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.02485, allocations: 0.5182 MB / 403.8 MB, free: 8.699 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.02485, allocations: 3.938 kB / 403.8 MB, free: 8.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.02486, allocations: 0 / 403.8 MB, free: 8.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.02486, allocations: 0 / 403.8 MB, free: 8.695 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008317/0.02569, allocations: 492.8 kB / 404.3 MB, free: 8.184 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.02575, allocations: 8.031 kB / 404.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.013e-05/0.0258, allocations: 50.73 kB / 404.3 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.02604, allocations: 52.75 kB / 404.4 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.0263, allocations: 149.5 kB / 404.5 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.02633, allocations: 12.38 kB / 404.5 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.02635, allocations: 12.31 kB / 404.5 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003931/0.02675, allocations: 309.8 kB / 404.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.02676, allocations: 192 / 404.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.02678, allocations: 7.938 kB / 404.9 MB, free: 7.535 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.02679, allocations: 11.98 kB / 404.9 MB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.02708, allocations: 200.4 kB / 405.1 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006397/0.02772, allocations: 0.6464 MB / 405.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/0.02816, allocations: 234.5 kB / 405.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.02831, allocations: 136.7 kB / 406.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001649/0.02847, allocations: 99.92 kB / 406.2 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.0285, allocations: 38.56 kB / 406.2 MB, free: 6.109 MB / 330.7 MB Notification: Performance of pre-optimization done (n=44): time 1.843e-06/0.0285, allocations: 0 / 406.2 MB, free: 6.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001966/0.03047, allocations: 1.171 MB / 407.4 MB, free: 4.906 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.0305, allocations: 55.41 kB / 407.4 MB, free: 4.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.582e-05/0.03059, allocations: 121.8 kB / 407.6 MB, free: 4.711 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.03061, allocations: 33.7 kB / 407.6 MB, free: 4.672 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.517e-05/0.03066, allocations: 105 kB / 407.7 MB, free: 4.566 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.788e-05/0.03074, allocations: 162.5 kB / 407.8 MB, free: 4.406 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.329e-05/0.0308, allocations: 61.69 kB / 407.9 MB, free: 4.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.03089, allocations: 330.8 kB / 408.2 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.03103, allocations: 136.4 kB / 408.4 MB, free: 3.871 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.0312, allocations: 188.1 kB / 408.5 MB, free: 3.668 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.03152, allocations: 341 kB / 408.9 MB, free: 3.316 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.03152, allocations: 3.938 kB / 408.9 MB, free: 3.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006413/0.03216, allocations: 494.9 kB / 409.4 MB, free: 2.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.03218, allocations: 4 kB / 409.4 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.03219, allocations: 3.938 kB / 409.4 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004313/0.03262, allocations: 161.2 kB / 409.5 MB, free: 2.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.144e-05/0.0327, allocations: 31.98 kB / 409.6 MB, free: 2.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005116/0.03321, allocations: 0.6732 MB / 410.2 MB, free: 1.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.529e-05/0.0333, allocations: 15.94 kB / 410.3 MB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.03331, allocations: 8 kB / 410.3 MB, free: 1.898 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.03344, allocations: 133.8 kB / 410.4 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.03347, allocations: 19.91 kB / 410.4 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.256e-05/0.03352, allocations: 18.28 kB / 410.4 MB, free: 1.719 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.03353, allocations: 11.98 kB / 410.4 MB, free: 1.707 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.03354, allocations: 3.938 kB / 410.4 MB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.03355, allocations: 0 / 410.4 MB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.03377, allocations: 249.7 kB / 410.7 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.03377, allocations: 3.938 kB / 410.7 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.03391, allocations: 55.89 kB / 410.7 MB, free: 1.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.03409, allocations: 72.73 kB / 410.8 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.0341, allocations: 0 / 410.8 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1423/0.1764, allocations: 2.705 MB / 413.5 MB, free: 37.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1764, allocations: 2.031 kB / 413.5 MB, free: 37.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007559/0.1771, allocations: 0.7211 MB / 414.2 MB, free: 37.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.467e-05/0.1772, allocations: 12.39 kB / 414.3 MB, free: 37.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.1772, allocations: 6.203 kB / 414.3 MB, free: 37.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.174e-05/0.1773, allocations: 11.69 kB / 414.3 MB, free: 37.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.207e-05/0.1773, allocations: 27.53 kB / 414.3 MB, free: 37.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.1773, allocations: 8.453 kB / 414.3 MB, free: 37.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.819e-05/0.1774, allocations: 92.86 kB / 414.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1774, allocations: 0 / 414.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000268/0.1776, allocations: 65.95 kB / 414.5 MB, free: 37.63 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001179/0.1788, allocations: 1.278 MB / 415.7 MB, free: 36.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006197/0.1794, allocations: 347.8 kB / 416.1 MB, free: 36.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1794, allocations: 0 / 416.1 MB, free: 36.65 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003985/0.1798, allocations: 305.2 kB / 416.4 MB, free: 36.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.1803, allocations: 103.6 kB / 416.5 MB, free: 36.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.1832, allocations: 2.907 MB / 419.4 MB, free: 34.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.1833, allocations: 128.8 kB / 419.5 MB, free: 34.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.1836, allocations: 112.3 kB / 419.6 MB, free: 34.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.123e-05/0.1836, allocations: 56.67 kB / 419.7 MB, free: 34.46 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1836, allocations: 0 / 419.7 MB, free: 34.46 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.2084, allocations: 8.766 MB / 428.4 MB, free: 31.58 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.159/8.367, allocations: 11.56 kB / 428.5 MB, free: 31.57 MB / 330.7 MB " [Timeout remaining time 651] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.1 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.480977029539645] Failed to read output from testmodel.py, exit status != 0: 8.7157301902771 8.721664513 8.69515197 Calling exit ...