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.00109/0.00109, allocations: 108 kB / 15.61 MB, free: 152 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.001222/0.001222, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1185/0.1185, allocations: 2.761 MB / 293.2 MB, free: 3.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 59.91 kB / 354.5 MB, free: 4.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08053/0.08174, allocations: 50.23 MB / 404.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical): time 0.161/0.2428, allocations: 19.11 MB / 423.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003615/0.2464, allocations: 6.074 MB / 429.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.2466, allocations: 3.219 kB / 429.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004981/0.2471, allocations: 255.5 kB / 430.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001911/0.249, allocations: 1.207 MB / 431.4 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.2492, allocations: 93.78 kB / 431.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.2494, allocations: 301 kB / 431.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.801e-05/0.2495, allocations: 28.08 kB / 431.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.334e-05/0.2496, allocations: 98.34 kB / 431.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.2497, allocations: 106.7 kB / 432 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.2497, allocations: 13.34 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2345/0.4842, allocations: 38.12 MB / 470.1 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.363e-05/0.4843, allocations: 36.02 kB / 470.2 MB, free: 18.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.4845, allocations: 128.1 kB / 470.3 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.4864, allocations: 0.5111 MB / 470.8 MB, free: 18.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4864, allocations: 0 / 470.8 MB, free: 18.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4864, allocations: 0 / 470.8 MB, free: 18.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.4865, allocations: 0 / 470.8 MB, free: 18.16 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.0005666/0.487, allocations: 0.5578 MB / 471.4 MB, free: 17.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.4871, allocations: 9.719 kB / 471.4 MB, free: 17.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.753e-05/0.4871, allocations: 70.38 kB / 471.4 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007989/0.4879, allocations: 206.7 kB / 471.6 MB, free: 17.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.617e-05/0.488, allocations: 188.5 kB / 471.8 MB, free: 17.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.4881, allocations: 21.97 kB / 471.8 MB, free: 17.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.4881, allocations: 30.75 kB / 471.9 MB, free: 17.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004/0.4885, allocations: 332.3 kB / 472.2 MB, free: 17.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4885, allocations: 0 / 472.2 MB, free: 17.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.4885, allocations: 10.34 kB / 472.2 MB, free: 17.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.4886, allocations: 13.86 kB / 472.2 MB, free: 17.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.4889, allocations: 256.9 kB / 472.5 MB, free: 17.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.4901, allocations: 2.149 MB / 474.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.4902, allocations: 129.9 kB / 474.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.4903, allocations: 106.8 kB / 474.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004733/0.4908, allocations: 0.6877 MB / 475.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.4908, allocations: 35.73 kB / 475.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.413e-06/0.4908, allocations: 0 / 475.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003294/0.4912, allocations: 183.3 kB / 475.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.4912, allocations: 78.2 kB / 475.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.935e-05/0.4913, allocations: 110.9 kB / 475.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.836e-06/0.4913, allocations: 30.73 kB / 476 MB, free: 13.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.4913, allocations: 158.2 kB / 476.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.4914, allocations: 101.1 kB / 476.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.4915, allocations: 37.97 kB / 476.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.237e-05/0.4915, allocations: 328.7 kB / 476.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.589e-05/0.4916, allocations: 33.77 kB / 476.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.689e-05/0.4916, allocations: 81.34 kB / 476.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.4918, allocations: 155.7 kB / 476.9 MB, free: 13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4918, allocations: 4 kB / 476.9 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0001975/0.492, allocations: 158.5 kB / 477 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.492, allocations: 5.375 kB / 477 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.492, allocations: 1.75 kB / 477 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.4921, allocations: 1.812 kB / 477 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.579e-05/0.4921, allocations: 12.41 kB / 477 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.4921, allocations: 1.812 kB / 477 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.738e-05/0.4922, allocations: 15.44 kB / 477 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.4922, allocations: 5.719 kB / 477.1 MB, free: 12.9 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 7.85e-05/0.4923, allocations: 134.9 kB / 477.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.042e-05/0.4924, allocations: 11.81 kB / 477.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.4924, allocations: 9.781 kB / 477.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4924, allocations: 1.344 kB / 477.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.4924, allocations: 3.234 kB / 477.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.4924, allocations: 1.125 kB / 477.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.4927, allocations: 278.9 kB / 477.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4927, allocations: 1.125 kB / 477.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.221e-05/0.4927, allocations: 3.469 kB / 477.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.4928, allocations: 4 kB / 477.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.4928, allocations: 2.312 kB / 477.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4928, allocations: 1.25 kB / 477.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4928, allocations: 4 kB / 477.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.4939, allocations: 330 kB / 477.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.494, allocations: 88.2 kB / 477.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.494, allocations: 1.031 kB / 477.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.4941, allocations: 8.766 kB / 477.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.675e-05/0.4941, allocations: 3.062 kB / 477.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-06/0.4941, allocations: 6.094 kB / 477.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.152e-05/0.4942, allocations: 90.61 kB / 478 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4942, allocations: 0 / 478 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007396/0.4949, allocations: 83.44 kB / 478.1 MB, free: 12.01 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.0005831/0.4955, allocations: 0.928 MB / 479 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.4958, allocations: 228.1 kB / 479.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4958, allocations: 1.531 kB / 479.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.4959, allocations: 206.2 kB / 479.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006832/0.4966, allocations: 88.95 kB / 479.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008841/0.4975, allocations: 0.5845 MB / 480.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.4977, allocations: 0.7956 MB / 480.9 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.4979, allocations: 26.61 kB / 480.9 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.498, allocations: 117.1 kB / 481.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.498, allocations: 0 / 481.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.5226, allocations: 7.835 MB / 488.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.309/7.832, allocations: 20.2 kB / 488.9 MB, free: 8.543 MB / 350.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)