Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.001409/0.001409, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.001477/0.001477, allocations: 215.2 kB / 22.25 MB, free: 5.082 MB / 14.72 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 1.543/1.543, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01359/0.01359, allocations: 2.803 MB / 315.2 MB, free: 332 kB / 238.1 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/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.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 64.19 kB / 438.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1087, allocations: 54.18 MB / 492.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01384/0.1226, allocations: 9.161 MB / 0.4903 GB, free: 14.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009671/0.1322, allocations: 8.606 MB / 0.4987 GB, free: 5.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.1324, allocations: 0 / 0.4987 GB, free: 5.539 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006131/0.133, allocations: 155.1 kB / 0.4988 GB, free: 5.387 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004621/0.1335, allocations: 107.2 kB / 0.4989 GB, free: 5.281 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.004455/0.138, allocations: 1.459 MB / 0.5004 GB, free: 3.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005386/0.1385, allocations: 270.8 kB / 0.5006 GB, free: 3.551 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.584e-05/0.1386, allocations: 9.75 kB / 0.5006 GB, free: 3.543 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function 'ExternalMedia.Common.CheckCoolPropOptions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFEvalConstants.evaluate: time 0.3456/0.4842, allocations: 12.93 MB / 0.5133 GB, free: 7.406 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.4844, allocations: 94.08 kB / 0.5134 GB, free: 7.402 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.184e-05/0.4844, allocations: 7.969 kB / 0.5134 GB, free: 7.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001765/0.4862, allocations: 472.4 kB / 0.5138 GB, free: 7.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.094e-05/0.4863, allocations: 33.38 kB / 0.5138 GB, free: 7.402 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.4864, allocations: 86.69 kB / 0.5139 GB, free: 7.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.488, allocations: 0.5073 MB / 0.5144 GB, free: 7.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.488, allocations: 0 / 0.5144 GB, free: 7.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.488, allocations: 4.203 kB / 0.5144 GB, free: 7.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.4881, allocations: 0.6562 kB / 0.5144 GB, free: 7.379 MB / 366.1 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.0009289/0.489, allocations: 0.4901 MB / 0.5149 GB, free: 7.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.489, allocations: 10.5 kB / 0.5149 GB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.29e-05/0.4891, allocations: 55.84 kB / 0.515 GB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003573/0.4894, allocations: 52.03 kB / 0.515 GB, free: 6.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.4896, allocations: 146.7 kB / 0.5152 GB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.4897, allocations: 9.312 kB / 0.5152 GB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.4897, allocations: 16.5 kB / 0.5152 GB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.4902, allocations: 247 kB / 0.5154 GB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.4902, allocations: 0 / 0.5154 GB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.4902, allocations: 4.781 kB / 0.5154 GB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.4902, allocations: 9.109 kB / 0.5154 GB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004769/0.4907, allocations: 206.2 kB / 0.5156 GB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007083/0.4914, allocations: 0.6634 MB / 0.5163 GB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.4919, allocations: 209 kB / 0.5165 GB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.4922, allocations: 138.1 kB / 0.5166 GB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002131/0.4924, allocations: 99.2 kB / 0.5167 GB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.4924, allocations: 40.28 kB / 0.5167 GB, free: 6.262 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.4924, allocations: 0.5625 kB / 0.5167 GB, free: 6.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002694/0.4951, allocations: 1.173 MB / 0.5179 GB, free: 6.023 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.955e-05/0.4951, allocations: 57.62 kB / 0.5179 GB, free: 5.957 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.778e-05/0.4952, allocations: 133.5 kB / 0.5181 GB, free: 5.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.4952, allocations: 26.8 kB / 0.5181 GB, free: 5.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.4953, allocations: 107.5 kB / 0.5182 GB, free: 5.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.397e-05/0.4954, allocations: 169 kB / 0.5184 GB, free: 5.617 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.789e-05/0.4954, allocations: 56.92 kB / 0.5184 GB, free: 5.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.115e-05/0.4955, allocations: 329.3 kB / 0.5187 GB, free: 5.289 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.4957, allocations: 134 kB / 0.5189 GB, free: 5.285 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002439/0.496, allocations: 183.9 kB / 0.519 GB, free: 5.227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004837/0.4965, allocations: 349.3 kB / 0.5194 GB, free: 5.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.4965, allocations: 1.375 kB / 0.5194 GB, free: 5.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001118/0.4976, allocations: 489.5 kB / 0.5198 GB, free: 5.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.4976, allocations: 7.172 kB / 0.5198 GB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.4976, allocations: 5.5 kB / 0.5198 GB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007328/0.4984, allocations: 143.4 kB / 0.52 GB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.4985, allocations: 35.45 kB / 0.52 GB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004937/0.499, allocations: 0.6453 MB / 0.5206 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.4991, allocations: 13.62 kB / 0.5207 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.4992, allocations: 10.66 kB / 0.5207 GB, free: 4.551 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 16 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.4993, allocations: 134.7 kB / 0.5208 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.4993, allocations: 20.27 kB / 0.5208 GB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.345e-05/0.4994, allocations: 29.14 kB / 0.5208 GB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.4994, allocations: 14.23 kB / 0.5209 GB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4994, allocations: 0 / 0.5209 GB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4994, allocations: 1.312 kB / 0.5209 GB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.4997, allocations: 268.4 kB / 0.5211 GB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4997, allocations: 0 / 0.5211 GB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.4999, allocations: 47.86 kB / 0.5212 GB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003407/0.5002, allocations: 63.06 kB / 0.5212 GB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.5003, allocations: 6.719 kB / 0.5212 GB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009405/0.5012, allocations: 1.45 MB / 0.5226 GB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5012, allocations: 0 / 0.5226 GB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.5022, allocations: 0.7124 MB / 0.5233 GB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.5023, allocations: 17.55 kB / 0.5234 GB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.5023, allocations: 5.812 kB / 0.5234 GB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.5025, allocations: 7.766 kB / 0.5234 GB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.255e-05/0.5026, allocations: 20.78 kB / 0.5234 GB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.5026, allocations: 14.25 kB / 0.5234 GB, free: 2.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.077e-05/0.5026, allocations: 99.95 kB / 0.5235 GB, free: 2.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5026, allocations: 4.062 kB / 0.5235 GB, free: 2.633 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003659/0.503, allocations: 71.23 kB / 0.5236 GB, free: 2.625 MB / 366.1 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 (19): * Single equations (assignments): 16 * 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): 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.002537/0.5055, allocations: 1.252 MB / 0.5248 GB, free: 1.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007687/0.5063, allocations: 345.1 kB / 0.5251 GB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5063, allocations: 0 / 0.5251 GB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005535/0.5069, allocations: 292.7 kB / 0.5254 GB, free: 1.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006498/0.5075, allocations: 107.4 kB / 0.5255 GB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003932/0.5114, allocations: 2.941 MB / 0.5284 GB, free: 224 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.5118, allocations: 0.7377 MB / 0.5291 GB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002601/0.5121, allocations: 109 kB / 0.5292 GB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.355e-05/0.5121, allocations: 56.55 kB / 0.5293 GB, free: 15.5 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5121, allocations: 0 / 0.5293 GB, free: 15.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03977/0.5519, allocations: 8.302 MB / 0.5374 GB, free: 12.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/13.86, allocations: 8.234 kB / 0.5374 GB, free: 12.66 MB / 382.1 MB " [Timeout remaining time 646] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --stepSize=0.1 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.438147401902825] Failed to read output from testmodel.py, exit status != 0: 14.209624795010313 14.242573232 13.748514324 Calling exit ...