Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.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_Tabular.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesDynamic",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.004904/0.004904, allocations: 97.78 kB / 15.73 MB, free: 5.996 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.001105/0.001105, allocations: 186.2 kB / 16.67 MB, free: 5.926 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1166/0.1166, allocations: 2.769 MB / 293.3 MB, free: 3.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 59.91 kB / 405.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2866, allocations: 50.23 MB / 455.7 MB, free: 20.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic): time 0.007653/0.2943, allocations: 9.013 MB / 464.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00571/0.3001, allocations: 8.565 MB / 473.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002216/0.3003, allocations: 1.156 kB / 473.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006396/0.3011, allocations: 170.5 kB / 473.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003987/0.3015, allocations: 98.5 kB / 473.5 MB, free: 7.543 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.004114/0.3056, allocations: 1.468 MB / 475 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.306, allocations: 268.6 kB / 475.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.769e-05/0.3061, allocations: 19.52 kB / 475.3 MB, free: 6.539 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function 'ExternalMedia.Common.CheckCoolPropOptions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFEvalConstants.evaluate: time 0.3012/0.6073, allocations: 13 MB / 488.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.6076, allocations: 90.95 kB / 488.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.6076, allocations: 11.31 kB / 488.4 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002083/0.6097, allocations: 472.3 kB / 488.8 MB, free: 404 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.661e-05/0.6098, allocations: 34.11 kB / 488.9 MB, free: 384 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.6099, allocations: 89.42 kB / 488.9 MB, free: 336 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001757/0.6117, allocations: 0.5114 MB / 489.5 MB, free: 136 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.6117, allocations: 1.125 kB / 489.5 MB, free: 136 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6117, allocations: 0 / 489.5 MB, free: 136 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.6118, allocations: 0 / 489.5 MB, free: 136 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000938/0.6127, allocations: 0.5547 MB / 490 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.6127, allocations: 9.5 kB / 490 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.423e-05/0.6128, allocations: 50.47 kB / 490.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003666/0.6132, allocations: 61.77 kB / 490.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.6135, allocations: 214.9 kB / 490.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.6135, allocations: 13.78 kB / 490.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.455e-05/0.6135, allocations: 10.62 kB / 490.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.6141, allocations: 239.6 kB / 490.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.6141, allocations: 5.062 kB / 490.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.6141, allocations: 1.312 kB / 490.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.6142, allocations: 10.11 kB / 490.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005319/0.6147, allocations: 200.9 kB / 490.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009048/0.6156, allocations: 0.6819 MB / 491.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005667/0.6162, allocations: 226.4 kB / 491.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002712/0.6165, allocations: 152.1 kB / 491.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002805/0.6168, allocations: 327.3 kB / 492.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.6168, allocations: 43.2 kB / 492.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.523e-06/0.6168, allocations: 0 / 492.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.00298/0.6198, allocations: 1.213 MB / 493.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.6199, allocations: 53.47 kB / 493.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.62, allocations: 133.4 kB / 493.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.62, allocations: 27.08 kB / 493.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.3e-05/0.6201, allocations: 116 kB / 493.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.6202, allocations: 164.5 kB / 493.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.597e-05/0.6203, allocations: 60.22 kB / 494 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.6204, allocations: 329.5 kB / 494.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002591/0.6207, allocations: 125 kB / 494.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.621, allocations: 193.4 kB / 494.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005696/0.6216, allocations: 346.1 kB / 494.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.6216, allocations: 3.938 kB / 494.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001176/0.6228, allocations: 479.4 kB / 495.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.6228, allocations: 5.594 kB / 495.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.6228, allocations: 1.156 kB / 495.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007653/0.6236, allocations: 149.6 kB / 495.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.6237, allocations: 31.08 kB / 495.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006222/0.6244, allocations: 0.6596 MB / 496.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.6246, allocations: 16.38 kB / 496.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.6246, allocations: 7.562 kB / 496.3 MB, free: 11.44 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.6247, allocations: 133.9 kB / 496.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.617e-05/0.6248, allocations: 24.16 kB / 496.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.004e-05/0.6249, allocations: 20.38 kB / 496.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.6249, allocations: 13.91 kB / 496.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.6249, allocations: 2.438 kB / 496.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.6249, allocations: 0.75 kB / 496.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003642/0.6253, allocations: 295.8 kB / 496.8 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.6253, allocations: 0 / 496.8 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.6255, allocations: 43.42 kB / 496.8 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003797/0.6259, allocations: 77.67 kB / 496.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.6259, allocations: 2.281 kB / 496.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.6273, allocations: 1.551 MB / 498.4 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.6273, allocations: 4.062 kB / 498.4 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.6285, allocations: 0.7008 MB / 499.1 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.783e-05/0.6286, allocations: 98.73 kB / 499.2 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.6286, allocations: 1.031 kB / 499.2 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.6288, allocations: 12.62 kB / 499.2 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.33e-05/0.6289, allocations: 26.06 kB / 499.3 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.6289, allocations: 8.109 kB / 499.3 MB, free: 8.785 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.237e-05/0.629, allocations: 98.97 kB / 499.4 MB, free: 8.699 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.629, allocations: 1.156 kB / 499.4 MB, free: 8.699 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004201/0.6294, allocations: 62.66 kB / 499.4 MB, free: 8.691 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001627/0.6311, allocations: 1.259 MB / 0.489 GB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008592/0.6319, allocations: 375.8 kB / 0.4893 GB, free: 7.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.6319, allocations: 0 / 0.4893 GB, free: 7.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000663/0.6326, allocations: 318.1 kB / 0.4896 GB, free: 7.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006841/0.6333, allocations: 84.88 kB / 0.4897 GB, free: 7.242 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00458/0.6379, allocations: 2.939 MB / 0.4926 GB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.6383, allocations: 0.7332 MB / 0.4933 GB, free: 3.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002777/0.6385, allocations: 117.4 kB / 0.4934 GB, free: 3.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.831e-05/0.6387, allocations: 55.42 kB / 0.4935 GB, free: 3.664 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6387, allocations: 0 / 0.4935 GB, free: 3.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0316/0.6703, allocations: 7.884 MB / 0.5012 GB, free: 11.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.75, allocations: 11.98 kB / 0.5012 GB, free: 11.82 MB / 382.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.1 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe 2>&1)