Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002363/0.002363, allocations: 196.3 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1579/0.1579, allocations: 2.772 MB / 293.2 MB, free: 3.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001332, allocations: 63.91 kB / 354.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09181/0.09316, allocations: 50.23 MB / 404.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2032/0.2963, allocations: 50.69 MB / 455.4 MB, free: 21.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.3126, allocations: 29.1 MB / 484.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000607/0.3132, allocations: 2.938 kB / 484.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.3151, allocations: 0.617 MB / 485.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006892/0.322, allocations: 2.243 MB / 487.4 MB, free: 13.89 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium1.Medium.setSat_p'. [/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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008328/0.3304, allocations: 2.915 MB / 490.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.3318, allocations: 0.9303 MB / 491.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3319, allocations: 52.83 kB / 491.3 MB, free: 11.63 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.3357/0.6676, allocations: 50.62 MB / 0.5292 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008205/0.6685, allocations: 302.6 kB / 0.5295 GB, free: 8.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.6686, allocations: 40 kB / 0.5295 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1695/0.8381, allocations: 26.71 MB / 0.5556 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.8383, allocations: 115.5 kB / 0.5557 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001043/0.8394, allocations: 334.4 kB / 0.5561 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007267/0.8467, allocations: 1.828 MB / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.8467, allocations: 4 kB / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.8467, allocations: 0 / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.8468, allocations: 0 / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001761/0.8485, allocations: 1.116 MB / 0.5589 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.8486, allocations: 8.031 kB / 0.5589 GB, free: 10.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.8487, allocations: 119 kB / 0.5591 GB, free: 9.902 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/0.8508, allocations: 0.4958 MB / 0.5595 GB, free: 9.406 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.8513, allocations: 331.6 kB / 0.5599 GB, free: 9.043 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-05/0.8513, allocations: 45.81 kB / 0.5599 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.029e-05/0.8514, allocations: 59.94 kB / 0.56 GB, free: 8.941 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.8529, allocations: 0.8646 MB / 0.5608 GB, free: 8.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.853, allocations: 0 / 0.5608 GB, free: 8.027 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-05/0.853, allocations: 28 kB / 0.5608 GB, free: 8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-05/0.8531, allocations: 31.98 kB / 0.5609 GB, free: 7.969 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.8544, allocations: 0.7117 MB / 0.5615 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/0.8584, allocations: 5.043 MB / 0.5665 GB, free: 1.613 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006822/0.8591, allocations: 325.6 kB / 0.5668 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.8594, allocations: 221.6 kB / 0.567 GB, free: 1.055 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001343/0.8607, allocations: 1.535 MB / 0.5685 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.8608, allocations: 34.56 kB / 0.5685 GB, free: 15.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.216e-06/0.8608, allocations: 3.984 kB / 0.5685 GB, free: 15.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.003115/0.8639, allocations: 0.5885 MB / 0.5691 GB, free: 14.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.864, allocations: 89.11 kB / 0.5692 GB, free: 14.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.8642, allocations: 186.6 kB / 0.5694 GB, free: 14.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.8642, allocations: 29.7 kB / 0.5694 GB, free: 14.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.8644, allocations: 291.4 kB / 0.5697 GB, free: 14.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.8645, allocations: 228.5 kB / 0.5699 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.8647, allocations: 93.92 kB / 0.57 GB, free: 13.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.8648, allocations: 342.8 kB / 0.5703 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.865, allocations: 121.3 kB / 0.5704 GB, free: 13.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.8654, allocations: 304 kB / 0.5707 GB, free: 12.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/0.866, allocations: 492.4 kB / 0.5712 GB, free: 12.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.866, allocations: 0 / 0.5712 GB, free: 12.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007944/0.8668, allocations: 480.3 kB / 0.5716 GB, free: 11.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.8668, allocations: 8.656 kB / 0.5717 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.8669, allocations: 12 kB / 0.5717 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.8669, allocations: 8 kB / 0.5717 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005958/0.8675, allocations: 71.84 kB / 0.5717 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.55e-05/0.8675, allocations: 8 kB / 0.5717 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.8677, allocations: 59.3 kB / 0.5718 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.8678, allocations: 27.94 kB / 0.5718 GB, free: 11.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.868, allocations: 185.7 kB / 0.572 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.637e-05/0.8681, allocations: 27.56 kB / 0.572 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.516e-05/0.8682, allocations: 38.64 kB / 0.5721 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.8682, allocations: 0 / 0.5721 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.8682, allocations: 4 kB / 0.5721 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.8682, allocations: 0 / 0.5721 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000604/0.8688, allocations: 494.4 kB / 0.5725 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.8688, allocations: 0 / 0.5725 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.869, allocations: 31.92 kB / 0.5726 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/0.869, allocations: 3.938 kB / 0.5726 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.869, allocations: 4 kB / 0.5726 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.869, allocations: 3.984 kB / 0.5726 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.869, allocations: 4.156 kB / 0.5726 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006905/0.8697, allocations: 0.506 MB / 0.5731 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.202e-05/0.8698, allocations: 108.6 kB / 0.5732 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.061e-05/0.8699, allocations: 15.88 kB / 0.5732 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.87, allocations: 7.984 kB / 0.5732 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/0.8701, allocations: 23.92 kB / 0.5732 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.8701, allocations: 8 kB / 0.5732 GB, free: 10.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.8702, allocations: 119.2 kB / 0.5734 GB, free: 10.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8702, allocations: 0 / 0.5734 GB, free: 10.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007053/0.871, allocations: 195.3 kB / 0.5735 GB, free: 9.848 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001454/0.8724, allocations: 1.252 MB / 0.5748 GB, free: 8.562 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000912/0.8733, allocations: 0.5998 MB / 0.5753 GB, free: 7.945 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.8734, allocations: 0 / 0.5753 GB, free: 7.945 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004845/0.8739, allocations: 499.8 kB / 0.5758 GB, free: 7.387 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.8751, allocations: 204.8 kB / 0.576 GB, free: 7.188 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004325/0.8794, allocations: 3.566 MB / 0.5795 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005574/0.88, allocations: 0.9426 MB / 0.5804 GB, free: 2.422 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005576/0.8805, allocations: 257.9 kB / 0.5807 GB, free: 2.164 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003105/0.8808, allocations: 275.3 kB / 0.5809 GB, free: 1.895 MB / 446.1 MB Notification: Performance of SimCode: time 4.11e-07/0.8809, allocations: 0 / 0.5809 GB, free: 1.895 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1946/1.075, allocations: 17.42 MB / 0.5979 GB, free: 141.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/9.033, allocations: 6.188 kB / 0.598 GB, free: 141.2 MB / 446.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)