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.00112/0.00112, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.00148, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1084/0.1084, allocations: 2.763 MB / 293.1 MB, free: 3.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 63.91 kB / 354.4 MB, free: 4.406 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.0839, allocations: 50.23 MB / 404.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical): time 0.198/0.282, allocations: 50.7 MB / 455.3 MB, free: 21.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01928/0.3013, allocations: 29.1 MB / 484.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005575/0.3019, allocations: 3.25 kB / 484.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001517/0.3035, allocations: 0.6205 MB / 485 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005622/0.3091, allocations: 2.231 MB / 487.3 MB, free: 13.92 MB / 366.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.008174/0.3173, allocations: 2.928 MB / 490.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.3185, allocations: 0.9185 MB / 491.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.3187, allocations: 59.75 kB / 491.2 MB, free: 11.67 MB / 366.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.596/0.9147, allocations: 51.26 MB / 0.5297 GB, free: 8.152 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006934/0.9154, allocations: 294.7 kB / 0.53 GB, free: 7.863 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.9155, allocations: 40 kB / 0.53 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1587/1.074, allocations: 27.04 MB / 0.5565 GB, free: 12.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/1.074, allocations: 107.5 kB / 0.5566 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004859/1.075, allocations: 346.4 kB / 0.5569 GB, free: 12.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005344/1.08, allocations: 1.832 MB / 0.5587 GB, free: 10.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/1.08, allocations: 4 kB / 0.5587 GB, free: 10.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.152e-06/1.08, allocations: 4 kB / 0.5587 GB, free: 10.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/1.08, allocations: 0 / 0.5587 GB, free: 10.32 MB / 430.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.001309/1.082, allocations: 1.096 MB / 0.5598 GB, free: 9.172 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/1.082, allocations: 8.031 kB / 0.5598 GB, free: 9.164 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001801/1.083, allocations: 0.4919 MB / 0.5602 GB, free: 8.672 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/1.084, allocations: 347.4 kB / 0.5606 GB, free: 8.293 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/1.084, allocations: 46.06 kB / 0.5606 GB, free: 8.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.361e-05/1.084, allocations: 56 kB / 0.5607 GB, free: 8.195 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/1.085, allocations: 0.8723 MB / 0.5615 GB, free: 7.273 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/1.085, allocations: 7.938 kB / 0.5615 GB, free: 7.266 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.603e-05/1.085, allocations: 20 kB / 0.5616 GB, free: 7.246 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.838e-05/1.085, allocations: 31.98 kB / 0.5616 GB, free: 7.215 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/1.087, allocations: 0.7078 MB / 0.5623 GB, free: 6.504 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/1.09, allocations: 4.985 MB / 0.5671 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006812/1.091, allocations: 345.1 kB / 0.5675 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/1.091, allocations: 233.6 kB / 0.5677 GB, free: 340 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001269/1.092, allocations: 1.539 MB / 0.5692 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/1.092, allocations: 38.56 kB / 0.5692 GB, free: 14.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=74): time 1.833e-06/1.092, allocations: 0 / 0.5692 GB, free: 14.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=74): time 0.004611/1.097, allocations: 0.6232 MB / 0.5698 GB, free: 13.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/1.097, allocations: 88.98 kB / 0.5699 GB, free: 13.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/1.097, allocations: 171.5 kB / 0.5701 GB, free: 13.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/1.097, allocations: 33.7 kB / 0.5701 GB, free: 13.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/1.097, allocations: 271.7 kB / 0.5704 GB, free: 13.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/1.098, allocations: 240.4 kB / 0.5706 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/1.098, allocations: 97.91 kB / 0.5707 GB, free: 13.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/1.098, allocations: 342.8 kB / 0.571 GB, free: 12.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/1.098, allocations: 125.3 kB / 0.5712 GB, free: 12.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/1.098, allocations: 285.4 kB / 0.5714 GB, free: 12.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/1.099, allocations: 466.8 kB / 0.5719 GB, free: 11.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/1.099, allocations: 7.938 kB / 0.5719 GB, free: 11.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008202/1.1, allocations: 472 kB / 0.5723 GB, free: 11.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.1, allocations: 8 kB / 0.5723 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/1.1, allocations: 8.562 kB / 0.5723 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/1.1, allocations: 12 kB / 0.5724 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/1.1, allocations: 71.84 kB / 0.5724 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/1.1, allocations: 7.984 kB / 0.5724 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/1.101, allocations: 59.28 kB / 0.5725 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/1.101, allocations: 20 kB / 0.5725 GB, free: 11.02 MB / 446.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.0001964/1.101, allocations: 193.6 kB / 0.5727 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.383e-05/1.101, allocations: 28 kB / 0.5727 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.995e-05/1.101, allocations: 37.89 kB / 0.5728 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/1.101, allocations: 4 kB / 0.5728 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/1.101, allocations: 7.938 kB / 0.5728 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/1.101, allocations: 3.938 kB / 0.5728 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000556/1.101, allocations: 0.4983 MB / 0.5733 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/1.102, allocations: 4 kB / 0.5733 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/1.102, allocations: 31.98 kB / 0.5733 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/1.102, allocations: 0 / 0.5733 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/1.102, allocations: 15.92 kB / 0.5733 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/1.102, allocations: 0 / 0.5733 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.102, allocations: 0 / 0.5733 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006929/1.102, allocations: 0.5369 MB / 0.5738 GB, free: 9.586 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.851e-05/1.102, allocations: 108.6 kB / 0.5739 GB, free: 9.461 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/1.103, allocations: 11.92 kB / 0.5739 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/1.103, allocations: 12 kB / 0.574 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/1.103, allocations: 23.97 kB / 0.574 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/1.103, allocations: 7.984 kB / 0.574 GB, free: 9.406 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.093e-05/1.103, allocations: 120.1 kB / 0.5741 GB, free: 9.289 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.103, allocations: 0 / 0.5741 GB, free: 9.289 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006147/1.104, allocations: 199.4 kB / 0.5743 GB, free: 9.094 MB / 446.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.0004756/1.104, allocations: 301.3 kB / 0.5746 GB, free: 8.793 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008918/1.105, allocations: 0.6034 MB / 0.5752 GB, free: 8.172 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/1.105, allocations: 3.938 kB / 0.5752 GB, free: 8.168 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005008/1.105, allocations: 0.5162 MB / 0.5757 GB, free: 7.578 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/1.107, allocations: 196 kB / 0.5759 GB, free: 7.387 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/1.108, allocations: 1.06 MB / 0.5769 GB, free: 6.293 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/1.109, allocations: 0.9475 MB / 0.5778 GB, free: 5.316 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005284/1.109, allocations: 261.7 kB / 0.5781 GB, free: 5.062 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.276e-05/1.109, allocations: 47.44 kB / 0.5781 GB, free: 5.016 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/1.109, allocations: 0 / 0.5781 GB, free: 5.016 MB / 446.1 MB Notification: Performance of Templates: time 0.1556/1.265, allocations: 11.24 MB / 0.5891 GB, free: 142.1 MB / 446.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)