Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_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.005852/0.005852, allocations: 97.69 kB / 15.73 MB, free: 5.961 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.001369/0.001369, allocations: 195.6 kB / 16.67 MB, free: 5.883 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.447/1.447, 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.01231/0.01231, allocations: 2.785 MB / 293.3 MB, free: 11.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 71.83 kB / 405.4 MB, free: 29.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0791/0.08095, allocations: 50.22 MB / 455.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.05452/0.1355, allocations: 50.75 MB / 0.4945 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2262/0.3618, allocations: 29.09 MB / 0.523 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005062/0.3623, allocations: 3.094 kB / 0.523 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.3639, allocations: 0.6163 MB / 0.5236 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00614/0.37, allocations: 2.243 MB / 0.5258 GB, free: 2.684 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007979/0.3781, allocations: 2.931 MB / 0.5286 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.3794, allocations: 0.932 MB / 0.5295 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.3796, allocations: 60.17 kB / 0.5296 GB, free: 1.484 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.4453/0.8249, allocations: 51.04 MB / 0.5794 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008591/0.8258, allocations: 307.8 kB / 0.5797 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.589e-05/0.8259, allocations: 44 kB / 0.5798 GB, free: 13.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2254/1.051, allocations: 26.92 MB / 0.6061 GB, free: 4.781 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002842/1.052, allocations: 112.7 kB / 0.6062 GB, free: 4.719 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008019/1.052, allocations: 342 kB / 0.6065 GB, free: 4.395 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009138/1.062, allocations: 1.871 MB / 0.6083 GB, free: 2.805 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/1.062, allocations: 0 / 0.6083 GB, free: 2.805 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.565e-06/1.062, allocations: 0 / 0.6083 GB, free: 2.805 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/1.062, allocations: 0 / 0.6083 GB, free: 2.805 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.001864/1.064, allocations: 1.123 MB / 0.6094 GB, free: 1.637 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/1.064, allocations: 8.031 kB / 0.6094 GB, free: 1.629 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001463/1.064, allocations: 127 kB / 0.6095 GB, free: 1.496 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002101/1.066, allocations: 0.4961 MB / 0.61 GB, free: 1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/1.068, allocations: 337.6 kB / 0.6103 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.759e-05/1.068, allocations: 45.88 kB / 0.6104 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.785e-05/1.069, allocations: 59.94 kB / 0.6104 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/1.07, allocations: 0.8747 MB / 0.6113 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/1.07, allocations: 4 kB / 0.6113 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.618e-05/1.07, allocations: 24 kB / 0.6113 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.504e-05/1.07, allocations: 39.97 kB / 0.6114 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/1.072, allocations: 0.7 MB / 0.6121 GB, free: 14.85 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004632/1.076, allocations: 5.121 MB / 0.6171 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007273/1.077, allocations: 337.1 kB / 0.6174 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/1.077, allocations: 221.5 kB / 0.6176 GB, free: 8.547 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001575/1.079, allocations: 1.539 MB / 0.6191 GB, free: 6.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1.079, allocations: 46.5 kB / 0.6191 GB, free: 6.785 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.013e-06/1.079, allocations: 0 / 0.6191 GB, free: 6.785 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001597/1.081, allocations: 0.5971 MB / 0.6197 GB, free: 6.184 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/1.081, allocations: 81.11 kB / 0.6198 GB, free: 6.086 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/1.081, allocations: 186.7 kB / 0.62 GB, free: 5.895 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/1.081, allocations: 29.7 kB / 0.62 GB, free: 5.859 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/1.081, allocations: 300.2 kB / 0.6203 GB, free: 5.562 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/1.081, allocations: 239.4 kB / 0.6205 GB, free: 5.332 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/1.082, allocations: 93.97 kB / 0.6206 GB, free: 5.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/1.082, allocations: 346.8 kB / 0.6209 GB, free: 4.883 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/1.082, allocations: 117.2 kB / 0.621 GB, free: 4.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/1.082, allocations: 308 kB / 0.6213 GB, free: 4.395 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000705/1.083, allocations: 492.6 kB / 0.6218 GB, free: 3.836 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/1.083, allocations: 0 / 0.6218 GB, free: 3.836 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000852/1.084, allocations: 488.3 kB / 0.6223 GB, free: 3.352 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/1.084, allocations: 11.94 kB / 0.6223 GB, free: 3.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/1.084, allocations: 4 kB / 0.6223 GB, free: 3.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/1.084, allocations: 8 kB / 0.6223 GB, free: 3.328 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/1.084, allocations: 92.45 kB / 0.6224 GB, free: 3.238 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007566/1.085, allocations: 1.176 MB / 0.6235 GB, free: 2.016 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/1.085, allocations: 67.5 kB / 0.6236 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/1.086, allocations: 16 kB / 0.6236 GB, free: 1.934 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.0002571/1.086, allocations: 198.7 kB / 0.6238 GB, free: 1.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-05/1.086, allocations: 27.81 kB / 0.6238 GB, free: 1.703 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.641e-05/1.086, allocations: 30.64 kB / 0.6239 GB, free: 1.676 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/1.086, allocations: 4 kB / 0.6239 GB, free: 1.672 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/1.086, allocations: 3.938 kB / 0.6239 GB, free: 1.668 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/1.086, allocations: 0 / 0.6239 GB, free: 1.668 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006932/1.087, allocations: 0.4959 MB / 0.6244 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/1.087, allocations: 0 / 0.6244 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/1.087, allocations: 35.98 kB / 0.6244 GB, free: 1.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/1.087, allocations: 3.984 kB / 0.6244 GB, free: 1.086 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/1.087, allocations: 15.98 kB / 0.6244 GB, free: 1.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006808/1.088, allocations: 1.168 MB / 0.6255 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.088, allocations: 3.938 kB / 0.6255 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007376/1.088, allocations: 0.5102 MB / 0.626 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/1.089, allocations: 120.7 kB / 0.6262 GB, free: 15.19 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/1.089, allocations: 4 kB / 0.6262 GB, free: 15.19 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/1.089, allocations: 4 kB / 0.6262 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.26e-05/1.089, allocations: 15.98 kB / 0.6262 GB, free: 15.17 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/1.089, allocations: 12.17 kB / 0.6262 GB, free: 15.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001396/1.089, allocations: 132.2 kB / 0.6263 GB, free: 15.03 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.089, allocations: 3.938 kB / 0.6263 GB, free: 15.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00084/1.09, allocations: 191.5 kB / 0.6265 GB, free: 14.84 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.00187/1.092, allocations: 1.247 MB / 0.6277 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/1.093, allocations: 0.6231 MB / 0.6283 GB, free: 12.94 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.093, allocations: 0 / 0.6283 GB, free: 12.94 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006671/1.093, allocations: 0.5221 MB / 0.6288 GB, free: 12.35 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/1.095, allocations: 184.5 kB / 0.629 GB, free: 12.17 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005307/1.1, allocations: 3.671 MB / 0.6326 GB, free: 8.277 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006789/1.101, allocations: 0.9465 MB / 0.6335 GB, free: 7.301 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005217/1.101, allocations: 223.8 kB / 0.6337 GB, free: 7.082 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/1.102, allocations: 271.4 kB / 0.634 GB, free: 6.816 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/1.102, allocations: 0 / 0.634 GB, free: 6.816 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05759/1.159, allocations: 18.34 MB / 0.6519 GB, free: 4.492 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/14.52, allocations: 10.44 kB / 0.6519 GB, free: 4.484 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)