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.008774/0.008774, allocations: 95.77 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002023/0.002023, allocations: 200.7 kB / 16.68 MB, free: 5.969 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1515/0.1515, allocations: 2.764 MB / 293.3 MB, free: 3.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 63.91 kB / 405.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3051, allocations: 50.23 MB / 455.7 MB, free: 20.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical): time 0.01765/0.3228, allocations: 19.13 MB / 474.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004962/0.3278, allocations: 6.083 MB / 480.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003683/0.3282, allocations: 1.625 kB / 480.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008174/0.329, allocations: 255.4 kB / 481.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004129/0.3332, allocations: 1.203 MB / 482.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003274/0.3336, allocations: 82.84 kB / 482.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.3341, allocations: 307.6 kB / 482.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.474e-05/0.3341, allocations: 26.91 kB / 482.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.3343, allocations: 99.77 kB / 482.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.3344, allocations: 106.3 kB / 482.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.3344, allocations: 6.906 kB / 482.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2639/0.5983, allocations: 38.46 MB / 0.5092 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.5984, allocations: 31.78 kB / 0.5092 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003585/0.5988, allocations: 131.3 kB / 0.5093 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002789/0.6016, allocations: 0.5061 MB / 0.5098 GB, free: 3.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.6016, allocations: 0 / 0.5098 GB, free: 3.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.6016, allocations: 0 / 0.5098 GB, free: 3.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.6017, allocations: 0 / 0.5098 GB, free: 3.719 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.000763/0.6024, allocations: 0.5725 MB / 0.5104 GB, free: 3.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.6025, allocations: 16.03 kB / 0.5104 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.582e-05/0.6026, allocations: 66.72 kB / 0.5105 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000916/0.6035, allocations: 208.5 kB / 0.5107 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.6037, allocations: 188.1 kB / 0.5108 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.6038, allocations: 24.69 kB / 0.5109 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.582e-05/0.6038, allocations: 27.94 kB / 0.5109 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006029/0.6044, allocations: 341.6 kB / 0.5112 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.6045, allocations: 0 / 0.5112 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.6045, allocations: 8 kB / 0.5112 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.352e-05/0.6045, allocations: 15.98 kB / 0.5112 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004032/0.6049, allocations: 263.9 kB / 0.5115 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.6073, allocations: 2.115 MB / 0.5136 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.6075, allocations: 137 kB / 0.5137 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.6077, allocations: 105.8 kB / 0.5138 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007484/0.6084, allocations: 0.6926 MB / 0.5145 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.6085, allocations: 38.56 kB / 0.5145 GB, free: 14.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.013e-06/0.6085, allocations: 3.938 kB / 0.5145 GB, free: 14.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003939/0.6089, allocations: 173.6 kB / 0.5147 GB, free: 14.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.6089, allocations: 93.03 kB / 0.5148 GB, free: 14.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.446e-05/0.609, allocations: 105.9 kB / 0.5149 GB, free: 13.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.6091, allocations: 25.7 kB / 0.5149 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.6092, allocations: 164.4 kB / 0.515 GB, free: 13.78 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.6092, allocations: 103.1 kB / 0.5151 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.113e-05/0.6093, allocations: 37.7 kB / 0.5152 GB, free: 13.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.6094, allocations: 326.8 kB / 0.5155 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.312e-05/0.6095, allocations: 35.98 kB / 0.5155 GB, free: 13.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.111e-05/0.6096, allocations: 96.83 kB / 0.5156 GB, free: 13.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.6098, allocations: 138.5 kB / 0.5158 GB, free: 13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.6098, allocations: 4 kB / 0.5158 GB, free: 13 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002485/0.6101, allocations: 161.4 kB / 0.5159 GB, free: 12.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.6101, allocations: 8 kB / 0.5159 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.6101, allocations: 0 / 0.5159 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.6101, allocations: 0 / 0.5159 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.349e-05/0.6102, allocations: 19.94 kB / 0.5159 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.6102, allocations: 0 / 0.5159 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.506e-05/0.6103, allocations: 19.78 kB / 0.516 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.6103, allocations: 4 kB / 0.516 GB, free: 12.79 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.0001265/0.6105, allocations: 138 kB / 0.5161 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.199e-05/0.6105, allocations: 7.953 kB / 0.5161 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.6106, allocations: 12.44 kB / 0.5161 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.6106, allocations: 0 / 0.5161 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.6106, allocations: 4 kB / 0.5161 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.6106, allocations: 3.938 kB / 0.5161 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/0.611, allocations: 277.3 kB / 0.5164 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.6111, allocations: 4 kB / 0.5164 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.662e-05/0.6111, allocations: 0 / 0.5164 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.6111, allocations: 4 kB / 0.5164 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.6111, allocations: 7.938 kB / 0.5164 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.6111, allocations: 0 / 0.5164 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.6111, allocations: 8 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.6134, allocations: 315.2 kB / 0.5167 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.6135, allocations: 92.95 kB / 0.5168 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.6135, allocations: 4 kB / 0.5168 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.6136, allocations: 0 / 0.5168 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.61e-05/0.6137, allocations: 16.11 kB / 0.5168 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.6137, allocations: 4 kB / 0.5168 GB, free: 11.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.44e-05/0.6138, allocations: 87.25 kB / 0.5169 GB, free: 11.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6138, allocations: 0 / 0.5169 GB, free: 11.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004856/0.6143, allocations: 83.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.0008994/0.6152, allocations: 0.9321 MB / 0.5179 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003603/0.6155, allocations: 220 kB / 0.5181 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.6155, allocations: 0 / 0.5181 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.6158, allocations: 213.9 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.00165/0.6174, allocations: 91.84 kB / 0.5184 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.619, allocations: 0.5828 MB / 0.519 GB, free: 9.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004438/0.6195, allocations: 0.7956 MB / 0.5197 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.6196, allocations: 29.19 kB / 0.5198 GB, free: 8.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.6198, allocations: 115.4 kB / 0.5199 GB, free: 8.551 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6198, allocations: 4 kB / 0.5199 GB, free: 8.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0385/0.6583, allocations: 8.07 MB / 0.5278 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.285/8.944, allocations: 11.95 kB / 0.5278 GB, free: 0.4961 MB / 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)