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.001708/0.001708, allocations: 110.9 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.001944/0.001944, allocations: 185.5 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.397/1.397, 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.01172/0.01172, allocations: 2.766 MB / 294 MB, free: 11.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.91 kB / 406.6 MB, free: 29.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08563, allocations: 50.24 MB / 456.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical): time 0.0456/0.1313, allocations: 50.71 MB / 0.4956 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2307/0.362, allocations: 29.09 MB / 0.5241 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005714/0.3626, allocations: 2.562 kB / 0.5241 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.3643, allocations: 0.6157 MB / 0.5247 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006879/0.3712, allocations: 2.25 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.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.007996/0.3792, allocations: 2.928 MB / 0.5297 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001249/0.3805, allocations: 0.9267 MB / 0.5306 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.3806, allocations: 60.12 kB / 0.5307 GB, free: 2.035 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.5642/0.9447, allocations: 51.7 MB / 0.5812 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008392/0.9456, allocations: 301 kB / 0.5815 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.9457, allocations: 44 kB / 0.5815 GB, free: 13.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1638/1.11, allocations: 27.26 MB / 0.6081 GB, free: 4.125 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002374/1.11, allocations: 109 kB / 0.6082 GB, free: 4.023 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006688/1.111, allocations: 339.8 kB / 0.6085 GB, free: 3.695 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008131/1.119, allocations: 1.853 MB / 0.6104 GB, free: 2.125 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/1.119, allocations: 0 / 0.6104 GB, free: 2.125 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.793e-06/1.119, allocations: 4 kB / 0.6104 GB, free: 2.121 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.592e-05/1.119, allocations: 4 kB / 0.6104 GB, free: 2.117 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.002068/1.121, allocations: 1.095 MB / 0.6114 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/1.121, allocations: 8.031 kB / 0.6114 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002123/1.123, allocations: 0.4919 MB / 0.6119 GB, free: 488 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004615/1.128, allocations: 343.4 kB / 0.6122 GB, free: 104 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.094e-05/1.128, allocations: 46.06 kB / 0.6123 GB, free: 60 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.577e-05/1.128, allocations: 56 kB / 0.6123 GB, free: 4 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/1.129, allocations: 0.8723 MB / 0.6132 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/1.129, allocations: 3.938 kB / 0.6132 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.68e-05/1.129, allocations: 24 kB / 0.6132 GB, free: 15.05 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.61e-05/1.129, allocations: 35.97 kB / 0.6133 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/1.131, allocations: 0.7039 MB / 0.6139 GB, free: 14.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004153/1.135, allocations: 4.948 MB / 0.6188 GB, free: 8.789 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008127/1.136, allocations: 341.2 kB / 0.6191 GB, free: 8.438 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/1.136, allocations: 237.5 kB / 0.6193 GB, free: 8.199 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001545/1.138, allocations: 1.529 MB / 0.6208 GB, free: 6.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/1.138, allocations: 38.56 kB / 0.6209 GB, free: 6.453 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.295e-06/1.138, allocations: 4 kB / 0.6209 GB, free: 6.449 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001748/1.14, allocations: 0.6198 MB / 0.6215 GB, free: 5.824 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/1.14, allocations: 88.98 kB / 0.6215 GB, free: 5.719 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/1.14, allocations: 179.5 kB / 0.6217 GB, free: 5.535 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/1.14, allocations: 29.7 kB / 0.6217 GB, free: 5.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/1.14, allocations: 279.5 kB / 0.622 GB, free: 5.223 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/1.14, allocations: 241.7 kB / 0.6222 GB, free: 4.988 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/1.14, allocations: 93.92 kB / 0.6223 GB, free: 4.887 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/1.141, allocations: 342.8 kB / 0.6227 GB, free: 4.543 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/1.141, allocations: 125.3 kB / 0.6228 GB, free: 4.422 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006127/1.141, allocations: 289.4 kB / 0.6231 GB, free: 4.074 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007154/1.142, allocations: 469.6 kB / 0.6235 GB, free: 3.547 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.142, allocations: 192 / 0.6235 GB, free: 3.547 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008954/1.143, allocations: 488.4 kB / 0.624 GB, free: 3.062 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/1.143, allocations: 8 kB / 0.624 GB, free: 3.055 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/1.143, allocations: 7.938 kB / 0.624 GB, free: 3.047 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/1.143, allocations: 8 kB / 0.624 GB, free: 3.039 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002744/1.143, allocations: 67.84 kB / 0.6241 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/1.143, allocations: 8 kB / 0.6241 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/1.144, allocations: 63.27 kB / 0.6241 GB, free: 2.902 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/1.144, allocations: 16 kB / 0.6241 GB, free: 2.887 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.0002429/1.144, allocations: 197.8 kB / 0.6243 GB, free: 2.684 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.21e-05/1.144, allocations: 27.62 kB / 0.6244 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.858e-05/1.144, allocations: 33.89 kB / 0.6244 GB, free: 2.629 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/1.144, allocations: 4 kB / 0.6244 GB, free: 2.625 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/1.144, allocations: 0 / 0.6244 GB, free: 2.625 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/1.144, allocations: 0 / 0.6244 GB, free: 2.625 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006741/1.145, allocations: 0.5002 MB / 0.6249 GB, free: 2.082 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/1.145, allocations: 0 / 0.6249 GB, free: 2.082 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/1.145, allocations: 31.98 kB / 0.6249 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/1.145, allocations: 4 kB / 0.6249 GB, free: 2.047 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/1.145, allocations: 7.938 kB / 0.6249 GB, free: 2.039 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.924e-06/1.145, allocations: 11.97 kB / 0.6249 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.145, allocations: 0 / 0.6249 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007643/1.146, allocations: 0.5266 MB / 0.6254 GB, free: 1.488 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/1.146, allocations: 116.5 kB / 0.6256 GB, free: 1.355 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/1.146, allocations: 7.938 kB / 0.6256 GB, free: 1.348 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/1.146, allocations: 11.98 kB / 0.6256 GB, free: 1.336 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.011e-05/1.146, allocations: 23.97 kB / 0.6256 GB, free: 1.312 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/1.146, allocations: 8 kB / 0.6256 GB, free: 1.305 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001/1.147, allocations: 115.2 kB / 0.6257 GB, free: 1.191 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/1.147, allocations: 0 / 0.6257 GB, free: 1.191 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007301/1.147, allocations: 199.4 kB / 0.6259 GB, free: 0.9961 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.000555/1.148, allocations: 306.4 kB / 0.6262 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009656/1.149, allocations: 0.615 MB / 0.6268 GB, free: 76 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/1.149, allocations: 3.938 kB / 0.6268 GB, free: 72 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005908/1.149, allocations: 0.5081 MB / 0.6273 GB, free: 15.49 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/1.15, allocations: 198.9 kB / 0.6275 GB, free: 15.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/1.152, allocations: 1.114 MB / 0.6286 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/1.153, allocations: 0.9436 MB / 0.6295 GB, free: 13.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/1.153, allocations: 47.44 kB / 0.6295 GB, free: 13.13 MB / 478.1 MB Notification: Performance of SimCode: time 3.8e-07/1.153, allocations: 0 / 0.6295 GB, free: 13.13 MB / 478.1 MB Notification: Performance of Templates: time 0.0144/1.167, allocations: 9.039 MB / 0.6384 GB, free: 4.102 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)