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.005676/0.005676, allocations: 97.58 kB / 15.73 MB, free: 6.055 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.001135/0.001135, allocations: 201.5 kB / 16.68 MB, free: 5.977 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1206/0.1206, allocations: 2.769 MB / 293.3 MB, free: 3.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001321, allocations: 59.91 kB / 405.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2423, allocations: 50.23 MB / 456.1 MB, free: 21.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.04518/0.2876, allocations: 50.72 MB / 0.495 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02548/0.3131, allocations: 29.1 MB / 0.5234 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.3142, allocations: 4 kB / 0.5234 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00201/0.3163, allocations: 0.6175 MB / 0.524 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007022/0.3233, allocations: 2.242 MB / 0.5262 GB, free: 2.203 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.008801/0.3321, allocations: 2.918 MB / 0.529 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001607/0.3338, allocations: 0.9285 MB / 0.53 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.3339, allocations: 65.73 kB / 0.53 GB, free: 14.26 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.3372/0.6712, allocations: 51.05 MB / 0.5799 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007784/0.672, allocations: 298.6 kB / 0.5802 GB, free: 11.81 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.6721, allocations: 40 kB / 0.5802 GB, free: 11.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4685/1.141, allocations: 26.92 MB / 0.6065 GB, free: 65.1 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000394/1.141, allocations: 113.2 kB / 0.6066 GB, free: 65.1 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/1.142, allocations: 334.1 kB / 0.6069 GB, free: 65.1 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01275/1.155, allocations: 1.871 MB / 0.6087 GB, free: 65 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.946e-06/1.155, allocations: 0 / 0.6087 GB, free: 65 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.915e-06/1.155, allocations: 0 / 0.6087 GB, free: 65 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/1.155, allocations: 1.125 kB / 0.6087 GB, free: 65 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.00314/1.158, allocations: 1.127 MB / 0.6098 GB, free: 64.34 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/1.158, allocations: 9.062 kB / 0.6099 GB, free: 64.34 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00348/1.162, allocations: 0.5008 MB / 0.6103 GB, free: 64.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004553/1.166, allocations: 338.5 kB / 0.6107 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-05/1.166, allocations: 42.66 kB / 0.6107 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/1.167, allocations: 56.88 kB / 0.6108 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/1.169, allocations: 0.8715 MB / 0.6116 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/1.169, allocations: 4.766 kB / 0.6116 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.772e-05/1.169, allocations: 25.5 kB / 0.6116 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.115e-05/1.169, allocations: 33.58 kB / 0.6117 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/1.171, allocations: 0.7016 MB / 0.6124 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004533/1.176, allocations: 4.959 MB / 0.6172 GB, free: 59.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/1.177, allocations: 344.5 kB / 0.6175 GB, free: 59.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/1.177, allocations: 226.4 kB / 0.6177 GB, free: 59.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001891/1.179, allocations: 1.552 MB / 0.6193 GB, free: 58.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/1.179, allocations: 36.8 kB / 0.6193 GB, free: 58.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.415e-06/1.179, allocations: 0.5312 kB / 0.6193 GB, free: 58.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.002481/1.182, allocations: 0.6282 MB / 0.6199 GB, free: 58.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/1.182, allocations: 86.81 kB / 0.62 GB, free: 58.33 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/1.182, allocations: 168.8 kB / 0.6202 GB, free: 58.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/1.182, allocations: 30.2 kB / 0.6202 GB, free: 58.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/1.182, allocations: 286.4 kB / 0.6205 GB, free: 57.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/1.183, allocations: 253.3 kB / 0.6207 GB, free: 57.81 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/1.183, allocations: 95.45 kB / 0.6208 GB, free: 57.79 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.463e-05/1.183, allocations: 347.2 kB / 0.6211 GB, free: 57.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/1.183, allocations: 120.8 kB / 0.6212 GB, free: 57.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004343/1.184, allocations: 288.8 kB / 0.6215 GB, free: 57.29 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008563/1.184, allocations: 478.6 kB / 0.622 GB, free: 57.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/1.184, allocations: 2.062 kB / 0.622 GB, free: 57.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001132/1.186, allocations: 476.9 kB / 0.6224 GB, free: 57.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/1.186, allocations: 11.12 kB / 0.6224 GB, free: 57.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/1.186, allocations: 9.781 kB / 0.6224 GB, free: 57.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.849e-05/1.186, allocations: 11.41 kB / 0.6225 GB, free: 57.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/1.186, allocations: 67.14 kB / 0.6225 GB, free: 57.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.913e-05/1.186, allocations: 17.59 kB / 0.6225 GB, free: 57.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/1.186, allocations: 58.55 kB / 0.6226 GB, free: 56.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.082e-05/1.187, allocations: 24.12 kB / 0.6226 GB, free: 56.97 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.0002856/1.187, allocations: 183.8 kB / 0.6228 GB, free: 56.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/1.187, allocations: 32.27 kB / 0.6228 GB, free: 56.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.169e-05/1.187, allocations: 39.25 kB / 0.6229 GB, free: 56.83 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/1.187, allocations: 4.328 kB / 0.6229 GB, free: 56.83 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.187, allocations: 1.375 kB / 0.6229 GB, free: 56.83 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/1.187, allocations: 3.984 kB / 0.6229 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007694/1.188, allocations: 0.4993 MB / 0.6234 GB, free: 56.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/1.188, allocations: 3.938 kB / 0.6234 GB, free: 56.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/1.188, allocations: 32.64 kB / 0.6234 GB, free: 56.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/1.188, allocations: 1.281 kB / 0.6234 GB, free: 56.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/1.188, allocations: 12.38 kB / 0.6234 GB, free: 56.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/1.188, allocations: 0.9375 kB / 0.6234 GB, free: 56.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/1.188, allocations: 4 kB / 0.6234 GB, free: 56.59 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008774/1.189, allocations: 0.528 MB / 0.6239 GB, free: 56.35 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.335e-05/1.189, allocations: 117.6 kB / 0.624 GB, free: 56.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/1.189, allocations: 5.781 kB / 0.624 GB, free: 56.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/1.19, allocations: 14.67 kB / 0.6241 GB, free: 56.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/1.19, allocations: 20.92 kB / 0.6241 GB, free: 56.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-05/1.19, allocations: 15.05 kB / 0.6241 GB, free: 56.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.288e-05/1.19, allocations: 117.4 kB / 0.6242 GB, free: 56.15 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/1.19, allocations: 0 / 0.6242 GB, free: 56.15 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001072/1.191, allocations: 189.8 kB / 0.6244 GB, free: 56.12 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.0006369/1.191, allocations: 302.5 kB / 0.6247 GB, free: 55.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/1.193, allocations: 0.6105 MB / 0.6253 GB, free: 55.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/1.193, allocations: 0.7812 kB / 0.6253 GB, free: 55.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005946/1.193, allocations: 0.5122 MB / 0.6258 GB, free: 55.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/1.195, allocations: 187.1 kB / 0.6259 GB, free: 55.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/1.197, allocations: 1.058 MB / 0.627 GB, free: 54.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/1.197, allocations: 0.9533 MB / 0.6279 GB, free: 54.18 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006505/1.198, allocations: 262 kB / 0.6282 GB, free: 54.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/1.198, allocations: 52.41 kB / 0.6282 GB, free: 54.14 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/1.198, allocations: 2.734 kB / 0.6282 GB, free: 54.14 MB / 462.1 MB Notification: Performance of Templates: time 0.02413/1.222, allocations: 11.52 MB / 0.6395 GB, free: 46.39 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)