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.001286/0.001286, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001481/0.001481, allocations: 216.4 kB / 22.26 MB, free: 5.113 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.513/1.513, allocations: 230.6 MB / 256 MB, free: 8.047 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.0131/0.0131, allocations: 2.795 MB / 315.2 MB, free: 372 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.002096/0.002096, allocations: 67.88 kB / 438.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1303, allocations: 54.18 MB / 492.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01263/0.143, allocations: 9.157 MB / 0.4903 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009083/0.1521, allocations: 8.602 MB / 0.4987 GB, free: 5.605 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.1522, allocations: 3.938 kB / 0.4987 GB, free: 5.602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005983/0.1528, allocations: 151.1 kB / 0.4988 GB, free: 5.453 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003474/0.1532, allocations: 111.2 kB / 0.4989 GB, free: 5.344 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.004394/0.1576, allocations: 1.459 MB / 0.5004 GB, free: 3.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005129/0.1581, allocations: 266.8 kB / 0.5006 GB, free: 3.613 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.146e-05/0.1581, allocations: 9.75 kB / 0.5006 GB, free: 3.605 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.389/0.5471, allocations: 12.94 MB / 0.5133 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.5473, allocations: 87.55 kB / 0.5134 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.5473, allocations: 7.594 kB / 0.5134 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.5492, allocations: 476.7 kB / 0.5138 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.376e-05/0.5492, allocations: 29.34 kB / 0.5138 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.5494, allocations: 87.69 kB / 0.5139 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.5506, allocations: 0.506 MB / 0.5144 GB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.5506, allocations: 1.969 kB / 0.5144 GB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5506, allocations: 4 kB / 0.5144 GB, free: 7.398 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.5506, allocations: 0 / 0.5144 GB, free: 7.398 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.0007951/0.5514, allocations: 0.4934 MB / 0.5149 GB, free: 7.043 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.5515, allocations: 9.844 kB / 0.5149 GB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.5515, allocations: 49.77 kB / 0.515 GB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003329/0.5518, allocations: 54.09 kB / 0.515 GB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.552, allocations: 154.4 kB / 0.5152 GB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.5521, allocations: 10.14 kB / 0.5152 GB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.5521, allocations: 14.78 kB / 0.5152 GB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005234/0.5526, allocations: 244.2 kB / 0.5154 GB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.5526, allocations: 0 / 0.5154 GB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.5527, allocations: 5.094 kB / 0.5154 GB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.5527, allocations: 14.84 kB / 0.5154 GB, free: 6.789 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000493/0.5532, allocations: 206.1 kB / 0.5156 GB, free: 6.789 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007599/0.5539, allocations: 0.6586 MB / 0.5163 GB, free: 6.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.5545, allocations: 216.2 kB / 0.5165 GB, free: 6.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002935/0.5548, allocations: 130.5 kB / 0.5166 GB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002643/0.555, allocations: 104.4 kB / 0.5167 GB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.555, allocations: 34.97 kB / 0.5167 GB, free: 6.285 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.452e-06/0.555, allocations: 0 / 0.5167 GB, free: 6.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.003029/0.5581, allocations: 1.174 MB / 0.5179 GB, free: 6.043 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.215e-05/0.5581, allocations: 54.16 kB / 0.5179 GB, free: 5.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.04e-05/0.5582, allocations: 132.3 kB / 0.5181 GB, free: 5.879 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.5582, allocations: 29.45 kB / 0.5181 GB, free: 5.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.5582, allocations: 103.6 kB / 0.5182 GB, free: 5.754 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.945e-05/0.5583, allocations: 169.9 kB / 0.5184 GB, free: 5.641 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/0.5584, allocations: 61.39 kB / 0.5184 GB, free: 5.621 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.518e-05/0.5585, allocations: 329.5 kB / 0.5187 GB, free: 5.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.5587, allocations: 128.8 kB / 0.5189 GB, free: 5.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.5589, allocations: 193.7 kB / 0.519 GB, free: 5.246 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005069/0.5594, allocations: 354.8 kB / 0.5194 GB, free: 5.168 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.5594, allocations: 0 / 0.5194 GB, free: 5.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001202/0.5606, allocations: 485.8 kB / 0.5198 GB, free: 5.105 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.5607, allocations: 6.125 kB / 0.5198 GB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.5607, allocations: 1.625 kB / 0.5198 GB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007629/0.5614, allocations: 147.7 kB / 0.52 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.5616, allocations: 34.77 kB / 0.52 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004923/0.5621, allocations: 0.6529 MB / 0.5207 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.5622, allocations: 15.84 kB / 0.5207 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.5623, allocations: 11.47 kB / 0.5207 GB, free: 4.559 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.000108/0.5624, allocations: 137.6 kB / 0.5208 GB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.5624, allocations: 19.45 kB / 0.5208 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.109e-05/0.5625, allocations: 23.89 kB / 0.5209 GB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.5625, allocations: 11.78 kB / 0.5209 GB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.954e-06/0.5625, allocations: 0 / 0.5209 GB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.5625, allocations: 7.641 kB / 0.5209 GB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.5628, allocations: 261.2 kB / 0.5211 GB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.5628, allocations: 0.9688 kB / 0.5211 GB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.563, allocations: 41.66 kB / 0.5212 GB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003547/0.5633, allocations: 64.42 kB / 0.5212 GB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.5633, allocations: 15.23 kB / 0.5212 GB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009458/0.5643, allocations: 1.448 MB / 0.5227 GB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5643, allocations: 4.094 kB / 0.5227 GB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.5653, allocations: 0.7119 MB / 0.5234 GB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.5653, allocations: 17.84 kB / 0.5234 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.5654, allocations: 4.484 kB / 0.5234 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.5655, allocations: 9.734 kB / 0.5234 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.5656, allocations: 25.41 kB / 0.5234 GB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.5656, allocations: 12.28 kB / 0.5234 GB, free: 2.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.176e-05/0.5657, allocations: 96.5 kB / 0.5235 GB, free: 2.645 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5657, allocations: 0 / 0.5235 GB, free: 2.645 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.5661, allocations: 66.78 kB / 0.5236 GB, free: 2.641 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.001436/0.5675, allocations: 1.25 MB / 0.5248 GB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008595/0.5683, allocations: 338.1 kB / 0.5251 GB, free: 1.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5684, allocations: 5.031 kB / 0.5251 GB, free: 1.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007123/0.5691, allocations: 297.1 kB / 0.5254 GB, free: 1.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007559/0.5698, allocations: 105.5 kB / 0.5255 GB, free: 1.766 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004034/0.5739, allocations: 2.943 MB / 0.5284 GB, free: 236 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.5742, allocations: 0.7363 MB / 0.5291 GB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002663/0.5745, allocations: 113.9 kB / 0.5292 GB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.602e-05/0.5746, allocations: 53.12 kB / 0.5293 GB, free: 15.51 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5746, allocations: 4 kB / 0.5293 GB, free: 15.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0533/0.6279, allocations: 8.295 MB / 0.5374 GB, free: 12.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.12, allocations: 8.031 kB / 0.5374 GB, free: 12.67 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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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_CoolProp_CO2_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.672499338004855] Failed to read output from testmodel.py, exit status != 0: 14.468423500999052 14.503347044 13.946650184 Calling exit ...