Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesImplicit",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.001144/0.001144, 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.001159/0.001159, allocations: 197.5 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.412/1.412, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1441/0.1441, allocations: 2.757 MB / 293.2 MB, free: 3.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001267, allocations: 59.91 kB / 354.5 MB, free: 4.328 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1015, allocations: 50.24 MB / 404.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.2432/0.3448, allocations: 50.74 MB / 455.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.3632, allocations: 29.1 MB / 484.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008009/0.3641, allocations: 3.094 kB / 484.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001754/0.3659, allocations: 0.6227 MB / 485.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006917/0.3728, allocations: 2.244 MB / 487.5 MB, free: 13.86 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008947/0.3818, allocations: 2.918 MB / 490.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.3834, allocations: 0.9283 MB / 491.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.3836, allocations: 58.3 kB / 491.4 MB, free: 11.59 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.5525/0.9361, allocations: 51.25 MB / 0.5299 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006932/0.9368, allocations: 290.7 kB / 0.5302 GB, free: 7.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.9369, allocations: 40 kB / 0.5302 GB, free: 7.754 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1725/1.109, allocations: 27.06 MB / 0.5566 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/1.11, allocations: 107.5 kB / 0.5567 GB, free: 12.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005338/1.11, allocations: 342.4 kB / 0.5571 GB, free: 12.08 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006765/1.117, allocations: 1.836 MB / 0.5588 GB, free: 10.24 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.117, allocations: 0 / 0.5588 GB, free: 10.24 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.853e-06/1.117, allocations: 0 / 0.5588 GB, free: 10.24 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/1.117, allocations: 0 / 0.5588 GB, free: 10.24 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.001549/1.119, allocations: 1.108 MB / 0.5599 GB, free: 9.086 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/1.119, allocations: 8.031 kB / 0.5599 GB, free: 9.078 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/1.119, allocations: 119 kB / 0.5601 GB, free: 8.953 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/1.121, allocations: 0.4957 MB / 0.5605 GB, free: 8.457 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/1.121, allocations: 335.5 kB / 0.5609 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.765e-05/1.121, allocations: 45.88 kB / 0.5609 GB, free: 8.047 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.768e-05/1.121, allocations: 59.94 kB / 0.561 GB, free: 7.988 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/1.123, allocations: 0.8684 MB / 0.5618 GB, free: 7.074 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/1.123, allocations: 7.938 kB / 0.5618 GB, free: 7.066 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/1.123, allocations: 20 kB / 0.5618 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.232e-05/1.123, allocations: 39.91 kB / 0.5619 GB, free: 7.008 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/1.124, allocations: 0.7039 MB / 0.5626 GB, free: 6.301 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004147/1.129, allocations: 5.152 MB / 0.5676 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/1.129, allocations: 345.7 kB / 0.5679 GB, free: 176 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/1.13, allocations: 217.5 kB / 0.5681 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001356/1.131, allocations: 1.55 MB / 0.5696 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/1.131, allocations: 34.56 kB / 0.5697 GB, free: 14.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.327e-06/1.131, allocations: 3.984 kB / 0.5697 GB, free: 14.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.005323/1.136, allocations: 0.6003 MB / 0.5703 GB, free: 13.58 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/1.136, allocations: 77.11 kB / 0.5703 GB, free: 13.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/1.137, allocations: 190.7 kB / 0.5705 GB, free: 13.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/1.137, allocations: 29.7 kB / 0.5705 GB, free: 13.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/1.137, allocations: 287.5 kB / 0.5708 GB, free: 12.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/1.137, allocations: 236.4 kB / 0.571 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/1.137, allocations: 93.92 kB / 0.5711 GB, free: 12.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/1.137, allocations: 342.8 kB / 0.5715 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002287/1.138, allocations: 121.3 kB / 0.5716 GB, free: 12.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003632/1.138, allocations: 300 kB / 0.5719 GB, free: 11.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000669/1.139, allocations: 492.5 kB / 0.5723 GB, free: 11.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/1.139, allocations: 4 kB / 0.5723 GB, free: 11.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008302/1.139, allocations: 492.4 kB / 0.5728 GB, free: 10.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.139, allocations: 7.938 kB / 0.5728 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/1.139, allocations: 8 kB / 0.5728 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/1.14, allocations: 8 kB / 0.5728 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/1.14, allocations: 79.89 kB / 0.5729 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000707/1.141, allocations: 1.184 MB / 0.5741 GB, free: 9.422 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/1.141, allocations: 59.27 kB / 0.5741 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/1.141, allocations: 20 kB / 0.5741 GB, free: 9.344 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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002508/1.141, allocations: 181.8 kB / 0.5743 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/1.141, allocations: 31.81 kB / 0.5743 GB, free: 9.125 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.284e-05/1.141, allocations: 38.58 kB / 0.5744 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/1.141, allocations: 0 / 0.5744 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/1.141, allocations: 3.938 kB / 0.5744 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/1.141, allocations: 4 kB / 0.5744 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006761/1.142, allocations: 0.4906 MB / 0.5749 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/1.142, allocations: 0 / 0.5749 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/1.142, allocations: 36.17 kB / 0.5749 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/1.142, allocations: 4 kB / 0.5749 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/1.142, allocations: 3.938 kB / 0.5749 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000607/1.143, allocations: 1.176 MB / 0.5761 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.143, allocations: 4.031 kB / 0.5761 GB, free: 7.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006791/1.144, allocations: 0.5214 MB / 0.5766 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/1.144, allocations: 116.5 kB / 0.5767 GB, free: 6.598 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/1.144, allocations: 4 kB / 0.5767 GB, free: 6.594 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/1.144, allocations: 12 kB / 0.5767 GB, free: 6.582 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/1.144, allocations: 11.98 kB / 0.5767 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/1.144, allocations: 11.98 kB / 0.5767 GB, free: 6.559 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001123/1.144, allocations: 124.2 kB / 0.5768 GB, free: 6.438 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.144, allocations: 8 kB / 0.5768 GB, free: 6.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007602/1.145, allocations: 187.4 kB / 0.577 GB, free: 6.246 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00141/1.146, allocations: 1.244 MB / 0.5782 GB, free: 4.969 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/1.148, allocations: 0.631 MB / 0.5789 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/1.148, allocations: 0 / 0.5789 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006931/1.148, allocations: 0.4998 MB / 0.5793 GB, free: 3.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/1.149, allocations: 199.7 kB / 0.5795 GB, free: 3.559 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1806/1.33, allocations: 3.605 MB / 0.5831 GB, free: 142 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007255/1.331, allocations: 0.9502 MB / 0.584 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006959/1.332, allocations: 217.4 kB / 0.5842 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003386/1.332, allocations: 274.2 kB / 0.5844 GB, free: 141.3 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/1.332, allocations: 0.8438 kB / 0.5844 GB, free: 141.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04525/1.377, allocations: 17.85 MB / 0.6019 GB, free: 140.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/13, allocations: 17.36 kB / 0.6019 GB, free: 140.2 MB / 446.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit_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_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe 2>&1)