Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.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.TestStatesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesTranscritical",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.007205/0.007205, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001756/0.001756, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1902/0.1902, allocations: 2.757 MB / 293.3 MB, free: 3.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 405.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2855, allocations: 50.24 MB / 455.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical): time 0.01705/0.3026, allocations: 19.11 MB / 474.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004761/0.3074, allocations: 6.088 MB / 480.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003095/0.3077, allocations: 1.312 kB / 480.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007822/0.3085, allocations: 249.7 kB / 481.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004108/0.3126, allocations: 1.204 MB / 482.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.313, allocations: 91 kB / 482.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004414/0.3135, allocations: 302.5 kB / 482.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.96e-05/0.3136, allocations: 23.59 kB / 482.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.3137, allocations: 94.89 kB / 482.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.3139, allocations: 119.2 kB / 482.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.3139, allocations: 11.22 kB / 482.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2647/0.5786, allocations: 38.45 MB / 0.5092 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-05/0.5787, allocations: 27.8 kB / 0.5092 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003482/0.5791, allocations: 131.3 kB / 0.5093 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00311/0.5822, allocations: 0.51 MB / 0.5098 GB, free: 3.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5822, allocations: 4 kB / 0.5098 GB, free: 3.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5822, allocations: 0 / 0.5098 GB, free: 3.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.499e-05/0.5823, 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.0009204/0.5832, allocations: 0.5686 MB / 0.5104 GB, free: 3.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.5833, allocations: 12.03 kB / 0.5104 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.923e-05/0.5834, allocations: 70.7 kB / 0.5105 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008434/0.5842, allocations: 204.5 kB / 0.5107 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.5844, allocations: 188.1 kB / 0.5108 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.5844, allocations: 24.69 kB / 0.5109 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.5845, allocations: 24 kB / 0.5109 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.585, allocations: 341.6 kB / 0.5112 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.585, allocations: 0 / 0.5112 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.585, allocations: 8 kB / 0.5112 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.5851, allocations: 15.98 kB / 0.5112 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003607/0.5854, allocations: 259.9 kB / 0.5115 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.5874, allocations: 2.118 MB / 0.5136 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.5876, allocations: 145 kB / 0.5137 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.5878, allocations: 105.8 kB / 0.5138 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007325/0.5885, allocations: 0.6933 MB / 0.5145 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/0.5886, allocations: 42.5 kB / 0.5145 GB, free: 14.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.693e-06/0.5886, allocations: 0 / 0.5145 GB, free: 14.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003781/0.589, allocations: 181.5 kB / 0.5147 GB, free: 14.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.589, allocations: 81.11 kB / 0.5148 GB, free: 14.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.086e-05/0.5891, allocations: 105.8 kB / 0.5149 GB, free: 13.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.5892, allocations: 25.7 kB / 0.5149 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.741e-05/0.5893, allocations: 164.4 kB / 0.515 GB, free: 13.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.646e-05/0.5894, allocations: 107.1 kB / 0.5151 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.566e-05/0.5894, allocations: 37.77 kB / 0.5152 GB, free: 13.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5896, allocations: 330.7 kB / 0.5155 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.549e-05/0.5897, allocations: 39.98 kB / 0.5155 GB, free: 13.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.5898, allocations: 80.86 kB / 0.5156 GB, free: 13.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.59, allocations: 149.8 kB / 0.5158 GB, free: 12.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.59, allocations: 3.938 kB / 0.5158 GB, free: 12.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002617/0.5902, allocations: 157.4 kB / 0.5159 GB, free: 12.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.5903, allocations: 8 kB / 0.5159 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.5903, allocations: 0 / 0.5159 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.5903, allocations: 12.17 kB / 0.5159 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.757e-05/0.5904, allocations: 8 kB / 0.5159 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.5904, allocations: 0 / 0.5159 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.197e-05/0.5905, allocations: 23.78 kB / 0.516 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.5905, allocations: 8 kB / 0.516 GB, free: 12.77 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.0001243/0.5907, allocations: 129.8 kB / 0.5161 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.271e-05/0.5907, allocations: 11.89 kB / 0.5161 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.5908, allocations: 12.42 kB / 0.5161 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.5908, allocations: 4 kB / 0.5161 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.5908, allocations: 4 kB / 0.5161 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.5908, allocations: 3.938 kB / 0.5161 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003736/0.5912, allocations: 281.4 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5912, allocations: 0 / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.648e-05/0.5912, allocations: 4 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5912, allocations: 0 / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.5912, allocations: 0 / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5913, allocations: 0 / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5913, allocations: 4 kB / 0.5164 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.5932, allocations: 315.2 kB / 0.5167 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.2e-05/0.5933, allocations: 96.94 kB / 0.5168 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.5933, allocations: 4 kB / 0.5168 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.5934, allocations: 3.938 kB / 0.5168 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.5934, allocations: 7.938 kB / 0.5168 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.5934, allocations: 0 / 0.5168 GB, free: 11.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.866e-05/0.5935, allocations: 83.28 kB / 0.5169 GB, free: 11.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5935, allocations: 0 / 0.5169 GB, free: 11.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009479/0.5944, allocations: 87.77 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.0009568/0.5954, allocations: 0.9287 MB / 0.5179 GB, free: 10.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003393/0.5958, allocations: 232.2 kB / 0.5181 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5958, allocations: 0 / 0.5181 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.5959, 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.0007231/0.5967, allocations: 93.83 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.001036/0.5977, 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.0003895/0.5981, allocations: 0.7956 MB / 0.5197 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.5982, 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.0001305/0.5984, allocations: 111.4 kB / 0.5199 GB, free: 8.555 MB / 398.1 MB Notification: Performance of SimCode: time 2.444e-06/0.5984, allocations: 4 kB / 0.5199 GB, free: 8.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.628, allocations: 8.085 MB / 0.5278 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.284/8.912, allocations: 15.92 kB / 0.5278 GB, free: 492 kB / 398.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical_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_TestStatesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe 2>&1)