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.008167/0.008167, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001239/0.001239, allocations: 197.2 kB / 16.68 MB, free: 5.969 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.527/1.527, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01551/0.01551, allocations: 2.788 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 71.83 kB / 405.9 MB, free: 29.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1236, allocations: 50.24 MB / 456.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.05149/0.1751, allocations: 50.75 MB / 0.495 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3677/0.5429, allocations: 29.1 MB / 0.5234 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007137/0.5436, allocations: 3.156 kB / 0.5234 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001895/0.5456, allocations: 0.6118 MB / 0.524 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009824/0.5554, allocations: 2.257 MB / 0.5262 GB, free: 3.227 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.01409/0.5696, allocations: 2.919 MB / 0.5291 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001798/0.5714, allocations: 0.9337 MB / 0.53 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.5715, allocations: 63.05 kB / 0.5301 GB, free: 2.012 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.3378/0.9094, allocations: 51.05 MB / 0.5799 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009464/0.9103, allocations: 307.1 kB / 0.5802 GB, free: 13.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.9105, allocations: 40 kB / 0.5803 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2733/1.184, allocations: 26.94 MB / 0.6066 GB, free: 5.008 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004124/1.184, allocations: 115.6 kB / 0.6067 GB, free: 4.902 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/1.185, allocations: 329.8 kB / 0.607 GB, free: 4.582 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01531/1.201, allocations: 1.865 MB / 0.6088 GB, free: 3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/1.201, allocations: 0 / 0.6088 GB, free: 3 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.425e-06/1.201, allocations: 0 / 0.6088 GB, free: 3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.149e-05/1.201, allocations: 0 / 0.6088 GB, free: 3 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.002971/1.204, allocations: 1.099 MB / 0.6099 GB, free: 1.855 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.271e-05/1.204, allocations: 12.03 kB / 0.6099 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003811/1.208, allocations: 0.4919 MB / 0.6104 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00399/1.212, allocations: 343.4 kB / 0.6107 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/1.212, allocations: 50.06 kB / 0.6108 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/1.212, allocations: 52 kB / 0.6108 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002614/1.215, allocations: 0.8645 MB / 0.6116 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/1.215, allocations: 7.875 kB / 0.6117 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.521e-05/1.215, allocations: 28 kB / 0.6117 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.104e-05/1.215, allocations: 31.97 kB / 0.6117 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002455/1.217, allocations: 0.7078 MB / 0.6124 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005843/1.223, allocations: 5.121 MB / 0.6174 GB, free: 9.469 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/1.224, allocations: 337.1 kB / 0.6177 GB, free: 9.121 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/1.224, allocations: 217.5 kB / 0.6179 GB, free: 8.902 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001609/1.226, allocations: 1.541 MB / 0.6194 GB, free: 7.191 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/1.226, allocations: 34.5 kB / 0.6195 GB, free: 7.148 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.074e-06/1.226, allocations: 0 / 0.6195 GB, free: 7.148 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001637/1.228, allocations: 0.6047 MB / 0.6201 GB, free: 6.539 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/1.228, allocations: 77.11 kB / 0.6201 GB, free: 6.445 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/1.228, allocations: 186.7 kB / 0.6203 GB, free: 6.254 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/1.228, allocations: 25.7 kB / 0.6203 GB, free: 6.223 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/1.228, allocations: 290 kB / 0.6206 GB, free: 5.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/1.228, allocations: 226.1 kB / 0.6208 GB, free: 5.715 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/1.229, allocations: 93.92 kB / 0.6209 GB, free: 5.613 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/1.229, allocations: 342.8 kB / 0.6212 GB, free: 5.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002497/1.229, allocations: 125.3 kB / 0.6214 GB, free: 5.148 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003831/1.229, allocations: 300.6 kB / 0.6217 GB, free: 4.781 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006696/1.23, allocations: 488.6 kB / 0.6221 GB, free: 4.227 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/1.23, allocations: 4 kB / 0.6221 GB, free: 4.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000839/1.231, allocations: 492.6 kB / 0.6226 GB, free: 3.734 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/1.231, allocations: 4.281 kB / 0.6226 GB, free: 3.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/1.231, allocations: 15.94 kB / 0.6226 GB, free: 3.715 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/1.231, allocations: 11.94 kB / 0.6226 GB, free: 3.703 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/1.231, allocations: 79.89 kB / 0.6227 GB, free: 3.625 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006842/1.232, allocations: 1.184 MB / 0.6239 GB, free: 2.395 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/1.232, allocations: 59.27 kB / 0.6239 GB, free: 2.336 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/1.232, allocations: 20 kB / 0.6239 GB, free: 2.316 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.0002781/1.233, allocations: 190.6 kB / 0.6241 GB, free: 2.121 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.548e-05/1.233, allocations: 31.62 kB / 0.6241 GB, free: 2.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.11e-05/1.233, allocations: 30.64 kB / 0.6242 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/1.233, allocations: 0 / 0.6242 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.233, allocations: 3.938 kB / 0.6242 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/1.233, allocations: 8.062 kB / 0.6242 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/1.234, allocations: 0.4951 MB / 0.6247 GB, free: 1.512 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/1.234, allocations: 0 / 0.6247 GB, free: 1.512 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/1.234, allocations: 39.92 kB / 0.6247 GB, free: 1.473 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.086e-06/1.234, allocations: 4 kB / 0.6247 GB, free: 1.469 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/1.234, allocations: 4 kB / 0.6247 GB, free: 1.465 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006414/1.234, allocations: 1.172 MB / 0.6259 GB, free: 252 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.235, allocations: 4.031 kB / 0.6259 GB, free: 248 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007095/1.235, allocations: 0.5149 MB / 0.6264 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/1.235, allocations: 112.6 kB / 0.6265 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/1.235, allocations: 12.09 kB / 0.6265 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/1.236, allocations: 4 kB / 0.6265 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.197e-05/1.236, allocations: 15.98 kB / 0.6265 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/1.236, allocations: 7.984 kB / 0.6265 GB, free: 15.55 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001036/1.236, allocations: 124.2 kB / 0.6266 GB, free: 15.43 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.236, allocations: 4 kB / 0.6266 GB, free: 15.43 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007479/1.237, allocations: 195.3 kB / 0.6268 GB, free: 15.24 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.0005321/1.237, allocations: 294.4 kB / 0.6271 GB, free: 14.97 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/1.238, allocations: 0.6222 MB / 0.6277 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.238, allocations: 0 / 0.6277 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006478/1.239, allocations: 0.5119 MB / 0.6282 GB, free: 13.74 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/1.24, allocations: 196.6 kB / 0.6284 GB, free: 13.55 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/1.242, allocations: 1.051 MB / 0.6294 GB, free: 12.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006294/1.243, allocations: 0.9465 MB / 0.6303 GB, free: 11.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005195/1.243, allocations: 219.8 kB / 0.6306 GB, free: 11.28 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.085e-05/1.243, allocations: 43.44 kB / 0.6306 GB, free: 11.24 MB / 478.1 MB Notification: Performance of SimCode: time 5.11e-07/1.243, allocations: 0 / 0.6306 GB, free: 11.24 MB / 478.1 MB Notification: Performance of Templates: time 0.02227/1.265, allocations: 11.31 MB / 0.6416 GB, free: 15.94 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)