Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.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.TestStatesSupercritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical",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.001128/0.001129, allocations: 112.5 kB / 15.73 MB, free: 76 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.001172/0.001172, allocations: 191.2 kB / 16.67 MB, free: 6.539 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1378/0.1378, allocations: 2.758 MB / 293.3 MB, free: 3.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001185, allocations: 59.91 kB / 405.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2546, allocations: 50.24 MB / 455.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical): time 0.01456/0.2692, allocations: 19.13 MB / 474.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005079/0.2743, allocations: 6.087 MB / 480.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.2748, allocations: 1.375 kB / 480.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009665/0.2758, allocations: 250.3 kB / 481.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003347/0.2791, allocations: 1.207 MB / 482.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.2794, allocations: 87.58 kB / 482.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.2798, allocations: 307.3 kB / 482.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.335e-05/0.2799, allocations: 18.48 kB / 482.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.707e-05/0.28, allocations: 96.25 kB / 482.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.2802, allocations: 109.8 kB / 482.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.2802, allocations: 12.38 kB / 482.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2611/0.5413, allocations: 38.45 MB / 0.5092 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.28e-05/0.5414, allocations: 35.72 kB / 0.5092 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002604/0.5417, allocations: 123.4 kB / 0.5093 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002692/0.5444, allocations: 0.5139 MB / 0.5098 GB, free: 3.715 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5444, allocations: 0 / 0.5098 GB, free: 3.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5444, allocations: 0 / 0.5098 GB, free: 3.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.5444, allocations: 0 / 0.5098 GB, free: 3.715 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0009001/0.5453, allocations: 0.5726 MB / 0.5104 GB, free: 3.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.5454, allocations: 12.03 kB / 0.5104 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.172e-05/0.5455, allocations: 62.72 kB / 0.5105 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001259/0.5468, allocations: 208.5 kB / 0.5106 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.547, allocations: 188.1 kB / 0.5108 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.547, allocations: 28.62 kB / 0.5109 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.073e-05/0.5471, allocations: 24 kB / 0.5109 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007203/0.5478, allocations: 345.6 kB / 0.5112 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.5478, allocations: 0 / 0.5112 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.5479, allocations: 4 kB / 0.5112 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.338e-05/0.5479, allocations: 12 kB / 0.5112 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005192/0.5484, allocations: 267.9 kB / 0.5115 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.551, allocations: 2.115 MB / 0.5135 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.5513, allocations: 141 kB / 0.5137 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.5515, allocations: 105.8 kB / 0.5138 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007659/0.5523, allocations: 0.6925 MB / 0.5145 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.5523, allocations: 38.56 kB / 0.5145 GB, free: 14.37 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.753e-06/0.5524, allocations: 0 / 0.5145 GB, free: 14.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003795/0.5527, allocations: 193.4 kB / 0.5147 GB, free: 14.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.5528, allocations: 81.11 kB / 0.5148 GB, free: 14.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.172e-05/0.5529, allocations: 105.8 kB / 0.5149 GB, free: 13.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.5529, allocations: 25.7 kB / 0.5149 GB, free: 13.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.61e-05/0.553, allocations: 164.4 kB / 0.515 GB, free: 13.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.582e-05/0.5531, allocations: 103.1 kB / 0.5151 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.33e-05/0.5532, allocations: 41.77 kB / 0.5152 GB, free: 13.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5533, allocations: 326.8 kB / 0.5155 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.472e-05/0.5534, allocations: 35.98 kB / 0.5155 GB, free: 13.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.545e-05/0.5535, allocations: 84.86 kB / 0.5156 GB, free: 13.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.5536, allocations: 146.5 kB / 0.5157 GB, free: 13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.5536, allocations: 0 / 0.5157 GB, free: 13 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000249/0.5539, allocations: 161.3 kB / 0.5159 GB, free: 12.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.5539, allocations: 8 kB / 0.5159 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.5539, allocations: 0 / 0.5159 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.554, allocations: 4.188 kB / 0.5159 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.369e-05/0.554, allocations: 20.17 kB / 0.5159 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.554, allocations: 0 / 0.5159 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.044e-05/0.5541, allocations: 19.78 kB / 0.5159 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.5541, allocations: 4 kB / 0.5159 GB, free: 12.78 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 (state2.phase,state1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001315/0.5543, allocations: 137.7 kB / 0.5161 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.977e-05/0.5543, allocations: 11.95 kB / 0.5161 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.909e-05/0.5544, allocations: 8.438 kB / 0.5161 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.5544, allocations: 0 / 0.5161 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.5544, allocations: 8 kB / 0.5161 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.5544, allocations: 7.922 kB / 0.5161 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003574/0.5548, allocations: 273.4 kB / 0.5164 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.5548, allocations: 0 / 0.5164 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.554e-05/0.5548, allocations: 3.984 kB / 0.5164 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.5548, allocations: 4 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/0.5549, allocations: 0 / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5549, allocations: 0 / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5549, allocations: 4 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.557, allocations: 319.1 kB / 0.5167 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.191e-05/0.557, allocations: 92.95 kB / 0.5168 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.5571, allocations: 8 kB / 0.5168 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.5572, allocations: 0 / 0.5168 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.043e-05/0.5572, allocations: 11.92 kB / 0.5168 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.5572, allocations: 4 kB / 0.5168 GB, free: 11.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.746e-05/0.5573, allocations: 79.28 kB / 0.5169 GB, free: 11.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5573, allocations: 0 / 0.5169 GB, free: 11.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004698/0.5578, allocations: 87.78 kB / 0.517 GB, free: 11.64 MB / 398.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: 2 (state2.phase,state1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.000852/0.5586, allocations: 0.94 MB / 0.5179 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003228/0.559, allocations: 220.3 kB / 0.5181 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.559, allocations: 0 / 0.5181 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.5592, allocations: 205.3 kB / 0.5183 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006589/0.5598, allocations: 89.92 kB / 0.5184 GB, free: 10.15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.5609, allocations: 0.5867 MB / 0.5189 GB, free: 9.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.5614, allocations: 0.7995 MB / 0.5197 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.5615, allocations: 25.2 kB / 0.5197 GB, free: 8.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.5617, allocations: 119.4 kB / 0.5199 GB, free: 8.547 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5617, allocations: 0 / 0.5199 GB, free: 8.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02798/0.5897, allocations: 8.081 MB / 0.5278 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.78, allocations: 12.02 kB / 0.5278 GB, free: 496 kB / 398.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe 2>&1)