Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",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.00152/0.00152, allocations: 108 kB / 15.6 MB, free: 132 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.001166/0.001166, allocations: 197.4 kB / 16.53 MB, free: 6.672 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.392/1.392, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1359/0.1359, allocations: 2.767 MB / 293.1 MB, free: 3.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.84 kB / 354.5 MB, free: 4.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 50.23 MB / 404.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.235/0.3432, allocations: 50.7 MB / 455.4 MB, free: 21.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01883/0.3621, allocations: 29.09 MB / 484.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009198/0.3631, allocations: 3.031 kB / 484.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.3652, allocations: 0.6189 MB / 485.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009145/0.3743, allocations: 2.24 MB / 487.4 MB, free: 13.84 MB / 366.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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium1.Medium.setSat_p'. [/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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.01275/0.3872, allocations: 2.929 MB / 490.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.3888, allocations: 0.9147 MB / 491.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.389, allocations: 67.66 kB / 491.3 MB, free: 11.58 MB / 366.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.5582/0.9471, allocations: 51.25 MB / 0.5298 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006438/0.9478, allocations: 302.6 kB / 0.5301 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.9479, allocations: 40 kB / 0.5302 GB, free: 7.727 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1723/1.12, allocations: 27.03 MB / 0.5566 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/1.12, allocations: 115.5 kB / 0.5567 GB, free: 12.4 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005983/1.121, allocations: 334.4 kB / 0.557 GB, free: 12.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007345/1.128, allocations: 1.832 MB / 0.5588 GB, free: 10.24 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/1.128, allocations: 4 kB / 0.5588 GB, free: 10.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.203e-06/1.128, allocations: 0 / 0.5588 GB, free: 10.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.106e-05/1.129, allocations: 0 / 0.5588 GB, free: 10.23 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001672/1.13, allocations: 1.104 MB / 0.5599 GB, free: 9.082 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/1.13, allocations: 8.031 kB / 0.5599 GB, free: 9.074 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/1.13, allocations: 119 kB / 0.56 GB, free: 8.949 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001998/1.132, allocations: 0.4958 MB / 0.5605 GB, free: 8.453 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000401/1.133, allocations: 335.5 kB / 0.5608 GB, free: 8.086 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/1.133, allocations: 49.88 kB / 0.5608 GB, free: 8.039 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.53e-05/1.133, allocations: 55.94 kB / 0.5609 GB, free: 7.984 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/1.134, allocations: 0.8762 MB / 0.5617 GB, free: 7.059 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/1.134, allocations: 0 / 0.5617 GB, free: 7.059 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.227e-05/1.134, allocations: 24 kB / 0.5618 GB, free: 7.035 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.285e-05/1.135, allocations: 31.98 kB / 0.5618 GB, free: 7.004 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/1.136, allocations: 0.7039 MB / 0.5625 GB, free: 6.297 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004122/1.14, allocations: 5.047 MB / 0.5674 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000702/1.141, allocations: 329.7 kB / 0.5677 GB, free: 320 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/1.141, allocations: 217.6 kB / 0.5679 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001784/1.143, allocations: 1.531 MB / 0.5694 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/1.143, allocations: 42.56 kB / 0.5695 GB, free: 14.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 1.763e-06/1.143, allocations: 0 / 0.5695 GB, free: 14.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.005826/1.149, allocations: 0.5924 MB / 0.5701 GB, free: 13.74 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/1.149, allocations: 77.11 kB / 0.5701 GB, free: 13.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/1.149, allocations: 186.7 kB / 0.5703 GB, free: 13.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/1.149, allocations: 33.7 kB / 0.5703 GB, free: 13.42 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/1.149, allocations: 291.4 kB / 0.5706 GB, free: 13.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/1.149, allocations: 232.5 kB / 0.5708 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/1.149, allocations: 97.91 kB / 0.5709 GB, free: 12.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/1.15, allocations: 338.8 kB / 0.5713 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/1.15, allocations: 121.2 kB / 0.5714 GB, free: 12.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/1.15, allocations: 300.1 kB / 0.5717 GB, free: 11.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000626/1.151, allocations: 496.3 kB / 0.5721 GB, free: 11.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/1.151, allocations: 4 kB / 0.5721 GB, free: 11.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007831/1.152, allocations: 476.3 kB / 0.5726 GB, free: 10.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/1.152, allocations: 11.94 kB / 0.5726 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/1.152, allocations: 4 kB / 0.5726 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/1.152, allocations: 8 kB / 0.5726 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/1.152, allocations: 76.5 kB / 0.5727 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/1.152, allocations: 8 kB / 0.5727 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/1.152, allocations: 63.36 kB / 0.5728 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/1.152, allocations: 16 kB / 0.5728 GB, free: 10.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002419/1.153, allocations: 193.7 kB / 0.573 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.138e-05/1.153, allocations: 31.56 kB / 0.573 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.398e-05/1.153, allocations: 30.64 kB / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/1.153, allocations: 4 kB / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.153, allocations: 4 kB / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/1.153, allocations: 0 / 0.573 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006629/1.153, allocations: 0.4944 MB / 0.5735 GB, free: 9.934 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/1.153, allocations: 0 / 0.5735 GB, free: 9.934 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/1.154, allocations: 27.92 kB / 0.5735 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/1.154, allocations: 7.938 kB / 0.5735 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/1.154, allocations: 8 kB / 0.5735 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/1.154, allocations: 0 / 0.5735 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.154, allocations: 0 / 0.5735 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006121/1.154, allocations: 0.5097 MB / 0.574 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9e-05/1.154, allocations: 112.6 kB / 0.5741 GB, free: 9.234 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/1.154, allocations: 3.938 kB / 0.5742 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/1.155, allocations: 11.98 kB / 0.5742 GB, free: 9.219 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/1.155, allocations: 19.92 kB / 0.5742 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/1.155, allocations: 8 kB / 0.5742 GB, free: 9.191 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.691e-05/1.155, allocations: 120.2 kB / 0.5743 GB, free: 9.074 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.155, allocations: 0 / 0.5743 GB, free: 9.074 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007164/1.155, allocations: 203.3 kB / 0.5745 GB, free: 8.875 MB / 446.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: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001347/1.157, allocations: 1.232 MB / 0.5757 GB, free: 7.609 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008883/1.158, allocations: 0.6037 MB / 0.5763 GB, free: 6.988 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.158, allocations: 4 kB / 0.5763 GB, free: 6.984 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004742/1.158, allocations: 495.8 kB / 0.5768 GB, free: 6.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/1.159, allocations: 199.4 kB / 0.577 GB, free: 6.238 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004687/1.164, allocations: 3.576 MB / 0.5805 GB, free: 2.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005499/1.165, allocations: 0.9465 MB / 0.5814 GB, free: 1.457 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007813/1.165, allocations: 257.7 kB / 0.5816 GB, free: 1.199 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003289/1.166, allocations: 271.3 kB / 0.5819 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/1.166, allocations: 0 / 0.5819 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2654/1.431, allocations: 17.49 MB / 0.599 GB, free: 142.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.01/9.441, allocations: 11.02 kB / 0.599 GB, free: 142.1 MB / 446.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit_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_Tabular_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1)