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.005006/0.005006, allocations: 97.41 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.001365/0.001365, allocations: 197 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.504/1.504, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1493/0.1493, allocations: 2.752 MB / 293.3 MB, free: 3.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002805/0.002805, allocations: 67.89 kB / 405.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2658, allocations: 50.22 MB / 455.7 MB, free: 20.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic): time 0.009028/0.2749, allocations: 9.011 MB / 464.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00648/0.2814, allocations: 8.568 MB / 473.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002225/0.2817, allocations: 0 / 473.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006147/0.2824, allocations: 168.2 kB / 473.4 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004195/0.2829, allocations: 101.8 kB / 473.5 MB, free: 7.703 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.004439/0.2873, allocations: 1.46 MB / 475 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004448/0.2878, allocations: 271.4 kB / 475.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.215e-05/0.2878, allocations: 11.91 kB / 475.3 MB, free: 6.711 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.3772/0.6651, allocations: 13.01 MB / 488.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.6653, allocations: 87.92 kB / 488.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/0.6654, allocations: 7.75 kB / 488.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003188/0.6686, allocations: 474.2 kB / 488.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.974e-05/0.6687, allocations: 35.66 kB / 488.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.6688, allocations: 93.19 kB / 488.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001865/0.6707, allocations: 0.5087 MB / 489.5 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.6707, allocations: 0.7969 kB / 489.5 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.6707, allocations: 1.281 kB / 489.5 MB, free: 308 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.6707, allocations: 0 / 489.5 MB, free: 308 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.001088/0.6718, allocations: 0.5533 MB / 490 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.6719, allocations: 13.03 kB / 490 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.425e-05/0.672, allocations: 55.44 kB / 490.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/0.6724, allocations: 53.58 kB / 490.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.6727, allocations: 207.3 kB / 490.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.6728, allocations: 13.62 kB / 490.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/0.6728, allocations: 15.06 kB / 490.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.6734, allocations: 240 kB / 490.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.6734, allocations: 1.375 kB / 490.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.6735, allocations: 5.844 kB / 490.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.6735, allocations: 9.578 kB / 490.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005488/0.674, allocations: 200.5 kB / 490.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.6751, allocations: 0.6784 MB / 491.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000571/0.6757, allocations: 225.9 kB / 491.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.676, allocations: 158.4 kB / 491.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003514/0.6764, allocations: 337.3 kB / 492.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.6764, allocations: 32.88 kB / 492.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.713e-06/0.6764, allocations: 0 / 492.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.003199/0.6796, allocations: 1.211 MB / 493.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.6797, allocations: 62.52 kB / 493.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.6799, allocations: 132.8 kB / 493.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.6799, allocations: 31.53 kB / 493.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.68, allocations: 103.2 kB / 493.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.6802, allocations: 169.8 kB / 493.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.6803, allocations: 54.66 kB / 494 MB, free: 13.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.6805, allocations: 335.2 kB / 494.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.6808, allocations: 127.6 kB / 494.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003396/0.6811, allocations: 189.7 kB / 494.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.6818, allocations: 341.9 kB / 494.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.6818, allocations: 0 / 494.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001239/0.683, allocations: 483.8 kB / 495.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.6831, allocations: 5.5 kB / 495.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.6831, allocations: 5.562 kB / 495.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007829/0.6839, allocations: 145 kB / 495.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.684, allocations: 39.36 kB / 495.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007176/0.6847, allocations: 0.6513 MB / 496.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.6849, allocations: 11.84 kB / 496.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.685, allocations: 8.969 kB / 496.3 MB, free: 11.61 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.0001789/0.6851, allocations: 140.3 kB / 496.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.759e-05/0.6852, allocations: 20.42 kB / 496.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.591e-05/0.6853, allocations: 29.52 kB / 496.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.6853, allocations: 6.406 kB / 496.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.6853, allocations: 1.156 kB / 496.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.6853, allocations: 3.984 kB / 496.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.6857, allocations: 300.8 kB / 496.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.6857, allocations: 0 / 496.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.6859, allocations: 36.7 kB / 496.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003727/0.6863, allocations: 77.44 kB / 496.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.6864, allocations: 6.656 kB / 496.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001656/0.688, allocations: 1.551 MB / 498.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.688, allocations: 1.031 kB / 498.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.6893, allocations: 0.6906 MB / 499.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.6894, allocations: 94.09 kB / 499.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.6894, allocations: 5.031 kB / 499.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.6896, allocations: 9.172 kB / 499.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.346e-05/0.6896, allocations: 32.97 kB / 499.3 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.243e-05/0.6897, allocations: 8.594 kB / 499.3 MB, free: 8.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.601e-05/0.6898, allocations: 94.58 kB / 499.4 MB, free: 8.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6898, allocations: 5.219 kB / 499.4 MB, free: 8.824 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003886/0.6902, allocations: 70.8 kB / 499.4 MB, free: 8.809 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.001921/0.6921, allocations: 1.248 MB / 0.489 GB, free: 7.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009945/0.6931, allocations: 373.1 kB / 0.4893 GB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.6931, allocations: 0 / 0.4893 GB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007102/0.6938, allocations: 310.9 kB / 0.4896 GB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008188/0.6947, allocations: 93.58 kB / 0.4897 GB, free: 7.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005249/0.6999, allocations: 2.936 MB / 0.4926 GB, free: 4.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004355/0.7004, allocations: 0.7371 MB / 0.4933 GB, free: 3.957 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000304/0.7007, allocations: 121.3 kB / 0.4934 GB, free: 3.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.7008, allocations: 55.42 kB / 0.4935 GB, free: 3.777 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.7008, allocations: 0 / 0.4935 GB, free: 3.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/0.7426, allocations: 7.887 MB / 0.5012 GB, free: 11.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.41, allocations: 27.91 kB / 0.5012 GB, free: 11.92 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)