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.001591/0.001591, allocations: 106.2 kB / 16.41 MB, free: 6.516 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.001697/0.001697, allocations: 188.2 kB / 17.34 MB, free: 5.738 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.377/1.377, allocations: 222.9 MB / 241 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.01331/0.01331, allocations: 2.783 MB / 294 MB, free: 11.94 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.89 kB / 406.6 MB, free: 29.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07929/0.08049, allocations: 50.23 MB / 456.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.04571/0.1262, allocations: 50.72 MB / 0.4957 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2359/0.3622, allocations: 29.08 MB / 0.5241 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005918/0.3628, allocations: 7.281 kB / 0.5241 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.3644, allocations: 0.6153 MB / 0.5247 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006681/0.3711, allocations: 2.251 MB / 0.5269 GB, free: 3.238 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.00825/0.3794, allocations: 2.921 MB / 0.5297 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001413/0.3808, allocations: 0.9249 MB / 0.5306 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.3809, allocations: 69.69 kB / 0.5307 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.3252/0.7061, allocations: 51.05 MB / 0.5805 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006836/0.7068, allocations: 303.2 kB / 0.5808 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.7069, allocations: 40 kB / 0.5809 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1658/0.8727, allocations: 26.93 MB / 0.6072 GB, free: 5.043 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.873, allocations: 109.1 kB / 0.6073 GB, free: 4.941 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006125/0.8736, allocations: 336 kB / 0.6076 GB, free: 4.617 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007423/0.881, allocations: 1.864 MB / 0.6094 GB, free: 3.035 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.8811, allocations: 3.938 kB / 0.6094 GB, free: 3.031 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.8811, allocations: 4 kB / 0.6094 GB, free: 3.027 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.06e-05/0.8811, allocations: 0 / 0.6094 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.001916/0.883, allocations: 1.129 MB / 0.6105 GB, free: 1.852 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.8831, allocations: 8.031 kB / 0.6105 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002222/0.8853, allocations: 0.5 MB / 0.611 GB, free: 1.344 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/0.8873, allocations: 343.3 kB / 0.6113 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.256e-05/0.8874, allocations: 46.06 kB / 0.6114 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.763e-05/0.8875, allocations: 52 kB / 0.6114 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.8892, allocations: 0.8723 MB / 0.6123 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.8892, allocations: 3.938 kB / 0.6123 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.524e-05/0.8893, allocations: 24 kB / 0.6123 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.834e-05/0.8893, allocations: 39.97 kB / 0.6124 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.8907, allocations: 0.7 MB / 0.613 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004296/0.895, allocations: 4.949 MB / 0.6179 GB, free: 9.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007866/0.8958, allocations: 341.2 kB / 0.6182 GB, free: 9.309 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003765/0.8962, allocations: 229.5 kB / 0.6184 GB, free: 9.078 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00145/0.8977, allocations: 1.553 MB / 0.6199 GB, free: 7.355 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.8977, allocations: 34.56 kB / 0.62 GB, free: 7.312 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 1.883e-06/0.8977, allocations: 0 / 0.62 GB, free: 7.312 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001763/0.8995, allocations: 0.6239 MB / 0.6206 GB, free: 6.684 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.8996, allocations: 92.97 kB / 0.6207 GB, free: 6.574 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007383/0.9003, allocations: 171.7 kB / 0.6208 GB, free: 6.398 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.9003, allocations: 25.7 kB / 0.6209 GB, free: 6.367 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.9005, allocations: 292.3 kB / 0.6211 GB, free: 6.078 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.9007, allocations: 247.6 kB / 0.6214 GB, free: 5.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.9008, allocations: 93.97 kB / 0.6215 GB, free: 5.738 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.901, allocations: 346.8 kB / 0.6218 GB, free: 5.391 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002867/0.9013, allocations: 125.3 kB / 0.6219 GB, free: 5.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.9017, allocations: 285.4 kB / 0.6222 GB, free: 4.926 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000747/0.9025, allocations: 477.6 kB / 0.6226 GB, free: 4.391 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.9025, allocations: 0 / 0.6226 GB, free: 4.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009319/0.9034, allocations: 484.1 kB / 0.6231 GB, free: 3.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.9034, allocations: 8 kB / 0.6231 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.9035, allocations: 8.562 kB / 0.6231 GB, free: 3.895 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.9035, allocations: 8 kB / 0.6231 GB, free: 3.887 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.9038, allocations: 75.84 kB / 0.6232 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.9038, allocations: 8 kB / 0.6232 GB, free: 3.805 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.9041, allocations: 59.86 kB / 0.6233 GB, free: 3.746 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.9041, allocations: 20 kB / 0.6233 GB, free: 3.727 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.0002424/0.9044, allocations: 185.7 kB / 0.6235 GB, free: 3.535 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.471e-05/0.9045, allocations: 31.77 kB / 0.6235 GB, free: 3.504 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.809e-05/0.9045, allocations: 41.83 kB / 0.6235 GB, free: 3.469 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.9046, allocations: 8 kB / 0.6235 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.9046, allocations: 0 / 0.6235 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.9046, allocations: 0 / 0.6235 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006833/0.9053, allocations: 0.4978 MB / 0.624 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.9053, allocations: 0 / 0.624 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.9055, allocations: 31.98 kB / 0.624 GB, free: 2.887 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.9055, allocations: 0 / 0.624 GB, free: 2.887 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.9055, allocations: 11.94 kB / 0.6241 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.9055, allocations: 7.984 kB / 0.6241 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.9055, allocations: 0 / 0.6241 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007742/0.9063, allocations: 0.5256 MB / 0.6246 GB, free: 2.328 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.777e-05/0.9064, allocations: 116.7 kB / 0.6247 GB, free: 2.195 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.967e-05/0.9064, allocations: 7.938 kB / 0.6247 GB, free: 2.188 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.9067, allocations: 7.984 kB / 0.6247 GB, free: 2.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-05/0.9067, allocations: 27.97 kB / 0.6247 GB, free: 2.152 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.9068, allocations: 12 kB / 0.6247 GB, free: 2.141 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.9069, allocations: 115.2 kB / 0.6249 GB, free: 2.027 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.866e-06/0.9069, allocations: 0 / 0.6249 GB, free: 2.027 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007017/0.9076, allocations: 199.4 kB / 0.625 GB, free: 1.832 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.0005602/0.9082, allocations: 303.1 kB / 0.6253 GB, free: 1.551 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009778/0.9092, allocations: 0.6133 MB / 0.6259 GB, free: 0.918 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.9092, allocations: 0.6875 kB / 0.6259 GB, free: 0.918 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005902/0.9098, allocations: 0.5202 MB / 0.6264 GB, free: 332 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.911, allocations: 188.3 kB / 0.6266 GB, free: 144 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.9129, allocations: 1.127 MB / 0.6277 GB, free: 14.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000619/0.9135, allocations: 0.9475 MB / 0.6286 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.9137, allocations: 51.44 kB / 0.6287 GB, free: 13.95 MB / 478.1 MB Notification: Performance of SimCode: time 4.1e-07/0.9137, allocations: 0 / 0.6287 GB, free: 13.95 MB / 478.1 MB Notification: Performance of Templates: time 0.01473/0.9284, allocations: 8.997 MB / 0.6375 GB, free: 4.98 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)