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.001115/0.001115, allocations: 108 kB / 15.61 MB, free: 148 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.001046/0.001046, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1081/0.1081, allocations: 2.757 MB / 293.2 MB, free: 3.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 55.91 kB / 354.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08424/0.08549, allocations: 50.24 MB / 404.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical): time 0.1672/0.2527, allocations: 19.11 MB / 423.9 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003474/0.2563, allocations: 6.085 MB / 429.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.2564, allocations: 0 / 429.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005308/0.257, allocations: 258 kB / 430.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002223/0.2592, allocations: 1.206 MB / 431.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002124/0.2594, allocations: 87.94 kB / 431.5 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.2597, allocations: 306.6 kB / 431.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.323e-05/0.2598, allocations: 23.88 kB / 431.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.559e-05/0.2598, allocations: 92.73 kB / 431.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.26, allocations: 117 kB / 432 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.26, allocations: 5.688 kB / 432 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2339/0.4939, allocations: 38.12 MB / 470.1 MB, free: 18.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.538e-05/0.4939, allocations: 37.16 kB / 470.2 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002488/0.4942, allocations: 133.4 kB / 470.3 MB, free: 18.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00195/0.4962, allocations: 0.4966 MB / 470.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.4962, allocations: 1.281 kB / 470.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4962, allocations: 3.938 kB / 470.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.4962, allocations: 0 / 470.8 MB, free: 18.12 MB / 350.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.0005775/0.4968, allocations: 0.5569 MB / 471.4 MB, free: 17.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.4968, allocations: 9.969 kB / 471.4 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.284e-05/0.4969, allocations: 71.22 kB / 471.4 MB, free: 17.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007634/0.4977, allocations: 205.1 kB / 471.6 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.568e-05/0.4978, allocations: 186.5 kB / 471.8 MB, free: 17.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.4978, allocations: 19.22 kB / 471.8 MB, free: 17.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.4978, allocations: 27.5 kB / 471.9 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.4983, allocations: 331.8 kB / 472.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.4983, allocations: 1.125 kB / 472.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.4983, allocations: 10.09 kB / 472.2 MB, free: 17.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.4983, allocations: 14.72 kB / 472.2 MB, free: 17.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.4986, allocations: 260.4 kB / 472.5 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.4998, allocations: 2.155 MB / 474.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.5, allocations: 130.2 kB / 474.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.781e-05/0.5001, allocations: 113.4 kB / 474.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000444/0.5005, allocations: 0.6841 MB / 475.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.323e-05/0.5005, allocations: 35.83 kB / 475.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.453e-06/0.5006, allocations: 0 / 475.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003327/0.5009, allocations: 190.4 kB / 475.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.5009, allocations: 78.23 kB / 475.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.907e-05/0.501, allocations: 108.4 kB / 475.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.501, allocations: 29.7 kB / 476 MB, free: 13.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.5011, allocations: 157.2 kB / 476.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/0.5011, allocations: 107.7 kB / 476.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.5012, allocations: 38.17 kB / 476.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.5012, allocations: 328 kB / 476.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.167e-05/0.5013, allocations: 38.03 kB / 476.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.894e-05/0.5014, allocations: 80.11 kB / 476.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.5015, allocations: 142.1 kB / 476.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5015, allocations: 0 / 476.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0001891/0.5017, allocations: 164.4 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.5017, allocations: 5.562 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.5017, allocations: 1.281 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.5018, allocations: 2.406 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.689e-05/0.5018, allocations: 12.97 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.5018, allocations: 6.047 kB / 477 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.938e-05/0.5019, allocations: 19.59 kB / 477.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.5019, allocations: 8.641 kB / 477.1 MB, free: 12.83 MB / 350.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.0004296/0.5024, allocations: 130.6 kB / 477.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/0.5024, allocations: 11.19 kB / 477.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.326e-05/0.5025, allocations: 10.75 kB / 477.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.5025, allocations: 1.125 kB / 477.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5025, allocations: 1.125 kB / 477.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.5025, allocations: 1.281 kB / 477.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.5028, allocations: 279.2 kB / 477.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.5028, allocations: 5.781 kB / 477.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.174e-05/0.5028, allocations: 2 kB / 477.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5028, allocations: 5.672 kB / 477.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.886e-06/0.5028, allocations: 2.219 kB / 477.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.5028, allocations: 3.938 kB / 477.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5028, allocations: 0 / 477.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.504, allocations: 317.7 kB / 477.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.504, allocations: 100.5 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.504, allocations: 1.125 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.5041, allocations: 1.156 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.127e-05/0.5042, allocations: 2.125 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.5042, allocations: 6.531 kB / 477.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.297e-05/0.5042, allocations: 94.58 kB / 478 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5042, allocations: 0 / 478 MB, free: 11.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004282/0.5046, allocations: 80.25 kB / 478.1 MB, free: 11.95 MB / 350.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.0005774/0.5052, allocations: 0.919 MB / 479 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002732/0.5055, allocations: 229.7 kB / 479.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5055, allocations: 384 / 479.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.5056, allocations: 210.9 kB / 479.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006885/0.5063, allocations: 84.98 kB / 479.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009076/0.5073, allocations: 0.5836 MB / 480.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.5075, allocations: 0.7944 MB / 480.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.5076, allocations: 26.08 kB / 480.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.5077, allocations: 117.5 kB / 481 MB, free: 9.629 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5077, allocations: 0 / 481 MB, free: 9.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.5328, allocations: 7.849 MB / 488.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.847, allocations: 8.953 kB / 488.9 MB, free: 8.492 MB / 350.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)