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.001029/0.001029, allocations: 103.9 kB / 16.35 MB, free: 5.875 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.001111/0.001111, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01105/0.01105, allocations: 2.78 MB / 293.9 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.91 kB / 355.8 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1936, allocations: 50.23 MB / 406.1 MB, free: 32.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.03498/0.2286, allocations: 50.76 MB / 456.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02589/0.2545, allocations: 29.1 MB / 485.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009152/0.2555, allocations: 4 kB / 485.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.2575, allocations: 0.6097 MB / 486.5 MB, free: 60 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007118/0.2646, allocations: 2.246 MB / 488.8 MB, free: 13.79 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.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.009608/0.2742, allocations: 2.924 MB / 491.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.276, allocations: 0.9285 MB / 492.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.2761, allocations: 65.73 kB / 492.7 MB, free: 9.852 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.7109/0.987, allocations: 51.68 MB / 0.5316 GB, free: 24.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006011/0.9877, allocations: 302.9 kB / 0.5319 GB, free: 24.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.9878, allocations: 45.5 kB / 0.532 GB, free: 24.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1543/1.142, allocations: 27.25 MB / 0.5586 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/1.142, allocations: 110.8 kB / 0.5587 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004526/1.143, allocations: 342 kB / 0.559 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005579/1.148, allocations: 1.862 MB / 0.5608 GB, free: 4.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/1.148, allocations: 0 / 0.5608 GB, free: 4.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/1.148, allocations: 0 / 0.5608 GB, free: 4.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.518e-05/1.148, allocations: 4 kB / 0.5608 GB, free: 4.641 MB / 382.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.001318/1.15, allocations: 1.1 MB / 0.5619 GB, free: 3.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/1.15, allocations: 12.03 kB / 0.5619 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002177/1.152, allocations: 0.4993 MB / 0.5624 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002956/1.155, allocations: 338.2 kB / 0.5627 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/1.155, allocations: 53.25 kB / 0.5628 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/1.155, allocations: 51.75 kB / 0.5628 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/1.156, allocations: 0.8711 MB / 0.5637 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/1.156, allocations: 4 kB / 0.5637 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/1.156, allocations: 22.5 kB / 0.5637 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.511e-05/1.156, allocations: 30.61 kB / 0.5637 GB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/1.157, allocations: 0.7129 MB / 0.5644 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00332/1.161, allocations: 5.113 MB / 0.5694 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006361/1.161, allocations: 329.3 kB / 0.5697 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/1.162, allocations: 225.7 kB / 0.5699 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001278/1.163, allocations: 1.541 MB / 0.5715 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/1.163, allocations: 34.25 kB / 0.5715 GB, free: 10.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 1.943e-06/1.163, allocations: 4 kB / 0.5715 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.001485/1.165, allocations: 0.6067 MB / 0.5721 GB, free: 10.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/1.165, allocations: 81.11 kB / 0.5722 GB, free: 10.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/1.165, allocations: 182.6 kB / 0.5723 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/1.165, allocations: 27.95 kB / 0.5724 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/1.165, allocations: 287.4 kB / 0.5726 GB, free: 9.887 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/1.165, allocations: 237.8 kB / 0.5729 GB, free: 9.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/1.165, allocations: 95.22 kB / 0.573 GB, free: 9.609 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/1.165, allocations: 346.8 kB / 0.5733 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/1.166, allocations: 121.3 kB / 0.5734 GB, free: 9.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003102/1.166, allocations: 295.6 kB / 0.5737 GB, free: 8.914 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005724/1.166, allocations: 498.7 kB / 0.5742 GB, free: 8.512 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.167, allocations: 0 / 0.5742 GB, free: 8.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007465/1.167, allocations: 493.4 kB / 0.5746 GB, free: 8.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/1.167, allocations: 8 kB / 0.5746 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/1.167, allocations: 7.938 kB / 0.5746 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/1.167, allocations: 8 kB / 0.5746 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003377/1.168, allocations: 86.27 kB / 0.5747 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005957/1.168, allocations: 1.179 MB / 0.5759 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/1.169, allocations: 62.16 kB / 0.5759 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/1.169, allocations: 27.8 kB / 0.576 GB, free: 6.805 MB / 398.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.0002045/1.169, allocations: 191.5 kB / 0.5762 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.576e-05/1.169, allocations: 34.61 kB / 0.5762 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.011e-05/1.169, allocations: 25.97 kB / 0.5762 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/1.169, allocations: 0 / 0.5762 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.169, allocations: 12.03 kB / 0.5762 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/1.169, allocations: 0 / 0.5762 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000562/1.17, allocations: 487.1 kB / 0.5767 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/1.17, allocations: 0 / 0.5767 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/1.17, allocations: 43.72 kB / 0.5767 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/1.17, allocations: 4 kB / 0.5767 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/1.17, allocations: 11.88 kB / 0.5767 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005375/1.17, allocations: 1.167 MB / 0.5779 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/1.17, allocations: 0 / 0.5779 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005837/1.171, allocations: 0.5188 MB / 0.5784 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.161e-05/1.171, allocations: 120.5 kB / 0.5785 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/1.171, allocations: 3.688 kB / 0.5785 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/1.171, allocations: 7.984 kB / 0.5785 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/1.171, allocations: 15.61 kB / 0.5785 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/1.171, allocations: 8 kB / 0.5785 GB, free: 4.363 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.691e-05/1.171, allocations: 123.8 kB / 0.5787 GB, free: 4.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.202e-06/1.171, allocations: 0 / 0.5787 GB, free: 4.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006341/1.172, allocations: 197.3 kB / 0.5788 GB, free: 4.078 MB / 398.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.0004918/1.173, allocations: 299.7 kB / 0.5791 GB, free: 3.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008799/1.173, allocations: 0.6198 MB / 0.5797 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.173, allocations: 0 / 0.5797 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005692/1.174, allocations: 0.5195 MB / 0.5802 GB, free: 2.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/1.175, allocations: 183.8 kB / 0.5804 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/1.177, allocations: 1.046 MB / 0.5814 GB, free: 1.738 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/1.177, allocations: 0.9491 MB / 0.5824 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004212/1.178, allocations: 214.4 kB / 0.5826 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.925e-05/1.178, allocations: 43.44 kB / 0.5826 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/1.178, allocations: 0 / 0.5826 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of Templates: time 0.01917/1.197, allocations: 11.05 MB / 0.5934 GB, free: 5.57 MB / 414.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 -s cvode -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe 2>&1)