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: translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 101.7 kB / 16.35 MB, free: 5.887 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.001115/0.001115, allocations: 188.6 kB / 17.29 MB, free: 5.527 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01298/0.01298, allocations: 2.784 MB / 293.9 MB, free: 11.99 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.89 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2285, allocations: 50.24 MB / 406.1 MB, free: 32.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.03977/0.2683, allocations: 50.75 MB / 456.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02626/0.2946, allocations: 29.1 MB / 485.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006119/0.2953, allocations: 3.938 kB / 485.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001741/0.2971, allocations: 0.6136 MB / 486.5 MB, free: 64 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006127/0.3032, allocations: 2.238 MB / 488.8 MB, free: 13.81 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.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.008339/0.3116, allocations: 2.932 MB / 491.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.3132, allocations: 0.9312 MB / 492.6 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.3133, allocations: 65.73 kB / 492.7 MB, free: 9.855 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.547/0.8603, allocations: 51.03 MB / 0.531 GB, free: 24.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00055/0.8609, allocations: 309.5 kB / 0.5313 GB, free: 24.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.861, allocations: 40.59 kB / 0.5313 GB, free: 24.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1624/1.023, allocations: 26.92 MB / 0.5576 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002735/1.024, allocations: 118.5 kB / 0.5577 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004841/1.024, allocations: 339.4 kB / 0.5581 GB, free: 6.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006051/1.03, allocations: 1.853 MB / 0.5599 GB, free: 5.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.03, allocations: 0 / 0.5599 GB, free: 5.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/1.03, allocations: 4 kB / 0.5599 GB, free: 5.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/1.03, allocations: 0 / 0.5599 GB, free: 5.586 MB / 382.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.001776/1.032, allocations: 1.111 MB / 0.561 GB, free: 4.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/1.032, allocations: 12.03 kB / 0.561 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001949/1.034, allocations: 0.4961 MB / 0.5614 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002088/1.036, allocations: 340.8 kB / 0.5618 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/1.036, allocations: 50.67 kB / 0.5618 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/1.036, allocations: 52.38 kB / 0.5619 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/1.039, allocations: 0.8693 MB / 0.5627 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/1.039, allocations: 3.188 kB / 0.5627 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.157e-05/1.039, allocations: 24.38 kB / 0.5627 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.145e-05/1.039, allocations: 35.34 kB / 0.5628 GB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/1.041, allocations: 0.699 MB / 0.5635 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004964/1.046, allocations: 5.114 MB / 0.5685 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/1.047, allocations: 342.1 kB / 0.5688 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004503/1.047, allocations: 221.2 kB / 0.569 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00204/1.049, allocations: 1.545 MB / 0.5705 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/1.049, allocations: 38.23 kB / 0.5705 GB, free: 11.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 3.096e-06/1.049, allocations: 0 / 0.5705 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.002467/1.052, allocations: 0.6038 MB / 0.5711 GB, free: 11.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/1.052, allocations: 77.11 kB / 0.5712 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/1.052, allocations: 181.8 kB / 0.5714 GB, free: 11.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/1.052, allocations: 37.39 kB / 0.5714 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/1.052, allocations: 291.1 kB / 0.5717 GB, free: 10.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/1.053, allocations: 231.4 kB / 0.5719 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/1.053, allocations: 93.11 kB / 0.572 GB, free: 10.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/1.053, allocations: 342.8 kB / 0.5723 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/1.053, allocations: 122.8 kB / 0.5724 GB, free: 10.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005163/1.054, allocations: 300.1 kB / 0.5727 GB, free: 9.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008919/1.055, allocations: 494.7 kB / 0.5732 GB, free: 9.453 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/1.055, allocations: 4 kB / 0.5732 GB, free: 9.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001239/1.056, allocations: 480.9 kB / 0.5737 GB, free: 9.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/1.056, allocations: 11.91 kB / 0.5737 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/1.056, allocations: 11.94 kB / 0.5737 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/1.056, allocations: 8.906 kB / 0.5737 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005418/1.057, allocations: 86.02 kB / 0.5738 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008808/1.058, allocations: 1.182 MB / 0.5749 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004199/1.058, allocations: 66.77 kB / 0.575 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.277e-05/1.058, allocations: 16 kB / 0.575 GB, free: 7.742 MB / 398.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.0003537/1.059, allocations: 195.2 kB / 0.5752 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/1.059, allocations: 31.38 kB / 0.5752 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.509e-05/1.059, allocations: 34.08 kB / 0.5753 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/1.059, allocations: 0 / 0.5753 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.059, allocations: 3.938 kB / 0.5753 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/1.059, allocations: 0 / 0.5753 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009723/1.06, allocations: 496.9 kB / 0.5757 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/1.06, allocations: 0 / 0.5757 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/1.06, allocations: 31.98 kB / 0.5758 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/1.06, allocations: 4 kB / 0.5758 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/1.06, allocations: 7.625 kB / 0.5758 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007295/1.061, allocations: 1.171 MB / 0.5769 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.061, allocations: 3.281 kB / 0.5769 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008571/1.062, allocations: 0.5202 MB / 0.5774 GB, free: 5.469 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/1.062, allocations: 116.5 kB / 0.5775 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.783e-05/1.062, allocations: 4 kB / 0.5775 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/1.062, allocations: 7.812 kB / 0.5776 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.817e-05/1.062, allocations: 15.73 kB / 0.5776 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/1.062, allocations: 11.98 kB / 0.5776 GB, free: 5.305 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001405/1.063, allocations: 126.2 kB / 0.5777 GB, free: 5.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.063, allocations: 0 / 0.5777 GB, free: 5.199 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001163/1.064, allocations: 195 kB / 0.5779 GB, free: 5.016 MB / 398.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.000722/1.065, allocations: 308.2 kB / 0.5782 GB, free: 4.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/1.066, allocations: 0.6146 MB / 0.5788 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/1.066, allocations: 192 / 0.5788 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008919/1.067, allocations: 0.514 MB / 0.5793 GB, free: 3.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/1.069, allocations: 180.8 kB / 0.5795 GB, free: 3.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/1.071, allocations: 1.055 MB / 0.5805 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/1.072, allocations: 0.9426 MB / 0.5814 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007236/1.073, allocations: 219.2 kB / 0.5816 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/1.073, allocations: 51.25 kB / 0.5817 GB, free: 1.445 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/1.073, allocations: 0 / 0.5817 GB, free: 1.445 MB / 398.1 MB Notification: Performance of Templates: time 0.03001/1.103, allocations: 11.01 MB / 0.5924 GB, free: 6.547 MB / 414.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.makefile (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 & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)