Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 113.7 kB / 16.41 MB, free: 6.496 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.001359/0.001359, allocations: 187 kB / 17.34 MB, free: 5.762 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.0126/0.0126, allocations: 2.788 MB / 294 MB, free: 11.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 63.89 kB / 406.6 MB, free: 29.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0908/0.09196, allocations: 50.24 MB / 456.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.04696/0.139, allocations: 50.71 MB / 0.4957 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2527/0.3917, allocations: 29.09 MB / 0.5241 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006211/0.3923, allocations: 2.5 kB / 0.5241 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.3942, allocations: 0.6149 MB / 0.5247 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007134/0.4014, allocations: 2.254 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_Tabular.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008504/0.4099, allocations: 2.92 MB / 0.5297 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001291/0.4112, allocations: 0.9237 MB / 0.5306 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.4113, allocations: 59.89 kB / 0.5307 GB, free: 2.039 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.587/0.9984, allocations: 51.71 MB / 0.5812 GB, free: 13.61 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008198/0.9992, allocations: 296.7 kB / 0.5815 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.9993, allocations: 40 kB / 0.5815 GB, free: 13.35 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.166/1.165, allocations: 27.26 MB / 0.6081 GB, free: 4.137 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003025/1.166, allocations: 113.4 kB / 0.6082 GB, free: 4.031 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008743/1.167, allocations: 340.8 kB / 0.6085 GB, free: 3.703 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/1.177, allocations: 1.852 MB / 0.6104 GB, free: 2.133 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/1.177, allocations: 0 / 0.6104 GB, free: 2.133 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.304e-06/1.177, allocations: 0 / 0.6104 GB, free: 2.133 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.214e-05/1.177, allocations: 0 / 0.6104 GB, free: 2.133 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.002358/1.179, allocations: 1.099 MB / 0.6114 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/1.179, allocations: 12.03 kB / 0.6114 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002227/1.182, allocations: 0.4918 MB / 0.6119 GB, free: 496 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004863/1.186, allocations: 345.9 kB / 0.6123 GB, free: 112 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.561e-05/1.186, allocations: 46.06 kB / 0.6123 GB, free: 68 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.389e-05/1.187, allocations: 56 kB / 0.6123 GB, free: 12 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/1.188, allocations: 0.88 MB / 0.6132 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/1.188, allocations: 0 / 0.6132 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/1.188, allocations: 24 kB / 0.6132 GB, free: 15.06 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.661e-05/1.188, allocations: 31.98 kB / 0.6133 GB, free: 15.03 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/1.19, allocations: 0.7039 MB / 0.6139 GB, free: 14.33 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004696/1.195, allocations: 5.009 MB / 0.6188 GB, free: 8.734 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007715/1.195, allocations: 325.1 kB / 0.6191 GB, free: 8.398 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/1.196, allocations: 217.6 kB / 0.6194 GB, free: 8.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001552/1.197, allocations: 1.528 MB / 0.6208 GB, free: 6.484 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/1.197, allocations: 38.48 kB / 0.6209 GB, free: 6.438 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.335e-06/1.197, allocations: 0 / 0.6209 GB, free: 6.438 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001619/1.199, allocations: 0.593 MB / 0.6215 GB, free: 5.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/1.199, allocations: 85.11 kB / 0.6215 GB, free: 5.738 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/1.199, allocations: 182.7 kB / 0.6217 GB, free: 5.551 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/1.199, allocations: 29.7 kB / 0.6217 GB, free: 5.516 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/1.2, allocations: 282.2 kB / 0.622 GB, free: 5.234 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/1.2, allocations: 230.7 kB / 0.6222 GB, free: 5.012 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/1.2, allocations: 94 kB / 0.6223 GB, free: 4.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/1.2, allocations: 342.8 kB / 0.6227 GB, free: 4.566 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/1.2, allocations: 121.3 kB / 0.6228 GB, free: 4.449 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/1.201, allocations: 304.6 kB / 0.6231 GB, free: 4.078 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007015/1.201, allocations: 480.7 kB / 0.6235 GB, free: 3.531 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.82e-06/1.201, allocations: 0 / 0.6235 GB, free: 3.531 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008529/1.202, allocations: 488.7 kB / 0.624 GB, free: 3.047 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/1.202, allocations: 11.98 kB / 0.624 GB, free: 3.035 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/1.202, allocations: 11.97 kB / 0.624 GB, free: 3.023 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.715e-05/1.202, allocations: 8 kB / 0.624 GB, free: 3.016 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003174/1.203, allocations: 63.91 kB / 0.6241 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/1.203, allocations: 11.94 kB / 0.6241 GB, free: 2.941 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/1.203, allocations: 67.27 kB / 0.6242 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/1.203, allocations: 16 kB / 0.6242 GB, free: 2.859 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): 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.0002591/1.203, allocations: 194.5 kB / 0.6244 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.19e-05/1.203, allocations: 27.62 kB / 0.6244 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.597e-05/1.203, allocations: 38.58 kB / 0.6244 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/1.203, allocations: 192 / 0.6244 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/1.204, allocations: 7.984 kB / 0.6244 GB, free: 2.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/1.204, allocations: 3.938 kB / 0.6244 GB, free: 2.586 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006969/1.204, allocations: 495.9 kB / 0.6249 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/1.204, allocations: 0 / 0.6249 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/1.204, allocations: 27.98 kB / 0.6249 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/1.204, allocations: 0 / 0.6249 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/1.204, allocations: 11.94 kB / 0.6249 GB, free: 2.016 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/1.204, allocations: 4 kB / 0.6249 GB, free: 2.012 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/1.204, allocations: 3.938 kB / 0.6249 GB, free: 2.008 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006596/1.205, allocations: 0.5137 MB / 0.6254 GB, free: 1.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/1.205, allocations: 108.6 kB / 0.6256 GB, free: 1.355 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/1.205, allocations: 11.94 kB / 0.6256 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/1.205, allocations: 7.984 kB / 0.6256 GB, free: 1.336 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/1.206, allocations: 19.98 kB / 0.6256 GB, free: 1.316 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/1.206, allocations: 4 kB / 0.6256 GB, free: 1.312 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.995e-05/1.206, allocations: 120.2 kB / 0.6257 GB, free: 1.195 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.206, allocations: 0 / 0.6257 GB, free: 1.195 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007472/1.206, allocations: 199.3 kB / 0.6259 GB, free: 1 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: 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): 13 * 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.0005641/1.207, allocations: 289.3 kB / 0.6262 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008792/1.208, allocations: 0.6029 MB / 0.6268 GB, free: 112 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.208, allocations: 0.875 kB / 0.6268 GB, free: 112 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005299/1.208, allocations: 0.4921 MB / 0.6272 GB, free: 15.54 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/1.21, allocations: 197 kB / 0.6274 GB, free: 15.35 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/1.211, allocations: 1.099 MB / 0.6285 GB, free: 14.22 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/1.213, allocations: 0.9503 MB / 0.6294 GB, free: 13.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/1.213, allocations: 47.44 kB / 0.6295 GB, free: 13.2 MB / 478.1 MB Notification: Performance of SimCode: time 6.11e-07/1.213, allocations: 0 / 0.6295 GB, free: 13.2 MB / 478.1 MB Notification: Performance of Templates: time 0.01451/1.227, allocations: 8.801 MB / 0.6381 GB, free: 4.426 MB / 478.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1)