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.006342/0.006342, allocations: 99.16 kB / 15.73 MB, free: 6.004 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.001428/0.001428, allocations: 193.2 kB / 16.67 MB, free: 5.93 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01303/0.01303, allocations: 2.779 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 63.91 kB / 405.4 MB, free: 29.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1062, allocations: 50.23 MB / 455.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.05847/0.1647, allocations: 50.76 MB / 0.4946 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2395/0.4042, allocations: 29.09 MB / 0.523 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005326/0.4048, allocations: 3.531 kB / 0.523 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.4066, allocations: 0.6113 MB / 0.5236 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007494/0.4141, allocations: 2.247 MB / 0.5258 GB, free: 2.742 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.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.007773/0.4219, allocations: 2.919 MB / 0.5286 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00133/0.4232, allocations: 0.9308 MB / 0.5295 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.4234, allocations: 60.92 kB / 0.5296 GB, free: 1.535 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.693/1.116, allocations: 51.69 MB / 0.5801 GB, free: 13.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009254/1.117, allocations: 309.9 kB / 0.5804 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/1.117, allocations: 36 kB / 0.5804 GB, free: 13.05 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2295/1.347, allocations: 27.26 MB / 0.607 GB, free: 3.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002421/1.347, allocations: 111.2 kB / 0.6071 GB, free: 3.824 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006451/1.348, allocations: 339.8 kB / 0.6075 GB, free: 3.496 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007766/1.356, allocations: 1.87 MB / 0.6093 GB, free: 1.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/1.356, allocations: 0 / 0.6093 GB, free: 1.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/1.356, allocations: 0 / 0.6093 GB, free: 1.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/1.356, allocations: 0 / 0.6093 GB, free: 1.91 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.001854/1.358, allocations: 1.123 MB / 0.6104 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/1.358, allocations: 12.03 kB / 0.6104 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002133/1.358, allocations: 119 kB / 0.6105 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002104/1.36, allocations: 0.4961 MB / 0.611 GB, free: 108 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004008/1.364, allocations: 337.6 kB / 0.6113 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-05/1.364, allocations: 53.81 kB / 0.6114 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.586e-05/1.364, allocations: 59.94 kB / 0.6114 GB, free: 15.63 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001832/1.366, allocations: 0.8723 MB / 0.6123 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/1.366, allocations: 4 kB / 0.6123 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.275e-05/1.366, allocations: 23.94 kB / 0.6123 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.453e-05/1.366, allocations: 35.97 kB / 0.6123 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/1.368, allocations: 0.7039 MB / 0.613 GB, free: 13.95 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005368/1.373, allocations: 5.121 MB / 0.618 GB, free: 8.215 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007887/1.374, allocations: 329.1 kB / 0.6183 GB, free: 7.875 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/1.374, allocations: 225.6 kB / 0.6185 GB, free: 7.648 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001785/1.376, allocations: 1.543 MB / 0.6201 GB, free: 5.938 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/1.376, allocations: 34.55 kB / 0.6201 GB, free: 5.895 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.044e-06/1.376, allocations: 4 kB / 0.6201 GB, free: 5.891 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001631/1.378, allocations: 0.601 MB / 0.6207 GB, free: 5.285 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/1.378, allocations: 81.11 kB / 0.6208 GB, free: 5.188 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/1.378, allocations: 182.7 kB / 0.6209 GB, free: 5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/1.378, allocations: 29.7 kB / 0.621 GB, free: 4.965 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/1.378, allocations: 291.5 kB / 0.6212 GB, free: 4.676 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/1.379, allocations: 243 kB / 0.6215 GB, free: 4.441 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/1.379, allocations: 97.95 kB / 0.6216 GB, free: 4.336 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002184/1.379, allocations: 346.7 kB / 0.6219 GB, free: 3.988 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/1.379, allocations: 121.3 kB / 0.622 GB, free: 3.871 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/1.38, allocations: 300.6 kB / 0.6223 GB, free: 3.504 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007804/1.38, allocations: 484.7 kB / 0.6228 GB, free: 2.953 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/1.38, allocations: 3.938 kB / 0.6228 GB, free: 2.949 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008895/1.381, allocations: 488.9 kB / 0.6232 GB, free: 2.465 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/1.381, allocations: 15.97 kB / 0.6232 GB, free: 2.449 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/1.381, allocations: 4 kB / 0.6232 GB, free: 2.445 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/1.381, allocations: 12 kB / 0.6233 GB, free: 2.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/1.382, allocations: 83.84 kB / 0.6233 GB, free: 2.352 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008262/1.383, allocations: 1.188 MB / 0.6245 GB, free: 1.117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/1.383, allocations: 55.52 kB / 0.6245 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.667e-05/1.383, allocations: 27.98 kB / 0.6246 GB, free: 1.035 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): 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.0003037/1.383, allocations: 190.5 kB / 0.6248 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/1.383, allocations: 27.81 kB / 0.6248 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.738e-05/1.384, allocations: 26.66 kB / 0.6248 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/1.384, allocations: 0 / 0.6248 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/1.384, allocations: 16.02 kB / 0.6248 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/1.384, allocations: 3.984 kB / 0.6248 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007281/1.384, allocations: 0.4942 MB / 0.6253 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.384, allocations: 0 / 0.6253 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/1.384, allocations: 39.97 kB / 0.6253 GB, free: 196 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/1.385, allocations: 4.188 kB / 0.6254 GB, free: 192 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/1.385, allocations: 7.938 kB / 0.6254 GB, free: 184 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007816/1.385, allocations: 1.176 MB / 0.6265 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.385, allocations: 3.984 kB / 0.6265 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007401/1.386, allocations: 0.51 MB / 0.627 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/1.386, allocations: 120.9 kB / 0.6271 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/1.386, allocations: 0 / 0.6271 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/1.386, allocations: 11.98 kB / 0.6271 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.976e-05/1.386, allocations: 11.98 kB / 0.6271 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/1.387, allocations: 12 kB / 0.6272 GB, free: 14.26 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001427/1.387, allocations: 124.2 kB / 0.6273 GB, free: 14.14 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.387, allocations: 0 / 0.6273 GB, free: 14.14 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008078/1.387, allocations: 199.5 kB / 0.6275 GB, free: 13.94 MB / 478.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.001596/1.389, allocations: 1.244 MB / 0.6287 GB, free: 12.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/1.39, allocations: 0.6223 MB / 0.6293 GB, free: 12.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.39, allocations: 0.75 kB / 0.6293 GB, free: 12.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007424/1.391, allocations: 0.5115 MB / 0.6298 GB, free: 11.46 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/1.392, allocations: 188.5 kB / 0.63 GB, free: 11.28 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005121/1.397, allocations: 3.672 MB / 0.6336 GB, free: 7.395 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007298/1.398, allocations: 0.9465 MB / 0.6345 GB, free: 6.418 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00052/1.399, allocations: 215.9 kB / 0.6347 GB, free: 6.207 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/1.399, allocations: 275.3 kB / 0.6349 GB, free: 5.938 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/1.399, allocations: 3.938 kB / 0.635 GB, free: 5.934 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05199/1.451, allocations: 18.44 MB / 0.653 GB, free: 3.527 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/14.54, allocations: 4.062 kB / 0.653 GB, free: 3.523 MB / 494.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)