Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006295/0.006295, allocations: 102.7 kB / 15.73 MB, free: 6.039 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.001279/0.001279, allocations: 198.5 kB / 16.67 MB, free: 5.973 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1139/0.1139, allocations: 2.759 MB / 293.3 MB, free: 3.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 63.89 kB / 405.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2641, allocations: 50.23 MB / 456.1 MB, free: 21.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.0394/0.3036, allocations: 50.72 MB / 0.495 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02486/0.3285, allocations: 29.1 MB / 0.5234 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007421/0.3293, allocations: 4 kB / 0.5234 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001979/0.3313, allocations: 0.6175 MB / 0.524 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007784/0.3391, allocations: 2.242 MB / 0.5262 GB, free: 2.195 MB / 398.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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008903/0.348, allocations: 2.922 MB / 0.5291 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001321/0.3494, allocations: 0.9247 MB / 0.53 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3495, allocations: 69.72 kB / 0.53 GB, free: 14.25 MB / 414.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.554/0.9035, allocations: 51.71 MB / 0.5805 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007886/0.9043, allocations: 298.7 kB / 0.5808 GB, free: 11.14 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.9044, allocations: 40 kB / 0.5808 GB, free: 11.1 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4613/1.366, allocations: 27.24 MB / 0.6074 GB, free: 64.66 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/1.366, allocations: 108.5 kB / 0.6075 GB, free: 64.66 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006595/1.367, allocations: 337.2 kB / 0.6079 GB, free: 64.66 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007102/1.374, allocations: 1.85 MB / 0.6097 GB, free: 64.64 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/1.374, allocations: 7.156 kB / 0.6097 GB, free: 64.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.484e-06/1.374, allocations: 0 / 0.6097 GB, free: 64.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.351e-05/1.374, allocations: 4 kB / 0.6097 GB, free: 64.63 MB / 462.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.002131/1.376, allocations: 1.096 MB / 0.6108 GB, free: 64.04 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/1.376, allocations: 9.125 kB / 0.6108 GB, free: 64.04 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/1.378, allocations: 0.4977 MB / 0.6113 GB, free: 64.01 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003788/1.382, allocations: 343.8 kB / 0.6116 GB, free: 63.78 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.59e-05/1.382, allocations: 44.38 kB / 0.6116 GB, free: 63.78 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.953e-05/1.382, allocations: 54.55 kB / 0.6117 GB, free: 63.78 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/1.384, allocations: 0.878 MB / 0.6125 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/1.384, allocations: 0.8125 kB / 0.6125 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/1.384, allocations: 28.98 kB / 0.6126 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.762e-05/1.384, allocations: 29.77 kB / 0.6126 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/1.385, allocations: 0.7122 MB / 0.6133 GB, free: 63.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/1.389, allocations: 5.001 MB / 0.6182 GB, free: 59.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006835/1.389, allocations: 323.4 kB / 0.6185 GB, free: 59.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/1.39, allocations: 221.5 kB / 0.6187 GB, free: 59.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/1.391, allocations: 1.523 MB / 0.6202 GB, free: 58.24 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/1.391, allocations: 36.41 kB / 0.6202 GB, free: 58.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.124e-06/1.391, allocations: 0 / 0.6202 GB, free: 58.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001478/1.392, allocations: 0.5969 MB / 0.6208 GB, free: 58.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/1.393, allocations: 81.77 kB / 0.6209 GB, free: 58.04 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/1.393, allocations: 182 kB / 0.621 GB, free: 57.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/1.393, allocations: 30.3 kB / 0.6211 GB, free: 57.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/1.393, allocations: 287.2 kB / 0.6213 GB, free: 57.69 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/1.393, allocations: 231.7 kB / 0.6216 GB, free: 57.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/1.393, allocations: 90.48 kB / 0.6217 GB, free: 57.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.626e-05/1.393, allocations: 347.7 kB / 0.622 GB, free: 57.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/1.393, allocations: 117.8 kB / 0.6221 GB, free: 57.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/1.394, allocations: 307.1 kB / 0.6224 GB, free: 57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005182/1.394, allocations: 483 kB / 0.6229 GB, free: 56.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/1.394, allocations: 2.781 kB / 0.6229 GB, free: 56.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000734/1.395, allocations: 483.8 kB / 0.6233 GB, free: 56.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/1.395, allocations: 11.31 kB / 0.6233 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/1.395, allocations: 13.03 kB / 0.6233 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/1.395, allocations: 7.312 kB / 0.6233 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/1.395, allocations: 68.11 kB / 0.6234 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/1.395, allocations: 16.72 kB / 0.6234 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/1.396, allocations: 56.41 kB / 0.6235 GB, free: 56.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/1.396, allocations: 23.55 kB / 0.6235 GB, free: 56.66 MB / 462.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): 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.0001917/1.396, allocations: 190.9 kB / 0.6237 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.798e-05/1.396, allocations: 34.03 kB / 0.6237 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.021e-05/1.396, allocations: 31.48 kB / 0.6237 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/1.396, allocations: 3.156 kB / 0.6238 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.396, allocations: 0 / 0.6238 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/1.396, allocations: 1.031 kB / 0.6238 GB, free: 56.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005744/1.397, allocations: 498.6 kB / 0.6242 GB, free: 56.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/1.397, allocations: 4.281 kB / 0.6242 GB, free: 56.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/1.397, allocations: 26.73 kB / 0.6243 GB, free: 56.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/1.397, allocations: 4.016 kB / 0.6243 GB, free: 56.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/1.397, allocations: 13.97 kB / 0.6243 GB, free: 56.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/1.397, allocations: 5.125 kB / 0.6243 GB, free: 56.28 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/1.397, allocations: 1 kB / 0.6243 GB, free: 56.28 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005462/1.397, allocations: 0.5062 MB / 0.6248 GB, free: 56.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.93e-05/1.397, allocations: 113.1 kB / 0.6249 GB, free: 55.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/1.397, allocations: 6.625 kB / 0.6249 GB, free: 55.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/1.398, allocations: 12.34 kB / 0.6249 GB, free: 55.92 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.979e-05/1.398, allocations: 17.08 kB / 0.6249 GB, free: 55.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/1.398, allocations: 5.812 kB / 0.6249 GB, free: 55.92 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.509e-05/1.398, allocations: 122.3 kB / 0.625 GB, free: 55.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.398, allocations: 0.5625 kB / 0.625 GB, free: 55.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007525/1.399, allocations: 197.9 kB / 0.6252 GB, free: 55.81 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: 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): 13 * 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.0004906/1.399, allocations: 301 kB / 0.6255 GB, free: 55.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007376/1.4, allocations: 0.5957 MB / 0.6261 GB, free: 55.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/1.4, allocations: 4 kB / 0.6261 GB, free: 55.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003758/1.4, allocations: 0.4895 MB / 0.6266 GB, free: 55.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/1.401, allocations: 190.1 kB / 0.6268 GB, free: 55.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/1.403, allocations: 1.028 MB / 0.6278 GB, free: 54.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/1.403, allocations: 0.9467 MB / 0.6287 GB, free: 53.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004536/1.403, allocations: 266.7 kB / 0.6289 GB, free: 53.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.077e-05/1.404, allocations: 49.03 kB / 0.629 GB, free: 53.86 MB / 462.1 MB Notification: Performance of SimCode: time 2.4e-07/1.404, allocations: 0 / 0.629 GB, free: 53.86 MB / 462.1 MB Notification: Performance of Templates: time 0.01597/1.42, allocations: 11.08 MB / 0.6398 GB, free: 46.17 MB / 462.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1)