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.006276/0.006276, allocations: 100.6 kB / 15.73 MB, free: 6.059 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.001334/0.001334, allocations: 194.4 kB / 16.67 MB, free: 5.953 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.297/1.297, 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.01117/0.01117, allocations: 2.779 MB / 293.3 MB, free: 11.94 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001116, allocations: 59.89 kB / 405.9 MB, free: 29.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09074/0.09187, allocations: 50.24 MB / 456.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.04623/0.1381, allocations: 50.75 MB / 0.495 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2584/0.3965, allocations: 29.09 MB / 0.5234 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005245/0.3971, allocations: 6.031 kB / 0.5234 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.3987, allocations: 0.6185 MB / 0.524 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006813/0.4055, allocations: 2.253 MB / 0.5262 GB, free: 3.254 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.00838/0.4139, allocations: 2.925 MB / 0.5291 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.4153, allocations: 0.9363 MB / 0.53 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.4155, allocations: 57.31 kB / 0.5301 GB, free: 2.02 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.3286/0.7441, allocations: 51.05 MB / 0.5799 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007144/0.7449, allocations: 312.3 kB / 0.5802 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.745, allocations: 36 kB / 0.5803 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1631/0.9081, allocations: 26.94 MB / 0.6066 GB, free: 5.055 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.9084, allocations: 113 kB / 0.6067 GB, free: 4.949 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006699/0.9091, allocations: 337.3 kB / 0.607 GB, free: 4.621 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007216/0.9163, allocations: 1.869 MB / 0.6088 GB, free: 3.035 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.9163, allocations: 0 / 0.6088 GB, free: 3.035 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.9163, allocations: 0 / 0.6088 GB, free: 3.035 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.2e-05/0.9164, allocations: 4 kB / 0.6088 GB, free: 3.031 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.002487/0.9188, allocations: 1.122 MB / 0.6099 GB, free: 1.863 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.9189, allocations: 8.031 kB / 0.6099 GB, free: 1.855 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002296/0.9212, allocations: 0.4961 MB / 0.6104 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002518/0.9237, allocations: 339.5 kB / 0.6107 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-05/0.9238, allocations: 46.06 kB / 0.6108 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.966e-05/0.9239, allocations: 60 kB / 0.6108 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.9257, allocations: 0.8762 MB / 0.6117 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.9257, allocations: 3.938 kB / 0.6117 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.819e-05/0.9258, allocations: 28 kB / 0.6117 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-05/0.9259, allocations: 27.94 kB / 0.6117 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.9272, allocations: 0.7 MB / 0.6124 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004517/0.9318, allocations: 5.118 MB / 0.6174 GB, free: 9.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007964/0.9326, allocations: 337.1 kB / 0.6177 GB, free: 9.133 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003537/0.9329, allocations: 221.5 kB / 0.618 GB, free: 8.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001854/0.9348, allocations: 1.551 MB / 0.6195 GB, free: 7.191 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.9349, allocations: 30.56 kB / 0.6195 GB, free: 7.152 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.023e-06/0.9349, allocations: 0 / 0.6195 GB, free: 7.152 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001743/0.9366, allocations: 0.6049 MB / 0.6201 GB, free: 6.543 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.9367, allocations: 85.05 kB / 0.6202 GB, free: 6.441 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.9369, allocations: 182.7 kB / 0.6204 GB, free: 6.254 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.9369, allocations: 33.7 kB / 0.6204 GB, free: 6.215 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.9371, allocations: 294.4 kB / 0.6207 GB, free: 5.922 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.9374, allocations: 240.4 kB / 0.6209 GB, free: 5.691 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.9375, allocations: 97.95 kB / 0.621 GB, free: 5.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.9377, allocations: 338.8 kB / 0.6213 GB, free: 5.246 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.9379, allocations: 125.3 kB / 0.6214 GB, free: 5.125 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.9383, allocations: 308.6 kB / 0.6217 GB, free: 4.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006308/0.9389, allocations: 488.7 kB / 0.6222 GB, free: 4.195 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.9389, allocations: 4 kB / 0.6222 GB, free: 4.191 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008337/0.9398, allocations: 484.2 kB / 0.6227 GB, free: 3.711 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.9398, allocations: 8.719 kB / 0.6227 GB, free: 3.703 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.9398, allocations: 11.94 kB / 0.6227 GB, free: 3.691 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.9399, allocations: 12 kB / 0.6227 GB, free: 3.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003667/0.9402, allocations: 79.89 kB / 0.6228 GB, free: 3.602 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008291/0.9411, allocations: 1.188 MB / 0.6239 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.9414, allocations: 55.7 kB / 0.624 GB, free: 2.312 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.683e-05/0.9414, allocations: 24 kB / 0.624 GB, free: 2.289 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.001126/0.9426, allocations: 186.6 kB / 0.6242 GB, free: 2.098 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-05/0.9427, allocations: 35.8 kB / 0.6242 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.183e-05/0.9427, allocations: 22.66 kB / 0.6242 GB, free: 2.043 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.9427, allocations: 4 kB / 0.6242 GB, free: 2.039 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.9428, allocations: 3.938 kB / 0.6242 GB, free: 2.035 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.9428, allocations: 0 / 0.6242 GB, free: 2.035 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006981/0.9435, allocations: 0.4994 MB / 0.6247 GB, free: 1.492 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.9435, allocations: 4 kB / 0.6247 GB, free: 1.488 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.9437, allocations: 43.91 kB / 0.6248 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.9437, allocations: 0 / 0.6248 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.9437, allocations: 4 kB / 0.6248 GB, free: 1.441 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006543/0.9444, allocations: 1.172 MB / 0.6259 GB, free: 228 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.9444, allocations: 3.938 kB / 0.6259 GB, free: 224 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006951/0.9451, allocations: 0.5139 MB / 0.6264 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.9452, allocations: 116.7 kB / 0.6265 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.9453, allocations: 4 kB / 0.6265 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.9455, allocations: 16.08 kB / 0.6266 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.015e-05/0.9455, allocations: 11.98 kB / 0.6266 GB, free: 15.53 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.9455, allocations: 8 kB / 0.6266 GB, free: 15.52 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.9457, allocations: 120.2 kB / 0.6267 GB, free: 15.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.9457, allocations: 192 / 0.6267 GB, free: 15.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007594/0.9464, allocations: 203.4 kB / 0.6269 GB, free: 15.2 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.0006038/0.9471, allocations: 307.3 kB / 0.6272 GB, free: 14.92 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.9481, allocations: 0.6154 MB / 0.6278 GB, free: 14.28 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.9481, allocations: 0 / 0.6278 GB, free: 14.28 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006536/0.9488, allocations: 0.5115 MB / 0.6283 GB, free: 13.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.9499, allocations: 192.2 kB / 0.6285 GB, free: 13.51 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.9518, allocations: 1.081 MB / 0.6295 GB, free: 12.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.9524, allocations: 0.9426 MB / 0.6304 GB, free: 11.43 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004521/0.9528, allocations: 215.9 kB / 0.6306 GB, free: 11.22 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.387e-05/0.9529, allocations: 43.44 kB / 0.6307 GB, free: 11.18 MB / 478.1 MB Notification: Performance of SimCode: time 4.41e-07/0.9529, allocations: 0 / 0.6307 GB, free: 11.18 MB / 478.1 MB Notification: Performance of Templates: time 0.02206/0.975, allocations: 11.31 MB / 0.6417 GB, free: 15.88 MB / 494.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)