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.005542/0.005541, allocations: 96.2 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.001317/0.001317, allocations: 197.6 kB / 16.68 MB, free: 5.969 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.239/1.239, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1047/0.1047, allocations: 2.765 MB / 293.3 MB, free: 3.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 55.91 kB / 405.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2178, allocations: 50.23 MB / 456.1 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.03623/0.2541, allocations: 50.72 MB / 0.495 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02355/0.2777, allocations: 29.1 MB / 0.5234 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005329/0.2782, allocations: 4 kB / 0.5234 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.2798, allocations: 0.6175 MB / 0.524 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005383/0.2853, allocations: 2.234 MB / 0.5262 GB, free: 2.207 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.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.007408/0.2927, allocations: 2.93 MB / 0.5291 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.2939, allocations: 0.9248 MB / 0.53 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.294, allocations: 57.73 kB / 0.53 GB, free: 14.27 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.3188/0.6128, allocations: 51.05 MB / 0.5799 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005757/0.6134, allocations: 298.6 kB / 0.5801 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.6135, allocations: 40 kB / 0.5802 GB, free: 11.78 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3432/0.9567, allocations: 26.93 MB / 0.6065 GB, free: 65.09 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008045/0.9575, allocations: 105.3 kB / 0.6066 GB, free: 65.09 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005935/0.9581, allocations: 339.7 kB / 0.6069 GB, free: 65.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006101/0.9642, allocations: 1.864 MB / 0.6087 GB, free: 65 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.9642, allocations: 3.938 kB / 0.6087 GB, free: 65 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.9642, allocations: 7.797 kB / 0.6087 GB, free: 65 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.312e-05/0.9642, allocations: 0 / 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.001945/0.9662, allocations: 1.123 MB / 0.6098 GB, free: 64.34 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.9662, allocations: 9.406 kB / 0.6098 GB, free: 64.34 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.9683, allocations: 0.4973 MB / 0.6103 GB, free: 64.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.9701, allocations: 336.6 kB / 0.6106 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.317e-05/0.9701, allocations: 49.44 kB / 0.6107 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-05/0.9702, allocations: 50.97 kB / 0.6107 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.9717, allocations: 0.8764 MB / 0.6116 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.9717, allocations: 1.312 kB / 0.6116 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.676e-05/0.9718, allocations: 23.84 kB / 0.6116 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.9718, allocations: 33.56 kB / 0.6117 GB, free: 63.91 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.9735, allocations: 0.7066 MB / 0.6123 GB, free: 63.9 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003028/0.9765, allocations: 5.007 MB / 0.6172 GB, free: 59.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.9771, allocations: 328.9 kB / 0.6175 GB, free: 59.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.9774, allocations: 220.4 kB / 0.6178 GB, free: 59.74 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/0.9785, allocations: 1.535 MB / 0.6193 GB, free: 58.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.9785, allocations: 40.14 kB / 0.6193 GB, free: 58.49 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.673e-06/0.9785, allocations: 0 / 0.6193 GB, free: 58.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001436/0.98, allocations: 0.5954 MB / 0.6199 GB, free: 58.42 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/0.98, allocations: 79.59 kB / 0.62 GB, free: 58.33 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.9802, allocations: 181.1 kB / 0.6201 GB, free: 58.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.9802, allocations: 29.92 kB / 0.6202 GB, free: 58.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.9803, allocations: 295.2 kB / 0.6204 GB, free: 57.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.9805, allocations: 247.5 kB / 0.6207 GB, free: 57.81 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.9806, allocations: 99.19 kB / 0.6208 GB, free: 57.78 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.087e-05/0.9807, allocations: 338.8 kB / 0.6211 GB, free: 57.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.9809, allocations: 119.3 kB / 0.6212 GB, free: 57.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.9812, allocations: 301.6 kB / 0.6215 GB, free: 57.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004798/0.9816, allocations: 487.4 kB / 0.622 GB, free: 57.04 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.9817, allocations: 2.375 kB / 0.622 GB, free: 57.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0006711/0.9823, allocations: 499.1 kB / 0.6224 GB, free: 56.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.9824, allocations: 7.156 kB / 0.6224 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.9824, allocations: 9.688 kB / 0.6224 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.9824, allocations: 7.656 kB / 0.6225 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.9826, allocations: 69.72 kB / 0.6225 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.9826, allocations: 13.28 kB / 0.6225 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.9829, allocations: 59.72 kB / 0.6226 GB, free: 56.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.9829, allocations: 19.34 kB / 0.6226 GB, free: 56.93 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.000165/0.9831, allocations: 195.5 kB / 0.6228 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.735e-05/0.9831, allocations: 27.47 kB / 0.6228 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.464e-05/0.9832, allocations: 33.7 kB / 0.6229 GB, free: 56.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.9832, allocations: 2.094 kB / 0.6229 GB, free: 56.78 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.9832, allocations: 1.125 kB / 0.6229 GB, free: 56.78 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.9832, allocations: 0.9375 kB / 0.6229 GB, free: 56.78 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.9838, allocations: 497.6 kB / 0.6233 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.9838, allocations: 0 / 0.6233 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.9839, allocations: 31.84 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.9839, allocations: 1.406 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.9839, allocations: 15.47 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.9839, allocations: 5.594 kB / 0.6234 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.9839, allocations: 1.062 kB / 0.6234 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005039/0.9844, allocations: 0.5048 MB / 0.6239 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.9845, allocations: 115 kB / 0.624 GB, free: 56.19 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.9845, allocations: 13.59 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.9847, allocations: 9.359 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.9847, allocations: 17.55 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.9848, allocations: 10.72 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.061e-05/0.9849, allocations: 120.7 kB / 0.6242 GB, free: 56.11 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9849, allocations: 0 / 0.6242 GB, free: 56.11 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006507/0.9855, allocations: 192.4 kB / 0.6243 GB, free: 56.07 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.0004712/0.986, allocations: 308.6 kB / 0.6246 GB, free: 55.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006743/0.9867, allocations: 0.5954 MB / 0.6252 GB, free: 55.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.9867, allocations: 0 / 0.6252 GB, free: 55.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.9871, allocations: 0.501 MB / 0.6257 GB, free: 55.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.9881, allocations: 192.7 kB / 0.6259 GB, free: 55.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.9894, allocations: 1.041 MB / 0.6269 GB, free: 54.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.9898, allocations: 0.945 MB / 0.6278 GB, free: 54.13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000392/0.9902, allocations: 258.3 kB / 0.6281 GB, free: 54.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.315e-05/0.9903, allocations: 46.97 kB / 0.6281 GB, free: 54.1 MB / 462.1 MB Notification: Performance of SimCode: time 2.61e-07/0.9903, allocations: 0 / 0.6281 GB, free: 54.1 MB / 462.1 MB Notification: Performance of Templates: time 0.01487/1.005, allocations: 11.04 MB / 0.6389 GB, free: 46.86 MB / 462.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)