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.001284/0.001284, allocations: 108 kB / 15.61 MB, free: 152 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.001071/0.001071, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.114/0.114, allocations: 2.766 MB / 293.1 MB, free: 3.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 354.4 MB, free: 4.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.08074, allocations: 50.24 MB / 404.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.1871/0.2678, allocations: 50.73 MB / 455.4 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01575/0.2836, allocations: 29.11 MB / 484.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004539/0.2841, allocations: 2.719 kB / 484.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.2855, allocations: 0.6092 MB / 485.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004867/0.2904, allocations: 2.247 MB / 487.3 MB, free: 13.85 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.006661/0.2971, allocations: 2.922 MB / 490.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009579/0.298, allocations: 0.9285 MB / 491.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2981, allocations: 57.12 kB / 491.2 MB, free: 11.59 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.5352/0.8333, allocations: 51.26 MB / 0.5298 GB, free: 8.082 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006488/0.834, allocations: 302.7 kB / 0.5301 GB, free: 7.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007534/0.8347, allocations: 40 kB / 0.5301 GB, free: 7.746 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1648/0.9996, allocations: 27.03 MB / 0.5565 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.9998, allocations: 107.5 kB / 0.5566 GB, free: 12.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007444/1.001, allocations: 338.4 kB / 0.5569 GB, free: 12.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00777/1.008, allocations: 1.839 MB / 0.5587 GB, free: 10.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/1.008, allocations: 4 kB / 0.5587 GB, free: 10.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.273e-06/1.008, allocations: 0 / 0.5587 GB, free: 10.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/1.008, allocations: 0 / 0.5587 GB, free: 10.25 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.001786/1.01, allocations: 1.104 MB / 0.5598 GB, free: 9.098 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/1.01, allocations: 8.031 kB / 0.5598 GB, free: 9.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002064/1.012, allocations: 0.4996 MB / 0.5603 GB, free: 8.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/1.013, allocations: 335.6 kB / 0.5606 GB, free: 8.223 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.676e-05/1.013, allocations: 46.06 kB / 0.5607 GB, free: 8.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/1.013, allocations: 59.94 kB / 0.5607 GB, free: 8.121 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/1.014, allocations: 0.8761 MB / 0.5616 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/1.014, allocations: 0 / 0.5616 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/1.014, allocations: 32 kB / 0.5616 GB, free: 7.168 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.994e-05/1.015, allocations: 35.97 kB / 0.5617 GB, free: 7.133 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/1.016, allocations: 0.7 MB / 0.5623 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00383/1.02, allocations: 5.159 MB / 0.5674 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/1.02, allocations: 333.7 kB / 0.5677 GB, free: 312 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002947/1.021, allocations: 225.5 kB / 0.5679 GB, free: 80 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001305/1.022, allocations: 1.539 MB / 0.5694 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/1.022, allocations: 42.5 kB / 0.5695 GB, free: 14.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 1.513e-06/1.022, allocations: 0 / 0.5695 GB, free: 14.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.004419/1.026, allocations: 0.5963 MB / 0.57 GB, free: 13.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/1.026, allocations: 85.11 kB / 0.5701 GB, free: 13.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/1.027, allocations: 186.7 kB / 0.5703 GB, free: 13.42 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/1.027, allocations: 25.7 kB / 0.5703 GB, free: 13.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/1.027, allocations: 283.5 kB / 0.5706 GB, free: 13.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/1.027, allocations: 240.4 kB / 0.5708 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/1.027, allocations: 97.92 kB / 0.5709 GB, free: 12.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/1.027, allocations: 346.8 kB / 0.5712 GB, free: 12.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/1.027, allocations: 113.3 kB / 0.5714 GB, free: 12.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/1.028, allocations: 307.9 kB / 0.5716 GB, free: 11.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005896/1.028, allocations: 488.5 kB / 0.5721 GB, free: 11.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/1.028, allocations: 0 / 0.5721 GB, free: 11.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007466/1.029, allocations: 492.8 kB / 0.5726 GB, free: 10.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/1.029, allocations: 8 kB / 0.5726 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/1.029, allocations: 7.938 kB / 0.5726 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/1.029, allocations: 8 kB / 0.5726 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/1.03, allocations: 83.89 kB / 0.5727 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005863/1.03, allocations: 1.18 MB / 0.5738 GB, free: 9.559 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/1.03, allocations: 67.27 kB / 0.5739 GB, free: 9.492 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/1.03, allocations: 16 kB / 0.5739 GB, free: 9.477 MB / 446.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.0002164/1.031, allocations: 188.2 kB / 0.5741 GB, free: 9.285 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-05/1.031, allocations: 27.62 kB / 0.5741 GB, free: 9.258 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.618e-05/1.031, allocations: 30.64 kB / 0.5742 GB, free: 9.227 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/1.031, allocations: 12.08 kB / 0.5742 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/1.031, allocations: 3.938 kB / 0.5742 GB, free: 9.211 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.031, allocations: 0 / 0.5742 GB, free: 9.211 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005594/1.031, allocations: 494.6 kB / 0.5746 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/1.031, allocations: 3.984 kB / 0.5746 GB, free: 8.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/1.032, allocations: 51.86 kB / 0.5747 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/1.032, allocations: 0 / 0.5747 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/1.032, allocations: 8 kB / 0.5747 GB, free: 8.617 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00053/1.032, allocations: 1.176 MB / 0.5758 GB, free: 7.395 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.032, allocations: 3.938 kB / 0.5759 GB, free: 7.391 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005962/1.033, allocations: 0.5137 MB / 0.5764 GB, free: 6.859 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.613e-05/1.033, allocations: 112.6 kB / 0.5765 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/1.033, allocations: 7.984 kB / 0.5765 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/1.033, allocations: 4 kB / 0.5765 GB, free: 6.719 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.518e-05/1.033, allocations: 19.92 kB / 0.5765 GB, free: 6.699 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/1.033, allocations: 8 kB / 0.5765 GB, free: 6.691 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.166e-05/1.033, allocations: 127.2 kB / 0.5766 GB, free: 6.566 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.033, allocations: 0 / 0.5766 GB, free: 6.566 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006123/1.034, allocations: 195.3 kB / 0.5768 GB, free: 6.375 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: 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.0004712/1.034, allocations: 297.6 kB / 0.5771 GB, free: 6.074 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009316/1.035, allocations: 0.631 MB / 0.5777 GB, free: 5.426 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/1.035, allocations: 0 / 0.5777 GB, free: 5.426 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005725/1.036, allocations: 0.5076 MB / 0.5782 GB, free: 4.848 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/1.037, allocations: 193 kB / 0.5784 GB, free: 4.656 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/1.039, allocations: 1.064 MB / 0.5794 GB, free: 3.559 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005306/1.039, allocations: 0.9504 MB / 0.5804 GB, free: 2.578 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004607/1.04, allocations: 215.8 kB / 0.5806 GB, free: 2.367 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/1.04, allocations: 43.44 kB / 0.5806 GB, free: 2.324 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/1.04, allocations: 4 kB / 0.5806 GB, free: 2.32 MB / 446.1 MB Notification: Performance of Templates: time 0.1499/1.19, allocations: 11.04 MB / 0.5914 GB, free: 141.5 MB / 446.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 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe 2>&1)