Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit") translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005187/0.005187, allocations: 102.3 kB / 15.73 MB, free: 5.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.001281/0.001281, allocations: 193.5 kB / 16.67 MB, free: 5.449 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.21/1.21, allocations: 222.9 MB / 240.4 MB, free: 14.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01076/0.01076, allocations: 2.783 MB / 293.3 MB, free: 11.92 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 59.91 kB / 405.9 MB, free: 29.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07506/0.07612, allocations: 50.23 MB / 456.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.04019/0.1164, allocations: 50.76 MB / 0.495 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2142/0.3306, allocations: 29.09 MB / 0.5234 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004427/0.3311, allocations: 6.219 kB / 0.5234 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.3326, allocations: 0.614 MB / 0.524 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005974/0.3386, allocations: 2.245 MB / 0.5262 GB, free: 3.199 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_Tabular.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007471/0.3461, allocations: 2.926 MB / 0.5291 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.3472, allocations: 0.9276 MB / 0.53 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.3473, allocations: 61.05 kB / 0.5301 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.4997/0.847, allocations: 51.69 MB / 0.5805 GB, free: 13.53 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006726/0.8477, allocations: 302 kB / 0.5808 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.8479, allocations: 40 kB / 0.5809 GB, free: 13.26 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1617/1.01, allocations: 27.26 MB / 0.6075 GB, free: 4.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000225/1.01, allocations: 106.1 kB / 0.6076 GB, free: 3.973 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006059/1.01, allocations: 343.9 kB / 0.6079 GB, free: 3.641 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007751/1.018, allocations: 1.867 MB / 0.6097 GB, free: 2.055 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/1.018, allocations: 0 / 0.6097 GB, free: 2.055 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.562e-06/1.018, allocations: 0 / 0.6097 GB, free: 2.055 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.243e-05/1.018, allocations: 4 kB / 0.6097 GB, free: 2.051 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.001686/1.02, allocations: 1.123 MB / 0.6108 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/1.02, allocations: 12.03 kB / 0.6109 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001999/1.022, allocations: 0.4961 MB / 0.6113 GB, free: 384 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002815/1.025, allocations: 343.5 kB / 0.6117 GB, free: 0 / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.154e-05/1.025, allocations: 46.11 kB / 0.6117 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/1.025, allocations: 59.94 kB / 0.6118 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/1.026, allocations: 0.8684 MB / 0.6126 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/1.026, allocations: 7.938 kB / 0.6126 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.831e-05/1.027, allocations: 24 kB / 0.6126 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/1.027, allocations: 27.98 kB / 0.6127 GB, free: 14.92 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/1.028, allocations: 0.7117 MB / 0.6134 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003426/1.031, allocations: 5.126 MB / 0.6184 GB, free: 8.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000601/1.032, allocations: 329.1 kB / 0.6187 GB, free: 8.141 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002723/1.032, allocations: 225.6 kB / 0.6189 GB, free: 7.914 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001161/1.033, allocations: 1.54 MB / 0.6204 GB, free: 6.207 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/1.033, allocations: 34.5 kB / 0.6204 GB, free: 6.164 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.633e-06/1.033, allocations: 7.938 kB / 0.6204 GB, free: 6.156 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001392/1.035, allocations: 0.601 MB / 0.621 GB, free: 5.551 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/1.035, allocations: 81.11 kB / 0.6211 GB, free: 5.453 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/1.035, allocations: 186.7 kB / 0.6213 GB, free: 5.262 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/1.035, allocations: 29.7 kB / 0.6213 GB, free: 5.227 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/1.035, allocations: 299.2 kB / 0.6216 GB, free: 4.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/1.036, allocations: 237.2 kB / 0.6218 GB, free: 4.699 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/1.036, allocations: 97.95 kB / 0.6219 GB, free: 4.594 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.746e-05/1.036, allocations: 338.8 kB / 0.6222 GB, free: 4.254 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/1.036, allocations: 125.3 kB / 0.6224 GB, free: 4.133 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/1.036, allocations: 296.7 kB / 0.6226 GB, free: 3.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/1.037, allocations: 491.3 kB / 0.6231 GB, free: 3.215 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/1.037, allocations: 0 / 0.6231 GB, free: 3.215 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007082/1.038, allocations: 492.9 kB / 0.6236 GB, free: 2.727 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/1.038, allocations: 8 kB / 0.6236 GB, free: 2.719 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/1.038, allocations: 7.938 kB / 0.6236 GB, free: 2.711 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/1.038, allocations: 8 kB / 0.6236 GB, free: 2.703 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/1.038, allocations: 83.89 kB / 0.6237 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005388/1.039, allocations: 1.192 MB / 0.6249 GB, free: 1.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/1.039, allocations: 59.45 kB / 0.6249 GB, free: 1.324 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/1.039, allocations: 24 kB / 0.6249 GB, free: 1.301 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.0001979/1.039, allocations: 194.6 kB / 0.6251 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.749e-05/1.039, allocations: 27.81 kB / 0.6251 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.513e-05/1.039, allocations: 26.66 kB / 0.6252 GB, free: 1.051 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/1.039, allocations: 0 / 0.6252 GB, free: 1.051 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.039, allocations: 12.03 kB / 0.6252 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.039, allocations: 0 / 0.6252 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005309/1.04, allocations: 0.4928 MB / 0.6257 GB, free: 0.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/1.04, allocations: 0 / 0.6257 GB, free: 0.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/1.04, allocations: 47.84 kB / 0.6257 GB, free: 464 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/1.04, allocations: 4 kB / 0.6257 GB, free: 460 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/1.04, allocations: 8 kB / 0.6257 GB, free: 452 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004888/1.04, allocations: 1.168 MB / 0.6269 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.04, allocations: 0 / 0.6269 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/1.041, allocations: 0.5102 MB / 0.6274 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/1.041, allocations: 124.7 kB / 0.6275 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/1.041, allocations: 0 / 0.6275 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/1.041, allocations: 11.98 kB / 0.6275 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/1.041, allocations: 15.92 kB / 0.6275 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/1.041, allocations: 12 kB / 0.6275 GB, free: 14.52 MB / 478.1 MB Notification: Performance of sorting global known variables: time 8.002e-05/1.041, allocations: 120.2 kB / 0.6276 GB, free: 14.41 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.041, allocations: 0 / 0.6276 GB, free: 14.41 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006096/1.042, allocations: 199.4 kB / 0.6278 GB, free: 14.21 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.0004763/1.043, allocations: 302.5 kB / 0.6281 GB, free: 13.94 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008624/1.043, allocations: 0.6193 MB / 0.6287 GB, free: 13.29 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.043, allocations: 0 / 0.6287 GB, free: 13.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005478/1.044, allocations: 0.5193 MB / 0.6292 GB, free: 12.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/1.045, allocations: 194.5 kB / 0.6294 GB, free: 12.51 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/1.046, allocations: 1.065 MB / 0.6304 GB, free: 11.42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000467/1.047, allocations: 0.9465 MB / 0.6314 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003947/1.047, allocations: 215.8 kB / 0.6316 GB, free: 10.23 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.548e-05/1.047, allocations: 47.42 kB / 0.6316 GB, free: 10.19 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/1.047, allocations: 0 / 0.6316 GB, free: 10.19 MB / 478.1 MB Notification: Performance of Templates: time 0.01726/1.065, allocations: 11.34 MB / 0.6427 GB, free: 14.85 MB / 494.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe 2>&1)