Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006924/0.006925, allocations: 98.42 kB / 15.73 MB, free: 5.602 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.001923/0.001923, allocations: 195.8 kB / 16.68 MB, free: 5.523 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.537/1.537, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01679/0.01679, allocations: 2.775 MB / 293.3 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.89 kB / 405.9 MB, free: 29.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1243, allocations: 50.23 MB / 456.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.05256/0.1769, allocations: 50.71 MB / 0.495 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3381/0.515, allocations: 29.09 MB / 0.5234 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006492/0.5157, allocations: 2.625 kB / 0.5234 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.5175, allocations: 0.6185 MB / 0.524 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007172/0.5247, allocations: 2.248 MB / 0.5262 GB, free: 3.227 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008806/0.5336, allocations: 2.921 MB / 0.5291 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.5351, allocations: 0.9286 MB / 0.53 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.5352, allocations: 61.41 kB / 0.53 GB, free: 2.008 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.3288/0.864, allocations: 51.04 MB / 0.5799 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009389/0.865, allocations: 306.5 kB / 0.5802 GB, free: 13.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.8651, allocations: 40 kB / 0.5802 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1659/1.031, allocations: 26.93 MB / 0.6065 GB, free: 5.035 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002438/1.031, allocations: 113.1 kB / 0.6066 GB, free: 4.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006475/1.032, allocations: 339.8 kB / 0.6069 GB, free: 4.605 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01224/1.044, allocations: 1.865 MB / 0.6088 GB, free: 3.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/1.044, allocations: 3.984 kB / 0.6088 GB, free: 3.016 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.853e-06/1.044, allocations: 0 / 0.6088 GB, free: 3.016 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/1.044, allocations: 0 / 0.6088 GB, free: 3.016 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.001771/1.046, allocations: 1.126 MB / 0.6099 GB, free: 1.844 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/1.046, allocations: 8.031 kB / 0.6099 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002012/1.048, allocations: 0.5 MB / 0.6104 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001893/1.05, allocations: 339.5 kB / 0.6107 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/1.05, allocations: 46.06 kB / 0.6107 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-05/1.05, allocations: 56 kB / 0.6108 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/1.052, allocations: 0.8762 MB / 0.6116 GB, free: 15.94 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/1.052, allocations: 0 / 0.6116 GB, free: 15.94 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.773e-05/1.053, allocations: 24 kB / 0.6117 GB, free: 15.92 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/1.053, allocations: 35.98 kB / 0.6117 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/1.054, allocations: 0.7039 MB / 0.6124 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004229/1.058, allocations: 5.006 MB / 0.6173 GB, free: 9.594 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006407/1.059, allocations: 325 kB / 0.6176 GB, free: 9.258 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/1.059, allocations: 221.6 kB / 0.6178 GB, free: 9.035 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001348/1.06, allocations: 1.532 MB / 0.6193 GB, free: 7.336 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/1.06, allocations: 38.5 kB / 0.6193 GB, free: 7.289 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 7.895e-06/1.06, allocations: 0 / 0.6193 GB, free: 7.289 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001472/1.062, allocations: 0.5932 MB / 0.6199 GB, free: 6.691 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.198e-05/1.062, allocations: 85.09 kB / 0.62 GB, free: 6.59 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/1.062, allocations: 170.8 kB / 0.6201 GB, free: 6.414 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/1.062, allocations: 37.69 kB / 0.6202 GB, free: 6.371 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/1.063, allocations: 290.4 kB / 0.6205 GB, free: 6.082 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/1.063, allocations: 252.2 kB / 0.6207 GB, free: 5.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/1.063, allocations: 97.95 kB / 0.6208 GB, free: 5.734 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/1.063, allocations: 338.8 kB / 0.6211 GB, free: 5.395 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/1.063, allocations: 117.3 kB / 0.6212 GB, free: 5.281 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/1.064, allocations: 300.7 kB / 0.6215 GB, free: 4.914 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006467/1.064, allocations: 492.7 kB / 0.622 GB, free: 4.355 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/1.064, allocations: 0 / 0.622 GB, free: 4.355 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001168/1.065, allocations: 488.5 kB / 0.6224 GB, free: 3.871 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/1.065, allocations: 4 kB / 0.6224 GB, free: 3.867 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/1.066, allocations: 11.94 kB / 0.6225 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/1.066, allocations: 8 kB / 0.6225 GB, free: 3.848 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/1.066, allocations: 67.89 kB / 0.6225 GB, free: 3.781 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/1.066, allocations: 11.94 kB / 0.6225 GB, free: 3.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/1.066, allocations: 59.92 kB / 0.6226 GB, free: 3.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/1.066, allocations: 31.98 kB / 0.6226 GB, free: 3.68 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.0002401/1.066, allocations: 198.5 kB / 0.6228 GB, free: 3.477 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.239e-05/1.066, allocations: 27.8 kB / 0.6228 GB, free: 3.449 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.416e-05/1.067, allocations: 34.59 kB / 0.6229 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/1.067, allocations: 0 / 0.6229 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.067, allocations: 4 kB / 0.6229 GB, free: 3.414 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/1.067, allocations: 3.984 kB / 0.6229 GB, free: 3.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005846/1.067, allocations: 499.4 kB / 0.6234 GB, free: 2.879 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.067, allocations: 0 / 0.6234 GB, free: 2.879 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/1.067, allocations: 27.98 kB / 0.6234 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/1.067, allocations: 0 / 0.6234 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/1.067, allocations: 11.94 kB / 0.6234 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/1.067, allocations: 192 / 0.6234 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.067, allocations: 4 kB / 0.6234 GB, free: 2.836 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/1.068, allocations: 0.5099 MB / 0.6239 GB, free: 2.312 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.781e-05/1.068, allocations: 116.7 kB / 0.624 GB, free: 2.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/1.068, allocations: 11.94 kB / 0.624 GB, free: 2.168 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/1.068, allocations: 4 kB / 0.624 GB, free: 2.164 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.624e-05/1.068, allocations: 19.97 kB / 0.624 GB, free: 2.145 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/1.068, allocations: 4 kB / 0.6241 GB, free: 2.141 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.419e-05/1.068, allocations: 120.2 kB / 0.6242 GB, free: 2.023 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.068, allocations: 0 / 0.6242 GB, free: 2.023 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007031/1.069, allocations: 195.5 kB / 0.6244 GB, free: 1.832 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.0005813/1.07, allocations: 310.7 kB / 0.6246 GB, free: 1.547 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008708/1.071, allocations: 0.5998 MB / 0.6252 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.071, allocations: 0 / 0.6252 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004548/1.071, allocations: 0.4919 MB / 0.6257 GB, free: 364 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/1.072, allocations: 200.6 kB / 0.6259 GB, free: 168 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/1.074, allocations: 1.042 MB / 0.6269 GB, free: 15.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006464/1.074, allocations: 0.9426 MB / 0.6278 GB, free: 14.13 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004905/1.075, allocations: 265.8 kB / 0.6281 GB, free: 13.87 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.855e-05/1.075, allocations: 47.44 kB / 0.6281 GB, free: 13.82 MB / 478.1 MB Notification: Performance of SimCode: time 5.41e-07/1.075, allocations: 0 / 0.6281 GB, free: 13.82 MB / 478.1 MB Notification: Performance of Templates: time 0.019/1.094, allocations: 11.04 MB / 0.6389 GB, free: 2.797 MB / 478.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)