Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009073/0.009073, allocations: 99.89 kB / 15.73 MB, free: 6.043 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.001367/0.001367, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.292/1.292, 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.01219/0.01219, allocations: 2.779 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.89 kB / 405.9 MB, free: 29.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09144, allocations: 50.23 MB / 456.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.04468/0.1362, allocations: 50.72 MB / 0.495 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2771/0.4133, allocations: 29.09 MB / 0.5234 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007502/0.4141, allocations: 10.94 kB / 0.5234 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.4161, allocations: 0.6087 MB / 0.524 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008133/0.4242, allocations: 2.253 MB / 0.5262 GB, free: 3.223 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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008753/0.433, allocations: 2.926 MB / 0.5291 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001494/0.4345, allocations: 0.9174 MB / 0.53 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.4347, allocations: 63.45 kB / 0.53 GB, free: 2.004 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.3223/0.757, allocations: 51.06 MB / 0.5799 GB, free: 14.13 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.7581, allocations: 304.2 kB / 0.5802 GB, free: 13.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.7582, allocations: 40 kB / 0.5802 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1699/0.9282, allocations: 26.93 MB / 0.6065 GB, free: 5.031 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00026/0.9285, allocations: 111.9 kB / 0.6066 GB, free: 4.926 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006421/0.9291, allocations: 333.2 kB / 0.6069 GB, free: 4.605 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.9393, allocations: 1.862 MB / 0.6087 GB, free: 3.027 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.9394, allocations: 0 / 0.6087 GB, free: 3.027 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.9394, allocations: 0 / 0.6087 GB, free: 3.027 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.9394, allocations: 0 / 0.6087 GB, free: 3.027 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.002159/0.9416, allocations: 1.096 MB / 0.6098 GB, free: 1.883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.9416, allocations: 12.03 kB / 0.6098 GB, free: 1.871 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00217/0.9438, allocations: 0.4958 MB / 0.6103 GB, free: 1.375 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002664/0.9465, allocations: 341.5 kB / 0.6106 GB, free: 1.004 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.9466, allocations: 50.06 kB / 0.6107 GB, free: 0.957 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.005e-05/0.9467, allocations: 52 kB / 0.6107 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001958/0.9487, allocations: 0.8762 MB / 0.6116 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.9487, allocations: 4 kB / 0.6116 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.608e-05/0.9488, allocations: 20 kB / 0.6116 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.196e-05/0.9488, allocations: 31.98 kB / 0.6116 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.9503, allocations: 0.7117 MB / 0.6123 GB, free: 15.22 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004713/0.955, allocations: 4.951 MB / 0.6172 GB, free: 9.684 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007888/0.9559, allocations: 337.1 kB / 0.6175 GB, free: 9.336 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003767/0.9563, allocations: 233.7 kB / 0.6177 GB, free: 9.102 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001471/0.9577, allocations: 1.534 MB / 0.6192 GB, free: 7.398 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.9578, allocations: 38.56 kB / 0.6192 GB, free: 7.352 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.545e-06/0.9578, allocations: 0 / 0.6192 GB, free: 7.352 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001685/0.9595, allocations: 0.6276 MB / 0.6199 GB, free: 6.719 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/0.9595, allocations: 81.05 kB / 0.6199 GB, free: 6.621 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.9598, allocations: 179.5 kB / 0.6201 GB, free: 6.438 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.9598, allocations: 29.7 kB / 0.6201 GB, free: 6.402 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.96, allocations: 274.7 kB / 0.6204 GB, free: 6.129 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.9602, allocations: 241.4 kB / 0.6206 GB, free: 5.895 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.9604, allocations: 97.91 kB / 0.6207 GB, free: 5.789 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.9605, allocations: 342.8 kB / 0.6211 GB, free: 5.445 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.9608, allocations: 121.3 kB / 0.6212 GB, free: 5.328 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003582/0.9611, allocations: 285.4 kB / 0.6214 GB, free: 4.984 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000698/0.9618, allocations: 477.5 kB / 0.6219 GB, free: 4.449 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.9618, allocations: 4 kB / 0.6219 GB, free: 4.445 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000834/0.9627, allocations: 480.6 kB / 0.6224 GB, free: 3.969 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.9627, allocations: 8 kB / 0.6224 GB, free: 3.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.9627, allocations: 7.938 kB / 0.6224 GB, free: 3.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.013e-05/0.9628, allocations: 8.375 kB / 0.6224 GB, free: 3.945 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.963, allocations: 75.84 kB / 0.6225 GB, free: 3.871 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.9631, allocations: 11.98 kB / 0.6225 GB, free: 3.859 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.9633, allocations: 59.22 kB / 0.6225 GB, free: 3.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.9634, allocations: 23.94 kB / 0.6225 GB, free: 3.777 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003144/0.9637, allocations: 201.7 kB / 0.6227 GB, free: 3.57 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.169e-05/0.9638, allocations: 27.62 kB / 0.6228 GB, free: 3.543 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.972e-05/0.9639, allocations: 29.91 kB / 0.6228 GB, free: 3.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.9639, allocations: 4 kB / 0.6228 GB, free: 3.516 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.9639, allocations: 3.984 kB / 0.6228 GB, free: 3.512 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.9639, allocations: 3.984 kB / 0.6228 GB, free: 3.508 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.9646, allocations: 499.9 kB / 0.6233 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.9646, allocations: 4 kB / 0.6233 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.9647, allocations: 27.98 kB / 0.6233 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.9647, allocations: 7.984 kB / 0.6233 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.9648, allocations: 11.94 kB / 0.6233 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.9648, allocations: 0 / 0.6233 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.9648, allocations: 7.938 kB / 0.6233 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007324/0.9655, allocations: 0.515 MB / 0.6238 GB, free: 2.391 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.432e-05/0.9656, allocations: 120.5 kB / 0.624 GB, free: 2.254 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.9657, allocations: 11.94 kB / 0.624 GB, free: 2.242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.9659, allocations: 8 kB / 0.624 GB, free: 2.234 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.966, allocations: 23.97 kB / 0.624 GB, free: 2.211 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.966, allocations: 11.98 kB / 0.624 GB, free: 2.199 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.955e-05/0.9661, allocations: 115.2 kB / 0.6241 GB, free: 2.086 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.9661, allocations: 0 / 0.6241 GB, free: 2.086 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006961/0.9668, allocations: 199.3 kB / 0.6243 GB, free: 1.891 MB / 462.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: 4 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007006/0.9675, allocations: 298.2 kB / 0.6246 GB, free: 1.613 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009164/0.9684, allocations: 0.6153 MB / 0.6252 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.9684, allocations: 192 / 0.6252 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000522/0.969, allocations: 0.508 MB / 0.6257 GB, free: 404 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.97, allocations: 196.5 kB / 0.6259 GB, free: 208 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.972, allocations: 1.043 MB / 0.6269 GB, free: 15.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007771/0.9728, allocations: 0.9514 MB / 0.6278 GB, free: 14.15 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00123/0.9741, allocations: 257.9 kB / 0.6281 GB, free: 13.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.9742, allocations: 43.44 kB / 0.6281 GB, free: 13.86 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/0.9742, allocations: 3.938 kB / 0.6281 GB, free: 13.86 MB / 478.1 MB Notification: Performance of Templates: time 0.02137/0.9956, allocations: 11.5 MB / 0.6393 GB, free: 2.371 MB / 478.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)