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.001337/0.001337, allocations: 99.64 kB / 18.95 MB, free: 2.539 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.001512/0.001512, allocations: 209.8 kB / 22.24 MB, free: 4.875 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.412/1.412, allocations: 230.6 MB / 256 MB, free: 7.777 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.01238/0.01238, allocations: 2.803 MB / 315.2 MB, free: 84 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.002053/0.002053, allocations: 71.88 kB / 438.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09795, allocations: 54.18 MB / 492.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01089/0.1088, allocations: 8.344 MB / 0.4894 GB, free: 14.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008354/0.1172, allocations: 7.416 MB / 0.4967 GB, free: 7.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.1174, allocations: 0 / 0.4967 GB, free: 7.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005238/0.1179, allocations: 131.2 kB / 0.4968 GB, free: 7.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003648/0.1182, allocations: 103.3 kB / 0.4969 GB, free: 6.93 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.00426/0.1225, allocations: 1.44 MB / 0.4983 GB, free: 5.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004318/0.1229, allocations: 270.7 kB / 0.4986 GB, free: 5.215 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.235e-05/0.123, allocations: 13.75 kB / 0.4986 GB, free: 5.203 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.3132/0.4362, allocations: 12.93 MB / 0.5112 GB, free: 9.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.4364, allocations: 88.52 kB / 0.5113 GB, free: 9.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.4364, allocations: 6.875 kB / 0.5113 GB, free: 9.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001458/0.4378, allocations: 474 kB / 0.5117 GB, free: 9.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.118e-05/0.4379, allocations: 32.77 kB / 0.5118 GB, free: 9.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.438, allocations: 72.75 kB / 0.5118 GB, free: 9.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.4392, allocations: 0.5072 MB / 0.5123 GB, free: 9.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4392, allocations: 0 / 0.5123 GB, free: 9.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4392, allocations: 2.734 kB / 0.5123 GB, free: 9.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.4392, allocations: 0.7031 kB / 0.5123 GB, free: 9.301 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.0007782/0.44, allocations: 499.4 kB / 0.5128 GB, free: 8.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.44, allocations: 9.766 kB / 0.5128 GB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/0.4401, allocations: 54.45 kB / 0.5129 GB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003351/0.4404, allocations: 53.52 kB / 0.5129 GB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.4406, allocations: 147.7 kB / 0.5131 GB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.4406, allocations: 8.406 kB / 0.5131 GB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.4407, allocations: 14.86 kB / 0.5131 GB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005201/0.4412, allocations: 303.1 kB / 0.5134 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.4412, allocations: 5.016 kB / 0.5134 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.4412, allocations: 3.844 kB / 0.5134 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.4412, allocations: 8.719 kB / 0.5134 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.4417, allocations: 199.3 kB / 0.5136 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006951/0.4424, allocations: 0.6445 MB / 0.5142 GB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004806/0.4429, allocations: 207.6 kB / 0.5144 GB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.4431, allocations: 133 kB / 0.5145 GB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001792/0.4433, allocations: 96.78 kB / 0.5146 GB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.4433, allocations: 40.55 kB / 0.5147 GB, free: 8.133 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.523e-06/0.4433, allocations: 1.281 kB / 0.5147 GB, free: 8.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.003705/0.447, allocations: 1.168 MB / 0.5158 GB, free: 7.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.447, allocations: 56.02 kB / 0.5159 GB, free: 7.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.339e-05/0.4471, allocations: 130.8 kB / 0.516 GB, free: 7.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.4471, allocations: 34.67 kB / 0.516 GB, free: 7.695 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.604e-05/0.4472, allocations: 109.9 kB / 0.5161 GB, free: 7.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.112e-05/0.4473, allocations: 161.8 kB / 0.5163 GB, free: 7.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.4474, allocations: 57 kB / 0.5163 GB, free: 7.473 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.71e-05/0.4474, allocations: 337.9 kB / 0.5167 GB, free: 7.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.4477, allocations: 124.5 kB / 0.5168 GB, free: 7.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.4479, allocations: 198.2 kB / 0.517 GB, free: 7.094 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005383/0.4485, allocations: 350.7 kB / 0.5173 GB, free: 7.023 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4485, allocations: 1.188 kB / 0.5173 GB, free: 7.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001112/0.4496, allocations: 482.9 kB / 0.5178 GB, free: 6.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.4496, allocations: 5.438 kB / 0.5178 GB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.4496, allocations: 2.125 kB / 0.5178 GB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007565/0.4504, allocations: 150.1 kB / 0.5179 GB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.4505, allocations: 34.83 kB / 0.518 GB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004801/0.451, allocations: 0.6551 MB / 0.5186 GB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.4511, allocations: 14.72 kB / 0.5186 GB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.4512, allocations: 10.31 kB / 0.5186 GB, free: 6.418 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.0001047/0.4513, allocations: 129.6 kB / 0.5187 GB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.625e-05/0.4513, allocations: 19.58 kB / 0.5188 GB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.848e-05/0.4514, allocations: 28.86 kB / 0.5188 GB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.4514, allocations: 9.984 kB / 0.5188 GB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.4514, allocations: 4 kB / 0.5188 GB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4514, allocations: 1.078 kB / 0.5188 GB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.4517, allocations: 248 kB / 0.519 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4517, allocations: 0.7031 kB / 0.519 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.4518, allocations: 36.59 kB / 0.5191 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003307/0.4522, allocations: 70.5 kB / 0.5191 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.4522, allocations: 10.06 kB / 0.5192 GB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009076/0.4531, allocations: 1.449 MB / 0.5206 GB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4531, allocations: 2.656 kB / 0.5206 GB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009838/0.4541, allocations: 0.6996 MB / 0.5213 GB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.884e-05/0.4541, allocations: 20.23 kB / 0.5213 GB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.4541, allocations: 4.688 kB / 0.5213 GB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.4543, allocations: 12.11 kB / 0.5213 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.759e-05/0.4544, allocations: 19.73 kB / 0.5213 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.4544, allocations: 14.36 kB / 0.5213 GB, free: 4.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.489e-05/0.4544, allocations: 99.81 kB / 0.5214 GB, free: 4.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4544, allocations: 0 / 0.5214 GB, free: 4.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003589/0.4548, allocations: 67.8 kB / 0.5215 GB, free: 4.512 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.001394/0.4562, allocations: 1.275 MB / 0.5227 GB, free: 3.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007354/0.4569, allocations: 342.7 kB / 0.523 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4569, allocations: 0 / 0.523 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005453/0.4575, allocations: 292.7 kB / 0.5233 GB, free: 3.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006473/0.4581, allocations: 107.6 kB / 0.5234 GB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.462, allocations: 2.938 MB / 0.5263 GB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.4621, allocations: 122.6 kB / 0.5264 GB, free: 2.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000251/0.4623, allocations: 115.3 kB / 0.5265 GB, free: 2.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.322e-05/0.4624, allocations: 56.81 kB / 0.5266 GB, free: 2.004 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4624, allocations: 0 / 0.5266 GB, free: 2.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03882/0.5012, allocations: 8.674 MB / 0.5351 GB, free: 14.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.55, allocations: 13.48 kB / 0.5351 GB, free: 14.96 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: 18.74363729171455] Failed to read output from testmodel.py, exit status != 0: 13.90063176676631 13.918828832 13.476192744 Calling exit ...