Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical") translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004643/0.004643, allocations: 98.42 kB / 15.73 MB, free: 6.031 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.001142/0.001142, allocations: 195.8 kB / 16.67 MB, free: 5.953 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.222/1.222, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01083/0.01083, allocations: 2.777 MB / 293.3 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 63.91 kB / 405.9 MB, free: 29.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07339/0.07446, allocations: 50.23 MB / 456.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical): time 0.03985/0.1143, allocations: 50.72 MB / 0.495 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2076/0.322, allocations: 29.08 MB / 0.5234 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004464/0.3225, allocations: 10.5 kB / 0.5234 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.324, allocations: 0.6164 MB / 0.524 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005204/0.3292, allocations: 2.241 MB / 0.5262 GB, free: 3.211 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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.006968/0.3362, allocations: 2.926 MB / 0.529 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.3372, allocations: 0.9185 MB / 0.5299 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.82e-05/0.3373, allocations: 67.75 kB / 0.53 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.4938/0.8311, allocations: 51.69 MB / 0.5805 GB, free: 13.53 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006943/0.8318, allocations: 300.6 kB / 0.5808 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.832, allocations: 40 kB / 0.5808 GB, free: 13.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1547/0.9866, allocations: 27.25 MB / 0.6074 GB, free: 4.105 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.9868, allocations: 113 kB / 0.6075 GB, free: 4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005518/0.9874, allocations: 333.9 kB / 0.6079 GB, free: 3.676 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006487/0.9939, allocations: 1.869 MB / 0.6097 GB, free: 2.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.9939, allocations: 0 / 0.6097 GB, free: 2.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.9939, allocations: 0 / 0.6097 GB, free: 2.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.994, allocations: 3.984 kB / 0.6097 GB, free: 2.086 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.001628/0.9956, allocations: 1.123 MB / 0.6108 GB, free: 0.918 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.9956, allocations: 12.03 kB / 0.6108 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001934/0.9976, allocations: 0.4961 MB / 0.6113 GB, free: 420 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003576/1.001, allocations: 339.5 kB / 0.6116 GB, free: 40 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.95e-05/1.001, allocations: 50.05 kB / 0.6116 GB, free: 15.99 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.342e-05/1.001, allocations: 56 kB / 0.6117 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/1.003, allocations: 0.8761 MB / 0.6126 GB, free: 15.01 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/1.003, allocations: 4 kB / 0.6126 GB, free: 15.01 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/1.003, allocations: 24 kB / 0.6126 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.255e-05/1.003, allocations: 27.98 kB / 0.6126 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/1.004, allocations: 0.7039 MB / 0.6133 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003395/1.007, allocations: 4.951 MB / 0.6181 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000675/1.008, allocations: 349.1 kB / 0.6185 GB, free: 8.363 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000322/1.008, allocations: 225.6 kB / 0.6187 GB, free: 8.137 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001195/1.01, allocations: 1.548 MB / 0.6202 GB, free: 6.418 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/1.01, allocations: 34.56 kB / 0.6202 GB, free: 6.375 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 1.583e-06/1.01, allocations: 3.938 kB / 0.6202 GB, free: 6.371 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001559/1.011, allocations: 0.6278 MB / 0.6208 GB, free: 5.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/1.011, allocations: 85.05 kB / 0.6209 GB, free: 5.637 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/1.012, allocations: 163.7 kB / 0.6211 GB, free: 5.469 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/1.012, allocations: 33.89 kB / 0.6211 GB, free: 5.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/1.012, allocations: 295.1 kB / 0.6214 GB, free: 5.137 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/1.012, allocations: 249.2 kB / 0.6216 GB, free: 4.895 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/1.012, allocations: 97.95 kB / 0.6217 GB, free: 4.789 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/1.012, allocations: 338.8 kB / 0.622 GB, free: 4.449 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/1.012, allocations: 129.3 kB / 0.6222 GB, free: 4.324 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000325/1.013, allocations: 285.4 kB / 0.6224 GB, free: 3.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/1.013, allocations: 477.5 kB / 0.6229 GB, free: 3.445 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/1.013, allocations: 0 / 0.6229 GB, free: 3.445 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007826/1.014, allocations: 480.1 kB / 0.6234 GB, free: 2.969 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/1.014, allocations: 8 kB / 0.6234 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/1.014, allocations: 7.938 kB / 0.6234 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/1.014, allocations: 8.625 kB / 0.6234 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/1.014, allocations: 71.84 kB / 0.6234 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/1.014, allocations: 11.98 kB / 0.6235 GB, free: 2.863 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/1.015, allocations: 59.56 kB / 0.6235 GB, free: 2.805 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/1.015, allocations: 16 kB / 0.6235 GB, free: 2.789 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.0004832/1.015, allocations: 193.7 kB / 0.6237 GB, free: 2.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.508e-05/1.015, allocations: 31.77 kB / 0.6237 GB, free: 2.559 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.378e-05/1.015, allocations: 29.91 kB / 0.6238 GB, free: 2.535 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/1.015, allocations: 4 kB / 0.6238 GB, free: 2.531 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/1.015, allocations: 4 kB / 0.6238 GB, free: 2.527 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/1.015, allocations: 3.938 kB / 0.6238 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005379/1.016, allocations: 0.5021 MB / 0.6243 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.016, allocations: 0 / 0.6243 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/1.016, allocations: 31.98 kB / 0.6243 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/1.016, allocations: 3.938 kB / 0.6243 GB, free: 1.945 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/1.016, allocations: 11.92 kB / 0.6243 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.145e-06/1.016, allocations: 0 / 0.6243 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.016, allocations: 4 kB / 0.6243 GB, free: 1.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006666/1.017, allocations: 0.5257 MB / 0.6248 GB, free: 1.391 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.778e-05/1.017, allocations: 116.7 kB / 0.6249 GB, free: 1.258 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/1.017, allocations: 7.922 kB / 0.625 GB, free: 1.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/1.017, allocations: 8 kB / 0.625 GB, free: 1.242 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/1.017, allocations: 31.91 kB / 0.625 GB, free: 1.211 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/1.017, allocations: 15.98 kB / 0.625 GB, free: 1.195 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.024e-05/1.017, allocations: 107.3 kB / 0.6251 GB, free: 1.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.017, allocations: 0 / 0.6251 GB, free: 1.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006039/1.018, allocations: 199.5 kB / 0.6253 GB, free: 0.8945 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.0004842/1.018, allocations: 318.8 kB / 0.6256 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000921/1.019, allocations: 0.6109 MB / 0.6262 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/1.019, allocations: 0 / 0.6262 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005153/1.02, allocations: 0.5161 MB / 0.6267 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/1.021, allocations: 187.2 kB / 0.6269 GB, free: 15.19 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/1.022, allocations: 1.06 MB / 0.6279 GB, free: 14.11 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005619/1.023, allocations: 0.9475 MB / 0.6288 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004875/1.023, allocations: 261.8 kB / 0.6291 GB, free: 12.87 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.631e-05/1.024, allocations: 47.44 kB / 0.6291 GB, free: 12.82 MB / 478.1 MB Notification: Performance of SimCode: time 3.31e-07/1.024, allocations: 0 / 0.6291 GB, free: 12.82 MB / 478.1 MB Notification: Performance of Templates: time 0.01918/1.043, allocations: 11.53 MB / 0.6404 GB, free: 1.301 MB / 478.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe 2>&1)