Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary") translateModel(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005767/0.005766, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.00112/0.00112, allocations: 188.6 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04511/0.04511, allocations: 9.096 MB / 279 MB, free: 2.941 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 71.31 kB / 387.5 MB, free: 47.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07535/0.07677, allocations: 48.17 MB / 435.7 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.01838/0.09519, allocations: 19.79 MB / 455.5 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.1117, allocations: 17.14 MB / 472.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004008/0.1122, allocations: 0 / 472.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001321/0.1135, allocations: 0.568 MB / 473.2 MB, free: 1.91 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.01221/0.1258, allocations: 5.295 MB / 478.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002517/0.1283, allocations: 1.01 MB / 479.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008583/0.1292, allocations: 0.7941 MB / 480.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.059e-05/0.1293, allocations: 37.78 kB / 480.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004074/0.1297, allocations: 338.7 kB / 480.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/0.1301, allocations: 306.6 kB / 480.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.1301, allocations: 28 kB / 481 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01667/0.1468, allocations: 9.42 MB / 490.4 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.147, allocations: 95.47 kB / 490.5 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005054/0.1475, allocations: 282.5 kB / 490.7 MB, free: 288 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009017/0.1565, allocations: 4.107 MB / 494.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1566, allocations: 0 / 494.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1566, allocations: 4 kB / 494.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1566, allocations: 0 / 494.9 MB, free: 12.16 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: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.002452/0.159, allocations: 1.204 MB / 496.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.1591, allocations: 8.031 kB / 496.1 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004732/0.1596, allocations: 99.12 kB / 496.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.1597, allocations: 218.4 kB / 496.4 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/0.1598, allocations: 20.56 kB / 496.4 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.1598, allocations: 31.88 kB / 496.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.1613, allocations: 1.259 MB / 497.7 MB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1613, allocations: 0 / 497.7 MB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.1614, allocations: 23.92 kB / 497.7 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.1614, allocations: 19.97 kB / 497.7 MB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002444/0.1639, allocations: 2.315 MB / 0.4883 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.1662, allocations: 2.159 MB / 0.4904 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.1676, allocations: 1.346 MB / 0.4917 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.1688, allocations: 1.274 MB / 0.493 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02079/0.1896, allocations: 11.22 MB / 0.504 GB, free: 5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.1897, allocations: 39.12 kB / 0.504 GB, free: 4.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 2.464e-06/0.1897, allocations: 0 / 0.504 GB, free: 4.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.004157/0.1938, allocations: 3.596 MB / 0.5075 GB, free: 1.352 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.1939, allocations: 63.97 kB / 0.5076 GB, free: 1.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.107e-05/0.194, allocations: 109.8 kB / 0.5077 GB, free: 1.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.225e-05/0.194, allocations: 37.7 kB / 0.5077 GB, free: 1.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.1941, allocations: 94.97 kB / 0.5078 GB, free: 1.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003663/0.1945, allocations: 0.5655 MB / 0.5083 GB, free: 456 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000253/0.1947, allocations: 154.2 kB / 0.5085 GB, free: 296 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1949, allocations: 313.9 kB / 0.5088 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.196, allocations: 1.025 MB / 0.5098 GB, free: 14.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.1971, allocations: 1.031 MB / 0.5108 GB, free: 13.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.1996, allocations: 2.233 MB / 0.513 GB, free: 11.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.1996, allocations: 0 / 0.513 GB, free: 11.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002822/0.2024, allocations: 2.328 MB / 0.5153 GB, free: 9.352 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2024, allocations: 12 kB / 0.5153 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.2025, allocations: 0 / 0.5153 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.2025, allocations: 3.984 kB / 0.5153 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005699/0.2031, allocations: 119.8 kB / 0.5154 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.2031, allocations: 4 kB / 0.5154 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/0.2034, allocations: 82.89 kB / 0.5155 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/0.2035, allocations: 27.92 kB / 0.5155 GB, free: 9.105 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sat_pminus.vap.phase,sat_pminus.liq.phase,sat_pplus.vap.phase,sat_pplus.liq.phase,sat_Tminus.vap.phase,sat_Tminus.liq.phase,sat_Tplus.vap.phase,sat_Tplus.liq.phase,sat.vap.phase,sat.liq.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0002247/0.2037, allocations: 180.7 kB / 0.5157 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.2039, allocations: 51.25 kB / 0.5157 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003077/0.207, allocations: 2.632 MB / 0.5183 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.382e-05/0.207, allocations: 31.94 kB / 0.5183 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.2071, allocations: 0 / 0.5183 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2071, allocations: 7.984 kB / 0.5183 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.2083, allocations: 1.163 MB / 0.5195 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.2084, allocations: 0 / 0.5195 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006185/0.209, allocations: 135.8 kB / 0.5196 GB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.209, allocations: 4 kB / 0.5196 GB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.818e-05/0.2091, allocations: 27.92 kB / 0.5196 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.2091, allocations: 4 kB / 0.5196 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2091, allocations: 0 / 0.5196 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002876/0.212, allocations: 2.337 MB / 0.5219 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.2122, allocations: 223.7 kB / 0.5221 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.505e-05/0.2123, allocations: 16 kB / 0.5221 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003647/0.2126, allocations: 19.98 kB / 0.5222 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.2127, allocations: 52.92 kB / 0.5222 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/0.2128, allocations: 27.98 kB / 0.5222 GB, free: 2.098 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.052e-05/0.2129, allocations: 83.22 kB / 0.5223 GB, free: 2.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2129, allocations: 0 / 0.5223 GB, free: 2.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002181/0.215, allocations: 0.8862 MB / 0.5232 GB, free: 1.129 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sat.liq.phase,sat.vap.phase,sat_Tplus.liq.phase,sat_Tplus.vap.phase,sat_Tminus.liq.phase,sat_Tminus.vap.phase,sat_pplus.liq.phase,sat_pplus.vap.phase,sat_pminus.liq.phase,sat_pminus.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.1881/0.4032, allocations: 1.304 MB / 0.5244 GB, free: 97.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00305/0.4063, allocations: 2.359 MB / 0.5268 GB, free: 96.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4063, allocations: 0 / 0.5268 GB, free: 96.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.4075, allocations: 1.253 MB / 0.528 GB, free: 96.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/0.4093, allocations: 339.8 kB / 0.5283 GB, free: 96.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.4114, allocations: 1.616 MB / 0.5299 GB, free: 95.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.4118, allocations: 0.8903 MB / 0.5307 GB, free: 94.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006548/0.4125, allocations: 249.8 kB / 0.531 GB, free: 94.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.4127, allocations: 60.58 kB / 0.531 GB, free: 94.8 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4127, allocations: 0.9688 kB / 0.531 GB, free: 94.8 MB / 414.1 MB Notification: Performance of Templates: time 0.04231/0.455, allocations: 38.29 MB / 0.5684 GB, free: 63.38 MB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe 2>&1)