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.001245/0.001245, allocations: 104.3 kB / 16.27 MB, free: 6.418 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.001277/0.001277, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01152/0.01152, allocations: 2.775 MB / 293.8 MB, free: 12.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 63.91 kB / 355.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1913, allocations: 50.23 MB / 405.3 MB, free: 32.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.03507/0.2264, allocations: 50.71 MB / 456 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.024/0.2505, allocations: 29.1 MB / 485.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004267/0.2509, allocations: 0 / 485.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001505/0.2525, allocations: 0.6175 MB / 485.7 MB, free: 248 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00533/0.2579, allocations: 2.238 MB / 488 MB, free: 13.98 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.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.007246/0.2651, allocations: 2.921 MB / 490.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.2663, allocations: 0.9324 MB / 491.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2664, allocations: 57.75 kB / 491.9 MB, free: 10.05 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.5093/0.7757, allocations: 50.59 MB / 0.5298 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000709/0.7764, allocations: 303.4 kB / 0.5301 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.7766, allocations: 42.78 kB / 0.5301 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1524/0.929, allocations: 26.71 MB / 0.5562 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002236/0.9293, allocations: 120.7 kB / 0.5563 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004237/0.9297, allocations: 332.6 kB / 0.5566 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005319/0.935, allocations: 1.831 MB / 0.5584 GB, free: 6.273 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.935, allocations: 2.562 kB / 0.5584 GB, free: 6.273 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.935, allocations: 0 / 0.5584 GB, free: 6.273 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.9351, allocations: 0 / 0.5584 GB, free: 6.273 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.001182/0.9362, allocations: 1.112 MB / 0.5595 GB, free: 5.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.9363, allocations: 8.031 kB / 0.5595 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002209/0.9385, allocations: 0.4915 MB / 0.56 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.9388, allocations: 335.9 kB / 0.5603 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.524e-05/0.9389, allocations: 45.25 kB / 0.5603 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.372e-05/0.9389, allocations: 61.48 kB / 0.5604 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.9401, allocations: 0.8695 MB / 0.5612 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.9402, allocations: 0 / 0.5612 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.647e-05/0.9402, allocations: 25.19 kB / 0.5613 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.9403, allocations: 34.03 kB / 0.5613 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.9414, allocations: 0.7058 MB / 0.562 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003032/0.9444, allocations: 4.984 MB / 0.5669 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007315/0.9452, allocations: 348.7 kB / 0.5672 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003371/0.9455, allocations: 228.9 kB / 0.5674 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001409/0.9469, allocations: 1.54 MB / 0.5689 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.947, allocations: 37.47 kB / 0.5689 GB, free: 12.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.906e-06/0.947, allocations: 0 / 0.5689 GB, free: 12.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.00331/0.9503, allocations: 0.6148 MB / 0.5695 GB, free: 12.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.9504, allocations: 89.05 kB / 0.5696 GB, free: 12.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.9506, allocations: 179.6 kB / 0.5698 GB, free: 11.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.9506, allocations: 25.7 kB / 0.5698 GB, free: 11.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.9508, allocations: 280.3 kB / 0.5701 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.9509, allocations: 241.4 kB / 0.5703 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.9511, allocations: 90.86 kB / 0.5704 GB, free: 11.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9512, allocations: 340.9 kB / 0.5707 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002713/0.9515, allocations: 124.3 kB / 0.5709 GB, free: 10.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.9518, allocations: 292.7 kB / 0.5711 GB, free: 10.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009685/0.9528, allocations: 476.1 kB / 0.5716 GB, free: 10.3 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.9528, allocations: 0 / 0.5716 GB, free: 10.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008247/0.9537, allocations: 471.2 kB / 0.572 GB, free: 9.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.9537, allocations: 15.73 kB / 0.5721 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.9537, allocations: 7.938 kB / 0.5721 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.9537, allocations: 8.375 kB / 0.5721 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.954, allocations: 67.91 kB / 0.5721 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.954, allocations: 15 kB / 0.5721 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.9543, allocations: 58.89 kB / 0.5722 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.9544, allocations: 23.62 kB / 0.5722 GB, free: 9.816 MB / 398.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.0002254/0.9546, allocations: 191.5 kB / 0.5724 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.9547, allocations: 27.62 kB / 0.5724 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.101e-05/0.9548, allocations: 40.95 kB / 0.5725 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.9548, allocations: 4 kB / 0.5725 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.9548, allocations: 0 / 0.5725 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.9548, allocations: 4 kB / 0.5725 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005932/0.9554, allocations: 0.498 MB / 0.573 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.9554, allocations: 4 kB / 0.573 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.9556, allocations: 31.36 kB / 0.573 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.9556, allocations: 4 kB / 0.573 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.9556, allocations: 11.5 kB / 0.573 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.9556, allocations: 3.75 kB / 0.573 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.9556, allocations: 0 / 0.573 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007176/0.9563, allocations: 0.5319 MB / 0.5735 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.369e-05/0.9565, allocations: 112.4 kB / 0.5736 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.61e-05/0.9565, allocations: 3.938 kB / 0.5737 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.9567, allocations: 11.8 kB / 0.5737 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.553e-05/0.9568, allocations: 27.77 kB / 0.5737 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.9568, allocations: 12 kB / 0.5737 GB, free: 8.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.621e-05/0.9569, allocations: 122.9 kB / 0.5738 GB, free: 8.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9569, allocations: 0 / 0.5738 GB, free: 8.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006891/0.9576, allocations: 202.9 kB / 0.574 GB, free: 8.254 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: 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.0005334/0.9582, allocations: 284.1 kB / 0.5743 GB, free: 8.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009645/0.9591, allocations: 0.6133 MB / 0.5749 GB, free: 7.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.9592, allocations: 7.375 kB / 0.5749 GB, free: 7.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005336/0.9597, allocations: 0.5152 MB / 0.5754 GB, free: 7.094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.961, allocations: 197.4 kB / 0.5756 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.9626, allocations: 1.124 MB / 0.5767 GB, free: 5.852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005598/0.9632, allocations: 0.9475 MB / 0.5776 GB, free: 4.879 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.9633, allocations: 51.31 kB / 0.5777 GB, free: 4.832 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.9633, allocations: 3.938 kB / 0.5777 GB, free: 4.828 MB / 398.1 MB Notification: Performance of Templates: time 0.01371/0.977, allocations: 8.93 MB / 0.5864 GB, free: 12.12 MB / 414.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)