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.005367/0.005367, allocations: 104.7 kB / 15.74 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.001145/0.001145, allocations: 198.1 kB / 16.68 MB, free: 5.965 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.245/1.245, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04239/0.04239, allocations: 9.095 MB / 279 MB, free: 12.08 MB / 238.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.001233/0.001233, allocations: 75.91 kB / 387.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2239, allocations: 48.15 MB / 435.7 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.0184/0.2423, allocations: 19.79 MB / 455.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01526/0.2576, allocations: 17.14 MB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003965/0.258, allocations: 1.562 kB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.2595, allocations: 0.6435 MB / 473.2 MB, free: 10.23 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.01342/0.2729, allocations: 5.542 MB / 478.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002537/0.2754, allocations: 1.081 MB / 479.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008719/0.2763, allocations: 0.7979 MB / 480.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.502e-05/0.2764, allocations: 45.77 kB / 480.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003539/0.2768, allocations: 338.7 kB / 481 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.2771, allocations: 294.7 kB / 481.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.161e-05/0.2772, allocations: 28 kB / 481.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01445/0.2916, allocations: 9.447 MB / 490.8 MB, free: 9.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.676e-05/0.2917, allocations: 87.59 kB / 490.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002878/0.292, allocations: 278.5 kB / 491.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006745/0.2988, allocations: 4.1 MB / 495.2 MB, free: 4.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2988, allocations: 0 / 495.2 MB, free: 4.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.2988, allocations: 3.984 kB / 495.3 MB, free: 4.945 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.2988, allocations: 0 / 495.3 MB, free: 4.945 MB / 366.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.001901/0.3007, allocations: 1.2 MB / 496.5 MB, free: 3.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.3008, allocations: 8.031 kB / 496.5 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004131/0.3012, allocations: 111 kB / 496.6 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.3013, allocations: 218.3 kB / 496.8 MB, free: 3.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.3014, allocations: 24.56 kB / 496.8 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.555e-05/0.3014, allocations: 28 kB / 496.8 MB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.3028, allocations: 1.255 MB / 498.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3028, allocations: 0 / 498.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.3029, allocations: 15.94 kB / 498.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.3029, allocations: 27.95 kB / 498.1 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/0.3052, allocations: 2.311 MB / 0.4887 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.3072, allocations: 2.162 MB / 0.4908 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.3087, allocations: 1.346 MB / 0.4921 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.3098, allocations: 1.278 MB / 0.4934 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01919/0.329, allocations: 11.22 MB / 0.5043 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3291, allocations: 39.12 kB / 0.5044 GB, free: 13.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 2.395e-06/0.3291, allocations: 0 / 0.5044 GB, free: 13.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.003852/0.3329, allocations: 3.603 MB / 0.5079 GB, free: 10.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.333, allocations: 55.97 kB / 0.5079 GB, free: 10.06 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.099e-05/0.3331, allocations: 113.8 kB / 0.5081 GB, free: 9.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.3331, allocations: 37.7 kB / 0.5081 GB, free: 9.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.492e-05/0.3331, allocations: 90.98 kB / 0.5082 GB, free: 9.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/0.3335, allocations: 0.581 MB / 0.5087 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.3337, allocations: 154.2 kB / 0.5089 GB, free: 9.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.524e-05/0.3338, allocations: 313.9 kB / 0.5092 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.3348, allocations: 1.022 MB / 0.5102 GB, free: 7.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.3359, allocations: 1.035 MB / 0.5112 GB, free: 6.688 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002268/0.3382, allocations: 2.229 MB / 0.5134 GB, free: 4.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.3382, allocations: 0 / 0.5134 GB, free: 4.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002526/0.3407, allocations: 2.336 MB / 0.5157 GB, free: 2.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3407, allocations: 4 kB / 0.5157 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3407, allocations: 0 / 0.5157 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3408, allocations: 4 kB / 0.5157 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.3413, allocations: 119.8 kB / 0.5158 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.3413, allocations: 4 kB / 0.5158 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.3417, allocations: 82.95 kB / 0.5159 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.3417, allocations: 23.92 kB / 0.5159 GB, free: 1.883 MB / 398.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.0001856/0.3419, allocations: 174.2 kB / 0.5161 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.3421, allocations: 51.25 kB / 0.5161 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002925/0.345, allocations: 2.636 MB / 0.5187 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.671e-05/0.345, allocations: 27.95 kB / 0.5187 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.345, allocations: 0 / 0.5187 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3451, allocations: 3.984 kB / 0.5187 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.3461, allocations: 1.171 MB / 0.5199 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3461, allocations: 3.938 kB / 0.5199 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005915/0.3467, allocations: 139.8 kB / 0.52 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3467, allocations: 0 / 0.52 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.3468, allocations: 23.94 kB / 0.52 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3468, allocations: 0 / 0.52 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3468, allocations: 0 / 0.52 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00244/0.3492, allocations: 2.352 MB / 0.5223 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.3494, allocations: 215.7 kB / 0.5225 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.867e-05/0.3495, allocations: 16 kB / 0.5225 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00034/0.3498, allocations: 23.98 kB / 0.5226 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.5e-05/0.3499, allocations: 48.92 kB / 0.5226 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.35, allocations: 20 kB / 0.5226 GB, free: 10.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.986e-05/0.35, allocations: 91.2 kB / 0.5227 GB, free: 10.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.35, allocations: 4 kB / 0.5227 GB, free: 10.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001891/0.3519, allocations: 0.8746 MB / 0.5236 GB, free: 9.906 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.002804/0.3547, allocations: 1.315 MB / 0.5248 GB, free: 8.578 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.3571, allocations: 2.357 MB / 0.5271 GB, free: 6.219 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3571, allocations: 0 / 0.5271 GB, free: 6.219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.3583, allocations: 1.26 MB / 0.5284 GB, free: 4.961 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/0.36, allocations: 343.7 kB / 0.5287 GB, free: 4.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.3619, allocations: 1.621 MB / 0.5303 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.3623, allocations: 0.8896 MB / 0.5312 GB, free: 2.062 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004623/0.3627, allocations: 250.7 kB / 0.5314 GB, free: 1.816 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.3629, allocations: 63.41 kB / 0.5315 GB, free: 1.754 MB / 414.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3629, allocations: 0 / 0.5315 GB, free: 1.754 MB / 414.1 MB Notification: Performance of Templates: time 0.04612/0.4091, allocations: 38.26 MB / 0.5688 GB, free: 11.52 MB / 462.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)