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.001485/0.001485, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.441/1.441, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1368/0.1368, allocations: 2.761 MB / 293.1 MB, free: 3.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 55.91 kB / 354.4 MB, free: 4.402 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.09718, allocations: 50.22 MB / 404.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2154/0.3126, allocations: 50.75 MB / 455.4 MB, free: 21.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.3282, allocations: 29.11 MB / 484.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005009/0.3288, allocations: 2.969 kB / 484.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.3302, allocations: 0.6145 MB / 485.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005497/0.3357, allocations: 2.242 MB / 487.3 MB, free: 13.83 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.007438/0.3432, allocations: 2.921 MB / 490.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.3445, allocations: 0.9285 MB / 491.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.3446, allocations: 56.97 kB / 491.2 MB, free: 11.57 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.3345/0.6792, allocations: 50.6 MB / 0.5291 GB, free: 8.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.6803, allocations: 310.5 kB / 0.5294 GB, free: 8.461 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001915/0.6805, allocations: 40 kB / 0.5295 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1708/0.8513, allocations: 26.71 MB / 0.5556 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.8516, allocations: 115.5 kB / 0.5557 GB, free: 13.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000573/0.8522, allocations: 334.5 kB / 0.556 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006474/0.8587, allocations: 1.847 MB / 0.5578 GB, free: 11.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.8587, allocations: 4 kB / 0.5578 GB, free: 11.24 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.8587, allocations: 4 kB / 0.5578 GB, free: 11.24 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.8587, allocations: 0 / 0.5578 GB, free: 11.24 MB / 430.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.001881/0.8606, allocations: 1.092 MB / 0.5589 GB, free: 10.1 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.8606, allocations: 8.031 kB / 0.5589 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002032/0.8627, allocations: 0.5035 MB / 0.5594 GB, free: 9.586 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.8632, allocations: 339.5 kB / 0.5597 GB, free: 9.215 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.881e-05/0.8633, allocations: 46.06 kB / 0.5597 GB, free: 9.172 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.8633, allocations: 59.98 kB / 0.5598 GB, free: 9.113 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.8648, allocations: 0.8762 MB / 0.5607 GB, free: 8.191 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.8648, allocations: 3.938 kB / 0.5607 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.355e-05/0.8649, allocations: 24 kB / 0.5607 GB, free: 8.164 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.582e-05/0.8649, allocations: 35.98 kB / 0.5607 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.8663, allocations: 0.7 MB / 0.5614 GB, free: 7.426 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003982/0.8703, allocations: 5.16 MB / 0.5664 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.8709, allocations: 329.7 kB / 0.5668 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/0.8713, allocations: 225.5 kB / 0.567 GB, free: 1.082 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001715/0.873, allocations: 1.539 MB / 0.5685 GB, free: 15.37 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.873, allocations: 38.56 kB / 0.5685 GB, free: 15.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 1.844e-06/0.873, allocations: 0 / 0.5685 GB, free: 15.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.003678/0.8767, allocations: 0.6041 MB / 0.5691 GB, free: 14.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.8768, allocations: 85.05 kB / 0.5692 GB, free: 14.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.8771, allocations: 187 kB / 0.5694 GB, free: 14.42 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.8771, allocations: 29.7 kB / 0.5694 GB, free: 14.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.8773, allocations: 283.5 kB / 0.5697 GB, free: 14.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.8775, allocations: 240.4 kB / 0.5699 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.8777, allocations: 97.91 kB / 0.57 GB, free: 13.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.8778, allocations: 338.8 kB / 0.5703 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.878, allocations: 121.3 kB / 0.5704 GB, free: 13.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003571/0.8784, allocations: 304 kB / 0.5707 GB, free: 12.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.879, allocations: 496.4 kB / 0.5712 GB, free: 12.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.8791, allocations: 0 / 0.5712 GB, free: 12.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008353/0.8799, allocations: 484.9 kB / 0.5716 GB, free: 11.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.8799, allocations: 11.91 kB / 0.5717 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.88, allocations: 12 kB / 0.5717 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.88, allocations: 8 kB / 0.5717 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000354/0.8803, allocations: 83.89 kB / 0.5718 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006604/0.881, allocations: 1.176 MB / 0.5729 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.8813, allocations: 63.27 kB / 0.573 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.8813, allocations: 23.94 kB / 0.573 GB, free: 10.46 MB / 446.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.0002389/0.8816, allocations: 184.2 kB / 0.5732 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.968e-05/0.8817, allocations: 27.62 kB / 0.5732 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.55e-05/0.8817, allocations: 30.64 kB / 0.5732 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.8818, allocations: 4.188 kB / 0.5732 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.8818, allocations: 3.938 kB / 0.5732 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.8818, allocations: 8 kB / 0.5732 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006337/0.8824, allocations: 0.4944 MB / 0.5737 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.8824, allocations: 4 kB / 0.5737 GB, free: 9.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.8826, allocations: 43.92 kB / 0.5738 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.8826, allocations: 0 / 0.5738 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.8827, allocations: 7.984 kB / 0.5738 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006154/0.8833, allocations: 1.172 MB / 0.5749 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8833, allocations: 0 / 0.5749 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006786/0.884, allocations: 0.5135 MB / 0.5754 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.689e-05/0.8841, allocations: 116.6 kB / 0.5755 GB, free: 7.727 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.8841, allocations: 8.094 kB / 0.5755 GB, free: 7.719 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.8843, allocations: 8 kB / 0.5755 GB, free: 7.711 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.8844, allocations: 15.97 kB / 0.5756 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.8844, allocations: 12 kB / 0.5756 GB, free: 7.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.871e-05/0.8845, allocations: 119.2 kB / 0.5757 GB, free: 7.566 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8845, allocations: 0 / 0.5757 GB, free: 7.566 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006981/0.8852, allocations: 195.3 kB / 0.5759 GB, free: 7.375 MB / 446.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.0005114/0.8857, allocations: 293.5 kB / 0.5761 GB, free: 7.078 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.8868, allocations: 0.6349 MB / 0.5768 GB, free: 6.422 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.8868, allocations: 0 / 0.5768 GB, free: 6.422 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006657/0.8875, allocations: 0.5153 MB / 0.5773 GB, free: 5.836 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.8887, allocations: 188.6 kB / 0.5774 GB, free: 5.652 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.8909, allocations: 1.064 MB / 0.5785 GB, free: 4.555 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.8916, allocations: 0.9465 MB / 0.5794 GB, free: 3.578 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005419/0.8921, allocations: 207.9 kB / 0.5796 GB, free: 3.371 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.696e-05/0.8922, allocations: 43.44 kB / 0.5797 GB, free: 3.328 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8922, allocations: 0 / 0.5797 GB, free: 3.328 MB / 446.1 MB Notification: Performance of Templates: time 0.1664/1.059, allocations: 11.02 MB / 0.5904 GB, free: 140.8 MB / 446.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 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)