Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004947/0.004947, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001287/0.001287, allocations: 195.3 kB / 16.68 MB, free: 6.352 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.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1136/0.1136, allocations: 2.754 MB / 293.3 MB, free: 3.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.89 kB / 405.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2361, allocations: 50.23 MB / 456.2 MB, free: 21.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.03606/0.2722, allocations: 50.71 MB / 0.495 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.2947, allocations: 29.1 MB / 0.5234 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000535/0.2952, allocations: 8 kB / 0.5234 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.2969, allocations: 0.6019 MB / 0.524 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005236/0.3021, allocations: 2.246 MB / 0.5262 GB, free: 2.234 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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007618/0.3098, allocations: 2.93 MB / 0.529 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.311, allocations: 0.9171 MB / 0.5299 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.3111, allocations: 69.72 kB / 0.53 GB, free: 14.29 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.3126/0.6238, allocations: 51.04 MB / 0.5799 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005753/0.6244, allocations: 298.6 kB / 0.5801 GB, free: 11.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.6245, allocations: 40 kB / 0.5802 GB, free: 11.8 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3699/0.9944, allocations: 26.93 MB / 0.6065 GB, free: 65.19 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.9946, allocations: 111.6 kB / 0.6066 GB, free: 65.19 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005243/0.9952, allocations: 337.3 kB / 0.6069 GB, free: 65.19 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005806/1.001, allocations: 1.865 MB / 0.6087 GB, free: 65.1 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/1.001, allocations: 0.75 kB / 0.6087 GB, free: 65.1 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.212e-06/1.001, allocations: 0 / 0.6087 GB, free: 65.1 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.956e-05/1.001, allocations: 0 / 0.6087 GB, free: 65.1 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.001779/1.003, allocations: 1.131 MB / 0.6098 GB, free: 64.44 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/1.003, allocations: 10.62 kB / 0.6098 GB, free: 64.44 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002082/1.005, allocations: 0.4984 MB / 0.6103 GB, free: 64.4 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/1.007, allocations: 334.9 kB / 0.6106 GB, free: 64.18 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.36e-05/1.007, allocations: 49.59 kB / 0.6107 GB, free: 64.17 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.997e-05/1.007, allocations: 52.94 kB / 0.6107 GB, free: 64.17 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/1.008, allocations: 0.8751 MB / 0.6116 GB, free: 64.01 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/1.008, allocations: 0.9375 kB / 0.6116 GB, free: 64.01 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.954e-05/1.008, allocations: 25.73 kB / 0.6116 GB, free: 64.01 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.334e-05/1.009, allocations: 33.88 kB / 0.6117 GB, free: 64.01 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/1.01, allocations: 0.7062 MB / 0.6123 GB, free: 64 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002837/1.013, allocations: 4.957 MB / 0.6172 GB, free: 59.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000671/1.013, allocations: 338.1 kB / 0.6175 GB, free: 59.87 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/1.014, allocations: 231.8 kB / 0.6177 GB, free: 59.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/1.015, allocations: 1.546 MB / 0.6192 GB, free: 58.63 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/1.015, allocations: 38.3 kB / 0.6193 GB, free: 58.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 1.603e-06/1.015, allocations: 0 / 0.6193 GB, free: 58.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001581/1.016, allocations: 0.6278 MB / 0.6199 GB, free: 58.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/1.016, allocations: 83.89 kB / 0.62 GB, free: 58.42 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/1.016, allocations: 173 kB / 0.6201 GB, free: 58.32 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/1.017, allocations: 29.27 kB / 0.6202 GB, free: 58.29 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/1.017, allocations: 289.3 kB / 0.6204 GB, free: 58.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/1.017, allocations: 251.4 kB / 0.6207 GB, free: 57.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/1.017, allocations: 101.4 kB / 0.6208 GB, free: 57.88 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.815e-05/1.017, allocations: 337.6 kB / 0.6211 GB, free: 57.56 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/1.017, allocations: 128.6 kB / 0.6212 GB, free: 57.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/1.017, allocations: 280.5 kB / 0.6215 GB, free: 57.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005607/1.018, allocations: 482.2 kB / 0.6219 GB, free: 57.18 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/1.018, allocations: 1.125 kB / 0.6219 GB, free: 57.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007496/1.019, allocations: 478.9 kB / 0.6224 GB, free: 57.12 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/1.019, allocations: 12.47 kB / 0.6224 GB, free: 57.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.019, allocations: 9.031 kB / 0.6224 GB, free: 57.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/1.019, allocations: 6.469 kB / 0.6224 GB, free: 57.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/1.019, allocations: 70.34 kB / 0.6225 GB, free: 57.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/1.019, allocations: 10.58 kB / 0.6225 GB, free: 57.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/1.019, allocations: 59.92 kB / 0.6226 GB, free: 57.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/1.019, allocations: 20.3 kB / 0.6226 GB, free: 57.07 MB / 462.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.0001653/1.02, allocations: 195.5 kB / 0.6228 GB, free: 56.95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.327e-05/1.02, allocations: 32.47 kB / 0.6228 GB, free: 56.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.965e-05/1.02, allocations: 33.02 kB / 0.6228 GB, free: 56.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/1.02, allocations: 2.406 kB / 0.6228 GB, free: 56.93 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/1.02, allocations: 1.219 kB / 0.6228 GB, free: 56.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/1.02, allocations: 2.172 kB / 0.6228 GB, free: 56.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004999/1.02, allocations: 0.4998 MB / 0.6233 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.02, allocations: 0.9688 kB / 0.6233 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/1.02, allocations: 35.14 kB / 0.6234 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/1.02, allocations: 1.344 kB / 0.6234 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/1.02, allocations: 18.12 kB / 0.6234 GB, free: 56.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/1.02, allocations: 1.344 kB / 0.6234 GB, free: 56.69 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.02, allocations: 0 / 0.6234 GB, free: 56.69 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006275/1.021, allocations: 0.5286 MB / 0.6239 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/1.021, allocations: 118.4 kB / 0.624 GB, free: 56.33 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.203e-05/1.021, allocations: 11.12 kB / 0.624 GB, free: 56.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/1.021, allocations: 9.312 kB / 0.624 GB, free: 56.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.52e-05/1.021, allocations: 24.41 kB / 0.6241 GB, free: 56.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/1.022, allocations: 9.406 kB / 0.6241 GB, free: 56.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.318e-05/1.022, allocations: 117 kB / 0.6242 GB, free: 56.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.022, allocations: 0 / 0.6242 GB, free: 56.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006362/1.022, allocations: 189.8 kB / 0.6244 GB, free: 56.22 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: 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.00043/1.023, allocations: 306.8 kB / 0.6246 GB, free: 56.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007699/1.023, allocations: 0.6106 MB / 0.6252 GB, free: 55.85 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.023, allocations: 0 / 0.6252 GB, free: 55.85 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004187/1.024, allocations: 0.5091 MB / 0.6257 GB, free: 55.53 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/1.025, allocations: 193.8 kB / 0.6259 GB, free: 55.49 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/1.026, allocations: 1.06 MB / 0.627 GB, free: 54.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/1.027, allocations: 0.9499 MB / 0.6279 GB, free: 54.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004084/1.027, allocations: 258.6 kB / 0.6281 GB, free: 54.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.073e-05/1.027, allocations: 48.28 kB / 0.6282 GB, free: 54.24 MB / 462.1 MB Notification: Performance of SimCode: time 3.3e-07/1.027, allocations: 0 / 0.6282 GB, free: 54.24 MB / 462.1 MB Notification: Performance of Templates: time 0.01533/1.042, allocations: 11.52 MB / 0.6394 GB, free: 46.46 MB / 462.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)