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.007755/0.007755, allocations: 98.39 kB / 15.73 MB, free: 6.43 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.001919/0.001919, allocations: 191.8 kB / 16.67 MB, free: 6.336 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.509/1.509, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1172/0.1172, allocations: 2.759 MB / 293.3 MB, free: 3.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 63.89 kB / 405.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2538, allocations: 50.23 MB / 455.7 MB, free: 20.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical): time 0.0156/0.2694, allocations: 19.13 MB / 474.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004377/0.2738, allocations: 6.083 MB / 480.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002637/0.2741, allocations: 1.469 kB / 480.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007034/0.2749, allocations: 247.1 kB / 481.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003091/0.278, allocations: 1.21 MB / 482.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.2783, allocations: 88.17 kB / 482.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004721/0.2788, allocations: 307.7 kB / 482.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.571e-05/0.2789, allocations: 18.89 kB / 482.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.279, allocations: 94.72 kB / 482.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.2792, allocations: 113.6 kB / 482.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.2792, allocations: 8 kB / 482.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3397/0.6189, allocations: 38.45 MB / 0.5092 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.718e-05/0.619, allocations: 27.73 kB / 0.5092 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.6201, allocations: 139.3 kB / 0.5093 GB, free: 4.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00243/0.6226, allocations: 0.5061 MB / 0.5098 GB, free: 3.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.6226, allocations: 0 / 0.5098 GB, free: 3.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6226, allocations: 0 / 0.5098 GB, free: 3.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.6226, allocations: 0 / 0.5098 GB, free: 3.707 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.0007863/0.6234, allocations: 0.5725 MB / 0.5104 GB, free: 3.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.6234, allocations: 12.03 kB / 0.5104 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.28e-05/0.6235, allocations: 66.72 kB / 0.5105 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00082/0.6244, allocations: 208.5 kB / 0.5107 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.6245, allocations: 188.1 kB / 0.5108 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.6246, allocations: 28.69 kB / 0.5109 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.6246, allocations: 24 kB / 0.5109 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005306/0.6252, allocations: 341.6 kB / 0.5112 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.6252, allocations: 0 / 0.5112 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.6252, allocations: 4 kB / 0.5112 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.6252, allocations: 15.98 kB / 0.5112 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.6256, allocations: 267.8 kB / 0.5115 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.6277, allocations: 2.107 MB / 0.5135 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.6279, allocations: 137 kB / 0.5137 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.6281, allocations: 105.8 kB / 0.5138 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007421/0.6288, allocations: 0.6963 MB / 0.5145 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.6289, allocations: 42.56 kB / 0.5145 GB, free: 14.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.683e-06/0.6289, allocations: 3.938 kB / 0.5145 GB, free: 14.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.00039/0.6293, allocations: 181.5 kB / 0.5147 GB, free: 14.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/0.6294, allocations: 89.09 kB / 0.5148 GB, free: 14.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.744e-05/0.6295, allocations: 105.8 kB / 0.5149 GB, free: 13.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.6295, allocations: 25.7 kB / 0.5149 GB, free: 13.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.6296, allocations: 164.4 kB / 0.515 GB, free: 13.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.287e-05/0.6297, allocations: 103.1 kB / 0.5151 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.6298, allocations: 41.77 kB / 0.5152 GB, free: 13.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.6299, allocations: 326.8 kB / 0.5155 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.757e-05/0.63, allocations: 35.98 kB / 0.5155 GB, free: 13.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.6301, allocations: 92.78 kB / 0.5156 GB, free: 13.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.6303, allocations: 138.5 kB / 0.5157 GB, free: 12.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.6303, allocations: 4 kB / 0.5158 GB, free: 12.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002612/0.6306, allocations: 161.3 kB / 0.5159 GB, free: 12.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.6306, allocations: 8 kB / 0.5159 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.6306, allocations: 4.266 kB / 0.5159 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.6307, allocations: 0 / 0.5159 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.935e-05/0.6307, allocations: 16 kB / 0.5159 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.6308, allocations: 7.922 kB / 0.5159 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.112e-05/0.6308, allocations: 23.78 kB / 0.516 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.6309, allocations: 4 kB / 0.516 GB, free: 12.76 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.0001371/0.631, allocations: 133.8 kB / 0.5161 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.6311, allocations: 7.953 kB / 0.5161 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.213e-05/0.6311, allocations: 12.44 kB / 0.5161 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.6311, allocations: 4 kB / 0.5161 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.6311, allocations: 4 kB / 0.5161 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.6312, allocations: 3.938 kB / 0.5161 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005241/0.6317, allocations: 273.4 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.6317, allocations: 4 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.378e-05/0.6318, allocations: 0 / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.6318, allocations: 4 kB / 0.5164 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.6318, allocations: 0 / 0.5164 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.6318, allocations: 0 / 0.5164 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.84e-06/0.6318, allocations: 4 kB / 0.5164 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.6344, allocations: 323.1 kB / 0.5167 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.6345, allocations: 92.95 kB / 0.5168 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.6346, allocations: 4 kB / 0.5168 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.6348, allocations: 0 / 0.5168 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/0.6348, allocations: 7.938 kB / 0.5168 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.6348, allocations: 0 / 0.5168 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.347e-05/0.6349, allocations: 87.27 kB / 0.5169 GB, free: 11.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6349, allocations: 4 kB / 0.5169 GB, free: 11.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007839/0.6357, allocations: 83.72 kB / 0.517 GB, free: 11.63 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.001324/0.637, allocations: 0.9325 MB / 0.5179 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005275/0.6376, allocations: 228.2 kB / 0.5181 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6376, allocations: 0 / 0.5181 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002981/0.6379, allocations: 205.3 kB / 0.5183 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.6391, allocations: 87.97 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.001798/0.641, allocations: 0.5866 MB / 0.519 GB, free: 9.504 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006577/0.6416, allocations: 0.7956 MB / 0.5197 GB, free: 8.676 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002034/0.6419, allocations: 33.17 kB / 0.5198 GB, free: 8.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.6421, allocations: 119.4 kB / 0.5199 GB, free: 8.531 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.6421, allocations: 0 / 0.5199 GB, free: 8.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04481/0.6869, allocations: 8.07 MB / 0.5278 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.827/9.514, allocations: 15.95 kB / 0.5278 GB, free: 488 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)