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.008478/0.008478, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001538/0.001538, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.332/1.332, allocations: 222.9 MB / 240.3 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.01372/0.01372, allocations: 2.772 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 55.91 kB / 405.9 MB, free: 29.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08298/0.08413, allocations: 50.23 MB / 456.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.04732/0.1315, allocations: 50.75 MB / 0.495 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2816/0.4131, allocations: 29.09 MB / 0.5234 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005974/0.4138, allocations: 6.219 kB / 0.5234 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.4155, allocations: 0.6174 MB / 0.524 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008539/0.4241, allocations: 2.252 MB / 0.5262 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_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.009395/0.4335, allocations: 2.918 MB / 0.5291 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001443/0.435, allocations: 0.9317 MB / 0.53 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.4351, allocations: 65.27 kB / 0.5301 GB, free: 2 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.5364/0.9715, allocations: 51.71 MB / 0.5806 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008284/0.9724, allocations: 308 kB / 0.5809 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.9725, allocations: 40 kB / 0.5809 GB, free: 13.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1721/1.145, allocations: 27.25 MB / 0.6075 GB, free: 4.094 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000321/1.145, allocations: 110.5 kB / 0.6076 GB, free: 3.992 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009615/1.146, allocations: 343.6 kB / 0.6079 GB, free: 3.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/1.158, allocations: 1.861 MB / 0.6098 GB, free: 2.082 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/1.158, allocations: 0 / 0.6098 GB, free: 2.082 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.214e-06/1.158, allocations: 4 kB / 0.6098 GB, free: 2.078 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.346e-05/1.158, allocations: 0 / 0.6098 GB, free: 2.078 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.002772/1.161, allocations: 1.137 MB / 0.6109 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/1.161, allocations: 8.031 kB / 0.6109 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002369/1.163, allocations: 0.4961 MB / 0.6114 GB, free: 400 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005455/1.169, allocations: 339.5 kB / 0.6117 GB, free: 20 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/1.169, allocations: 51.92 kB / 0.6117 GB, free: 15.97 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/1.169, allocations: 55.94 kB / 0.6118 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/1.171, allocations: 0.8684 MB / 0.6126 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/1.171, allocations: 0 / 0.6126 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/1.171, allocations: 32 kB / 0.6127 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.273e-05/1.171, allocations: 35.97 kB / 0.6127 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/1.172, allocations: 0.7078 MB / 0.6134 GB, free: 14.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004967/1.177, allocations: 5.112 MB / 0.6184 GB, free: 8.512 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000761/1.178, allocations: 341.1 kB / 0.6187 GB, free: 8.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/1.178, allocations: 221.5 kB / 0.6189 GB, free: 7.938 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001874/1.18, allocations: 1.54 MB / 0.6204 GB, free: 6.227 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/1.18, allocations: 34.56 kB / 0.6205 GB, free: 6.184 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.761e-05/1.18, allocations: 7.938 kB / 0.6205 GB, free: 6.176 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001799/1.182, allocations: 0.5971 MB / 0.621 GB, free: 5.574 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.833e-05/1.182, allocations: 81.11 kB / 0.6211 GB, free: 5.477 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/1.183, allocations: 190.7 kB / 0.6213 GB, free: 5.281 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/1.183, allocations: 25.7 kB / 0.6213 GB, free: 5.25 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/1.183, allocations: 302.8 kB / 0.6216 GB, free: 4.949 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002171/1.183, allocations: 240.5 kB / 0.6218 GB, free: 4.719 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/1.183, allocations: 97.97 kB / 0.6219 GB, free: 4.613 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/1.183, allocations: 342.8 kB / 0.6223 GB, free: 4.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/1.184, allocations: 117.3 kB / 0.6224 GB, free: 4.156 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/1.184, allocations: 300.7 kB / 0.6227 GB, free: 3.789 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/1.185, allocations: 484.6 kB / 0.6231 GB, free: 3.238 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/1.185, allocations: 4 kB / 0.6231 GB, free: 3.234 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008582/1.186, allocations: 488.7 kB / 0.6236 GB, free: 2.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/1.186, allocations: 8 kB / 0.6236 GB, free: 2.742 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/1.186, allocations: 7.938 kB / 0.6236 GB, free: 2.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/1.186, allocations: 8 kB / 0.6236 GB, free: 2.727 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/1.186, allocations: 91.83 kB / 0.6237 GB, free: 2.637 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006871/1.187, allocations: 1.184 MB / 0.6249 GB, free: 1.406 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/1.187, allocations: 67.44 kB / 0.6249 GB, free: 1.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/1.187, allocations: 20 kB / 0.625 GB, free: 1.32 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.0002444/1.187, allocations: 194.5 kB / 0.6251 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.471e-05/1.187, allocations: 27.81 kB / 0.6252 GB, free: 1.094 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.752e-05/1.188, allocations: 26.73 kB / 0.6252 GB, free: 1.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/1.188, allocations: 8 kB / 0.6252 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/1.188, allocations: 3.938 kB / 0.6252 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/1.188, allocations: 0 / 0.6252 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006723/1.188, allocations: 0.4949 MB / 0.6257 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/1.188, allocations: 4 kB / 0.6257 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/1.188, allocations: 39.92 kB / 0.6257 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/1.188, allocations: 0 / 0.6257 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/1.189, allocations: 8 kB / 0.6257 GB, free: 480 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006366/1.189, allocations: 1.176 MB / 0.6269 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.189, allocations: 0 / 0.6269 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006669/1.19, allocations: 0.518 MB / 0.6274 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/1.19, allocations: 120.7 kB / 0.6275 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.17e-05/1.19, allocations: 0 / 0.6275 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/1.19, allocations: 8 kB / 0.6275 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/1.19, allocations: 19.98 kB / 0.6275 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/1.19, allocations: 4 kB / 0.6275 GB, free: 14.55 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001013/1.19, allocations: 124.2 kB / 0.6277 GB, free: 14.43 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.19, allocations: 0 / 0.6277 GB, free: 14.43 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002114/1.193, allocations: 203.4 kB / 0.6278 GB, free: 14.23 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.0005797/1.193, allocations: 303 kB / 0.6281 GB, free: 13.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/1.194, allocations: 0.6193 MB / 0.6287 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.194, allocations: 0 / 0.6287 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006545/1.195, allocations: 0.5193 MB / 0.6292 GB, free: 12.71 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/1.196, allocations: 176.6 kB / 0.6294 GB, free: 12.54 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/1.198, allocations: 1.072 MB / 0.6305 GB, free: 11.44 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006288/1.198, allocations: 0.9504 MB / 0.6314 GB, free: 10.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005088/1.199, allocations: 219.8 kB / 0.6316 GB, free: 10.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.275e-05/1.199, allocations: 43.44 kB / 0.6316 GB, free: 10.21 MB / 478.1 MB Notification: Performance of SimCode: time 2.5e-07/1.199, allocations: 0 / 0.6316 GB, free: 10.21 MB / 478.1 MB Notification: Performance of Templates: time 0.02153/1.221, allocations: 11.34 MB / 0.6427 GB, free: 14.88 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)