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.005791/0.005792, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001314/0.001314, allocations: 193.5 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01342/0.01342, allocations: 2.78 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.89 kB / 405.4 MB, free: 29.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08534/0.08665, allocations: 50.23 MB / 455.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.05708/0.1438, allocations: 50.76 MB / 0.4946 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2808/0.4246, allocations: 29.09 MB / 0.523 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00064/0.4253, allocations: 2.625 kB / 0.523 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.4271, allocations: 0.6186 MB / 0.5236 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008002/0.4351, allocations: 2.25 MB / 0.5258 GB, free: 2.672 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.01052/0.4457, allocations: 2.918 MB / 0.5286 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001448/0.4472, allocations: 0.9336 MB / 0.5295 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.4473, allocations: 63.66 kB / 0.5296 GB, free: 1.5 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.566/1.013, allocations: 51.71 MB / 0.5801 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007223/1.014, allocations: 302 kB / 0.5804 GB, free: 13.07 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.776e-05/1.014, allocations: 40 kB / 0.5804 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.168/1.182, allocations: 27.26 MB / 0.607 GB, free: 3.895 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002845/1.183, allocations: 113.4 kB / 0.6071 GB, free: 3.809 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006928/1.183, allocations: 340.7 kB / 0.6075 GB, free: 3.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007916/1.191, allocations: 1.867 MB / 0.6093 GB, free: 1.895 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/1.191, allocations: 0 / 0.6093 GB, free: 1.895 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/1.191, allocations: 0 / 0.6093 GB, free: 1.895 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/1.191, allocations: 0 / 0.6093 GB, free: 1.895 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.002353/1.194, allocations: 1.13 MB / 0.6104 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/1.194, allocations: 12.03 kB / 0.6104 GB, free: 0.707 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/1.194, allocations: 115.1 kB / 0.6105 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002199/1.196, allocations: 0.4961 MB / 0.611 GB, free: 92 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004065/1.2, allocations: 345.4 kB / 0.6113 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.685e-05/1.2, allocations: 45.88 kB / 0.6114 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.708e-05/1.2, allocations: 59.94 kB / 0.6114 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/1.202, allocations: 0.8685 MB / 0.6123 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/1.202, allocations: 7.875 kB / 0.6123 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/1.202, allocations: 28 kB / 0.6123 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.415e-05/1.202, allocations: 27.98 kB / 0.6123 GB, free: 14.63 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/1.203, allocations: 0.7039 MB / 0.613 GB, free: 13.93 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00479/1.208, allocations: 5.123 MB / 0.618 GB, free: 8.203 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007401/1.209, allocations: 341.1 kB / 0.6184 GB, free: 7.852 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/1.209, allocations: 225.5 kB / 0.6186 GB, free: 7.625 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001588/1.211, allocations: 1.536 MB / 0.6201 GB, free: 5.918 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/1.211, allocations: 30.56 kB / 0.6201 GB, free: 5.879 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.465e-06/1.211, allocations: 0 / 0.6201 GB, free: 5.879 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.0017/1.212, allocations: 0.6038 MB / 0.6207 GB, free: 5.273 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/1.213, allocations: 89.03 kB / 0.6208 GB, free: 5.168 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/1.213, allocations: 186.7 kB / 0.621 GB, free: 4.977 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/1.213, allocations: 29.7 kB / 0.621 GB, free: 4.941 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/1.213, allocations: 288.4 kB / 0.6213 GB, free: 4.652 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/1.213, allocations: 243.4 kB / 0.6215 GB, free: 4.418 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/1.213, allocations: 97.95 kB / 0.6216 GB, free: 4.312 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/1.214, allocations: 338.8 kB / 0.6219 GB, free: 3.973 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003613/1.214, allocations: 125.3 kB / 0.622 GB, free: 3.852 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/1.214, allocations: 300.7 kB / 0.6223 GB, free: 3.484 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006389/1.215, allocations: 484.7 kB / 0.6228 GB, free: 2.934 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/1.215, allocations: 4 kB / 0.6228 GB, free: 2.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000862/1.216, allocations: 488.1 kB / 0.6232 GB, free: 2.449 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/1.216, allocations: 15.88 kB / 0.6233 GB, free: 2.434 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/1.216, allocations: 8.703 kB / 0.6233 GB, free: 2.426 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.812e-05/1.216, allocations: 8 kB / 0.6233 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003993/1.216, allocations: 79.91 kB / 0.6233 GB, free: 2.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007309/1.217, allocations: 1.188 MB / 0.6245 GB, free: 1.105 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/1.217, allocations: 55.52 kB / 0.6246 GB, free: 1.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/1.217, allocations: 28.19 kB / 0.6246 GB, free: 1.023 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.0002674/1.218, allocations: 194.5 kB / 0.6248 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.733e-05/1.218, allocations: 31.81 kB / 0.6248 GB, free: 0.793 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/1.218, allocations: 26.66 kB / 0.6248 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/1.218, allocations: 0 / 0.6248 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/1.218, allocations: 7.938 kB / 0.6248 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/1.218, allocations: 3.984 kB / 0.6248 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006425/1.219, allocations: 0.496 MB / 0.6253 GB, free: 220 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/1.219, allocations: 4 kB / 0.6253 GB, free: 216 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/1.219, allocations: 44.09 kB / 0.6254 GB, free: 172 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/1.219, allocations: 4 kB / 0.6254 GB, free: 168 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/1.219, allocations: 7.938 kB / 0.6254 GB, free: 160 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006115/1.219, allocations: 1.164 MB / 0.6265 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.219, allocations: 7.969 kB / 0.6265 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006413/1.22, allocations: 0.51 MB / 0.627 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.234e-05/1.22, allocations: 116.8 kB / 0.6271 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/1.22, allocations: 0 / 0.6271 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/1.22, allocations: 12.08 kB / 0.6271 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.531e-05/1.221, allocations: 15.98 kB / 0.6272 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/1.221, allocations: 12 kB / 0.6272 GB, free: 14.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001079/1.221, allocations: 124.2 kB / 0.6273 GB, free: 14.12 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.221, allocations: 0 / 0.6273 GB, free: 14.12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007258/1.221, allocations: 195.5 kB / 0.6275 GB, free: 13.93 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.001523/1.223, allocations: 1.251 MB / 0.6287 GB, free: 12.68 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/1.224, allocations: 0.623 MB / 0.6293 GB, free: 12.03 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.224, allocations: 0 / 0.6293 GB, free: 12.03 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/1.225, allocations: 0.5153 MB / 0.6298 GB, free: 11.44 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/1.226, allocations: 188.2 kB / 0.63 GB, free: 11.26 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005855/1.232, allocations: 3.664 MB / 0.6336 GB, free: 7.379 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006623/1.233, allocations: 0.9426 MB / 0.6345 GB, free: 6.406 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000575/1.234, allocations: 219.8 kB / 0.6347 GB, free: 6.191 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/1.234, allocations: 279.3 kB / 0.635 GB, free: 5.918 MB / 478.1 MB Notification: Performance of SimCode: time 1.382e-06/1.234, allocations: 0 / 0.635 GB, free: 5.918 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04804/1.282, allocations: 18.44 MB / 0.653 GB, free: 3.504 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/14.03, allocations: 3.984 kB / 0.653 GB, free: 3.5 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)