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.001288/0.001288, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001492/0.001492, allocations: 217.6 kB / 23.03 MB, free: 4.922 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.458/1.458, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.01195/0.01195, allocations: 2.811 MB / 316 MB, free: 104 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="cs",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.001916/0.001916, allocations: 67.89 kB / 439.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09638, allocations: 54.17 MB / 493.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01091/0.1073, allocations: 8.338 MB / 0.4902 GB, free: 14.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007622/0.1149, allocations: 7.416 MB / 0.4974 GB, free: 7.215 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.1151, allocations: 4 kB / 0.4974 GB, free: 7.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005476/0.1156, allocations: 131.2 kB / 0.4976 GB, free: 7.082 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003312/0.1159, allocations: 103.3 kB / 0.4977 GB, free: 6.98 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.003789/0.1197, allocations: 1.44 MB / 0.4991 GB, free: 5.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004344/0.1202, allocations: 274.6 kB / 0.4993 GB, free: 5.262 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.83e-05/0.1202, allocations: 17.75 kB / 0.4993 GB, free: 5.246 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.3112/0.4314, allocations: 12.92 MB / 0.512 GB, free: 9.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004727/0.4319, allocations: 90.11 kB / 0.512 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.666e-05/0.4319, allocations: 7.344 kB / 0.5121 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001336/0.4333, allocations: 474.9 kB / 0.5125 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.997e-05/0.4333, allocations: 39.86 kB / 0.5125 GB, free: 9.438 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.4334, allocations: 73.7 kB / 0.5126 GB, free: 9.438 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.4348, allocations: 0.5061 MB / 0.5131 GB, free: 9.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.4348, allocations: 1.344 kB / 0.5131 GB, free: 9.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4348, allocations: 4 kB / 0.5131 GB, free: 9.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.4348, allocations: 0 / 0.5131 GB, free: 9.41 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.0008496/0.4357, allocations: 499.1 kB / 0.5136 GB, free: 9.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.4357, allocations: 9.969 kB / 0.5136 GB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.004e-05/0.4358, allocations: 3.625 kB / 0.5136 GB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.365e-05/0.4358, allocations: 51.53 kB / 0.5137 GB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003673/0.4362, allocations: 56.66 kB / 0.5137 GB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.4364, allocations: 153.2 kB / 0.5139 GB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.4364, allocations: 7.594 kB / 0.5139 GB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.014e-05/0.4364, allocations: 14.22 kB / 0.5139 GB, free: 8.867 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005415/0.437, allocations: 297.3 kB / 0.5142 GB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.437, allocations: 0 / 0.5142 GB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.437, allocations: 5.594 kB / 0.5142 GB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.437, allocations: 13 kB / 0.5142 GB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005121/0.4375, allocations: 202.9 kB / 0.5144 GB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007434/0.4383, allocations: 0.6555 MB / 0.515 GB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005114/0.4388, allocations: 199.5 kB / 0.5152 GB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.439, allocations: 136.8 kB / 0.5153 GB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001688/0.4392, allocations: 97.36 kB / 0.5154 GB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.4392, allocations: 38.28 kB / 0.5155 GB, free: 8.242 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.873e-06/0.4392, allocations: 1.375 kB / 0.5155 GB, free: 8.242 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002805/0.442, allocations: 1.166 MB / 0.5166 GB, free: 8.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.16e-05/0.442, allocations: 57.34 kB / 0.5167 GB, free: 7.941 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.311e-05/0.4421, allocations: 133.4 kB / 0.5168 GB, free: 7.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.4421, allocations: 26.86 kB / 0.5168 GB, free: 7.809 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.531e-05/0.4422, allocations: 110.8 kB / 0.5169 GB, free: 7.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-05/0.4423, allocations: 162.6 kB / 0.5171 GB, free: 7.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.155e-05/0.4424, allocations: 57.61 kB / 0.5171 GB, free: 7.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.219e-05/0.4424, allocations: 331.2 kB / 0.5174 GB, free: 7.277 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.4427, allocations: 131.2 kB / 0.5176 GB, free: 7.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.4429, allocations: 193.5 kB / 0.5177 GB, free: 7.211 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.444, allocations: 350 kB / 0.5181 GB, free: 7.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.444, allocations: 4.188 kB / 0.5181 GB, free: 7.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001219/0.4452, allocations: 481.2 kB / 0.5185 GB, free: 7.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.4452, allocations: 9.469 kB / 0.5186 GB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.4452, allocations: 6.344 kB / 0.5186 GB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008407/0.4461, allocations: 146.1 kB / 0.5187 GB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.4462, allocations: 30.83 kB / 0.5187 GB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005092/0.4467, allocations: 0.6538 MB / 0.5194 GB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.4469, allocations: 10.62 kB / 0.5194 GB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.4469, allocations: 11.36 kB / 0.5194 GB, free: 6.535 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.0001066/0.447, allocations: 141.1 kB / 0.5195 GB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.032e-05/0.4471, allocations: 20.42 kB / 0.5195 GB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.358e-05/0.4472, allocations: 28.41 kB / 0.5196 GB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.4472, allocations: 8.906 kB / 0.5196 GB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.4472, allocations: 1.5 kB / 0.5196 GB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4472, allocations: 1.453 kB / 0.5196 GB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.4475, allocations: 249 kB / 0.5198 GB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4475, allocations: 2.422 kB / 0.5198 GB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.4477, allocations: 33.7 kB / 0.5198 GB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003684/0.448, allocations: 74.19 kB / 0.5199 GB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.4481, allocations: 10.91 kB / 0.5199 GB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009621/0.449, allocations: 1.445 MB / 0.5213 GB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.449, allocations: 1.375 kB / 0.5213 GB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.4501, allocations: 0.7138 MB / 0.522 GB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.4501, allocations: 17.36 kB / 0.5221 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.4502, allocations: 6.688 kB / 0.5221 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.4503, allocations: 10.69 kB / 0.5221 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.639e-05/0.4504, allocations: 25.88 kB / 0.5221 GB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.4504, allocations: 5.484 kB / 0.5221 GB, free: 4.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.021e-05/0.4505, allocations: 104 kB / 0.5222 GB, free: 4.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4505, allocations: 1.094 kB / 0.5222 GB, free: 4.621 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.4509, allocations: 63.19 kB / 0.5223 GB, free: 4.617 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.001453/0.4523, allocations: 1.264 MB / 0.5235 GB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007605/0.4531, allocations: 336.4 kB / 0.5238 GB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4531, allocations: 1.156 kB / 0.5238 GB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005755/0.4536, allocations: 298.8 kB / 0.5241 GB, free: 3.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006495/0.4543, allocations: 105.8 kB / 0.5242 GB, free: 3.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.4587, allocations: 2.946 MB / 0.5271 GB, free: 2.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.4588, allocations: 130.3 kB / 0.5272 GB, free: 2.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007046/0.4595, allocations: 106 kB / 0.5273 GB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.554e-05/0.4596, allocations: 54.36 kB / 0.5274 GB, free: 2.117 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4596, allocations: 0 / 0.5274 GB, free: 2.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.4925, allocations: 8.475 MB / 0.5356 GB, free: 15.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.04, allocations: 11.53 kB / 0.5356 GB, free: 15.36 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.692714066943154] Failed to read output from testmodel.py, exit status != 0: 14.440763400983997 14.468632494 14.028766119 Calling exit ...