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.006627/0.006627, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001393/0.001394, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01268/0.01268, allocations: 2.781 MB / 293.3 MB, free: 11.99 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 71.89 kB / 405.4 MB, free: 29.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08871/0.08998, allocations: 50.23 MB / 455.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.04754/0.1376, allocations: 50.71 MB / 0.4945 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2343/0.3719, allocations: 29.09 MB / 0.5229 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005346/0.3724, allocations: 2.625 kB / 0.5229 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001742/0.3742, allocations: 0.6155 MB / 0.5235 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007662/0.3819, allocations: 2.249 MB / 0.5257 GB, free: 2.676 MB / 382.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.008926/0.3909, allocations: 2.919 MB / 0.5286 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.3926, allocations: 0.9287 MB / 0.5295 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.3928, allocations: 63.41 kB / 0.5295 GB, free: 1.508 MB / 382.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.5688/0.9616, allocations: 51.71 MB / 0.58 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009375/0.9625, allocations: 297.1 kB / 0.5803 GB, free: 13.07 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001727/0.9627, allocations: 40 kB / 0.5804 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1761/1.139, allocations: 27.26 MB / 0.607 GB, free: 3.895 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003147/1.139, allocations: 108.1 kB / 0.6071 GB, free: 3.836 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007013/1.14, allocations: 339.8 kB / 0.6074 GB, free: 3.516 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008676/1.149, allocations: 1.864 MB / 0.6092 GB, free: 1.934 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/1.149, allocations: 0 / 0.6092 GB, free: 1.934 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/1.149, allocations: 0 / 0.6092 GB, free: 1.934 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.512e-05/1.149, allocations: 4 kB / 0.6092 GB, free: 1.93 MB / 446.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.00199/1.151, allocations: 1.13 MB / 0.6103 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/1.151, allocations: 8.031 kB / 0.6103 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/1.151, allocations: 119 kB / 0.6105 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002094/1.153, allocations: 0.4961 MB / 0.6109 GB, free: 128 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003974/1.157, allocations: 339.5 kB / 0.6113 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.473e-05/1.157, allocations: 49.88 kB / 0.6113 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.642e-05/1.157, allocations: 59.94 kB / 0.6114 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/1.159, allocations: 0.8646 MB / 0.6122 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/1.159, allocations: 11.88 kB / 0.6122 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.521e-05/1.159, allocations: 23.98 kB / 0.6122 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-05/1.159, allocations: 35.98 kB / 0.6123 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/1.16, allocations: 0.7039 MB / 0.613 GB, free: 13.96 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004495/1.165, allocations: 5.006 MB / 0.6179 GB, free: 8.375 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000735/1.165, allocations: 321.1 kB / 0.6182 GB, free: 8.043 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003021/1.166, allocations: 221.5 kB / 0.6184 GB, free: 7.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001459/1.167, allocations: 1.531 MB / 0.6199 GB, free: 6.121 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/1.167, allocations: 34.56 kB / 0.6199 GB, free: 6.078 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.975e-06/1.167, allocations: 0 / 0.6199 GB, free: 6.078 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001549/1.169, allocations: 0.5971 MB / 0.6205 GB, free: 5.477 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/1.169, allocations: 85.03 kB / 0.6206 GB, free: 5.375 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/1.169, allocations: 178.8 kB / 0.6207 GB, free: 5.191 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/1.169, allocations: 29.7 kB / 0.6208 GB, free: 5.156 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/1.169, allocations: 291.9 kB / 0.621 GB, free: 4.867 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/1.17, allocations: 251.6 kB / 0.6213 GB, free: 4.625 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/1.17, allocations: 97.95 kB / 0.6214 GB, free: 4.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/1.17, allocations: 338.8 kB / 0.6217 GB, free: 4.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/1.17, allocations: 125.3 kB / 0.6218 GB, free: 4.059 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/1.17, allocations: 288.7 kB / 0.6221 GB, free: 3.703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006211/1.171, allocations: 488.6 kB / 0.6226 GB, free: 3.148 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/1.171, allocations: 4 kB / 0.6226 GB, free: 3.145 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007745/1.172, allocations: 480.9 kB / 0.623 GB, free: 2.668 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/1.172, allocations: 11.94 kB / 0.623 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/1.172, allocations: 8.062 kB / 0.623 GB, free: 2.648 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/1.172, allocations: 15.92 kB / 0.6231 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/1.172, allocations: 67.91 kB / 0.6231 GB, free: 2.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/1.172, allocations: 11.94 kB / 0.6231 GB, free: 2.555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/1.172, allocations: 59.52 kB / 0.6232 GB, free: 2.496 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.445e-05/1.172, allocations: 23.98 kB / 0.6232 GB, free: 2.473 MB / 462.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.0002208/1.173, allocations: 190.6 kB / 0.6234 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.923e-05/1.173, allocations: 31.75 kB / 0.6234 GB, free: 2.246 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.245e-05/1.173, allocations: 30.66 kB / 0.6235 GB, free: 2.219 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/1.173, allocations: 7.938 kB / 0.6235 GB, free: 2.211 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/1.173, allocations: 0 / 0.6235 GB, free: 2.211 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/1.173, allocations: 3.984 kB / 0.6235 GB, free: 2.207 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006326/1.173, allocations: 495.5 kB / 0.6239 GB, free: 1.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/1.174, allocations: 0 / 0.6239 GB, free: 1.676 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/1.174, allocations: 28.11 kB / 0.624 GB, free: 1.648 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/1.174, allocations: 7.938 kB / 0.624 GB, free: 1.641 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/1.174, allocations: 15.94 kB / 0.624 GB, free: 1.625 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/1.174, allocations: 0 / 0.624 GB, free: 1.625 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.174, allocations: 4 kB / 0.624 GB, free: 1.621 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006159/1.174, allocations: 0.51 MB / 0.6245 GB, free: 1.098 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.871e-05/1.174, allocations: 116.7 kB / 0.6246 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/1.174, allocations: 7.938 kB / 0.6246 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/1.175, allocations: 4 kB / 0.6246 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/1.175, allocations: 23.97 kB / 0.6246 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/1.175, allocations: 8 kB / 0.6246 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001021/1.175, allocations: 124.2 kB / 0.6248 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.175, allocations: 0 / 0.6248 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006974/1.176, allocations: 191.5 kB / 0.6249 GB, free: 0.6133 MB / 462.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.001368/1.177, allocations: 1.253 MB / 0.6262 GB, free: 15.36 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/1.178, allocations: 0.5996 MB / 0.6267 GB, free: 14.74 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.178, allocations: 0 / 0.6267 GB, free: 14.74 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005298/1.179, allocations: 0.492 MB / 0.6272 GB, free: 14.17 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/1.18, allocations: 188.5 kB / 0.6274 GB, free: 13.99 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004717/1.185, allocations: 3.626 MB / 0.631 GB, free: 10.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006309/1.185, allocations: 0.9504 MB / 0.6319 GB, free: 9.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005292/1.186, allocations: 257.8 kB / 0.6321 GB, free: 8.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/1.186, allocations: 271.3 kB / 0.6324 GB, free: 8.645 MB / 478.1 MB Notification: Performance of SimCode: time 6.41e-07/1.186, allocations: 0 / 0.6324 GB, free: 8.645 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04129/1.228, allocations: 18.06 MB / 0.65 GB, free: 6.598 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.07/10.3, allocations: 0 / 0.65 GB, free: 6.598 MB / 494.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)