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.001146/0.001146, allocations: 116.7 kB / 16.37 MB, free: 6 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.00119/0.00119, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.337/1.337, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04847/0.04847, allocations: 9.097 MB / 279.6 MB, free: 2.98 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.001512/0.001512, allocations: 67.89 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2085, allocations: 48.14 MB / 387.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.01651/0.225, allocations: 19.79 MB / 407.4 MB, free: 36.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01244/0.2375, allocations: 17.13 MB / 424.6 MB, free: 22.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003762/0.2379, allocations: 4 kB / 424.6 MB, free: 22.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.2391, allocations: 0.5669 MB / 425.1 MB, free: 21.9 MB / 318.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.01114/0.2503, allocations: 5.281 MB / 430.4 MB, free: 16.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.2527, allocations: 1.022 MB / 431.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000864/0.2535, allocations: 0.7941 MB / 432.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.2537, allocations: 45.72 kB / 432.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005196/0.2542, allocations: 338.6 kB / 432.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003988/0.2546, allocations: 294.7 kB / 432.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.99e-05/0.2546, allocations: 28 kB / 432.9 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01372/0.2684, allocations: 9.439 MB / 442.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.112e-05/0.2685, allocations: 91.53 kB / 442.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003471/0.2689, allocations: 274.5 kB / 442.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00883/0.2777, allocations: 4.115 MB / 446.8 MB, free: 160 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2777, allocations: 0 / 446.8 MB, free: 160 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2777, allocations: 0 / 446.8 MB, free: 160 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2778, allocations: 0 / 446.8 MB, free: 160 kB / 318.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.002037/0.2798, allocations: 1.193 MB / 448 MB, free: 14.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.2798, allocations: 8.031 kB / 448 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004392/0.2803, allocations: 95.12 kB / 448.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.2805, allocations: 218.4 kB / 448.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.2805, allocations: 24.56 kB / 448.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.817e-05/0.2806, allocations: 28 kB / 448.4 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.282, allocations: 1.259 MB / 449.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.282, allocations: 0 / 449.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.282, allocations: 19.94 kB / 449.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.7e-05/0.282, allocations: 27.95 kB / 449.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002321/0.2844, allocations: 2.315 MB / 452 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.2866, allocations: 2.16 MB / 454.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.288, allocations: 1.346 MB / 455.5 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.2892, allocations: 1.282 MB / 456.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02118/0.3104, allocations: 11.22 MB / 468 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.3105, allocations: 35.12 kB / 468 MB, free: 8.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=185): time 2.836e-06/0.3105, allocations: 0 / 468 MB, free: 8.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.004555/0.3151, allocations: 3.6 MB / 471.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.3151, allocations: 55.97 kB / 471.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.602e-05/0.3152, allocations: 117.8 kB / 471.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.3153, allocations: 33.7 kB / 471.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.3153, allocations: 91.06 kB / 471.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.3157, allocations: 0.5849 MB / 472.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/0.3159, allocations: 150.2 kB / 472.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.316, allocations: 313.9 kB / 473 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.3171, allocations: 1.018 MB / 474 MB, free: 2.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.3182, allocations: 1.035 MB / 475 MB, free: 1.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002443/0.3207, allocations: 2.229 MB / 477.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.3207, allocations: 2.188 kB / 477.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002749/0.3235, allocations: 2.34 MB / 479.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3235, allocations: 7.938 kB / 479.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.3235, allocations: 0 / 479.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3235, allocations: 4 kB / 479.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.3241, allocations: 111.8 kB / 479.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3241, allocations: 8 kB / 479.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.3245, allocations: 90.89 kB / 479.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.035e-05/0.3245, allocations: 23.92 kB / 479.8 MB, free: 13.1 MB / 366.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.0002025/0.3248, allocations: 166.2 kB / 480 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.3249, allocations: 51.25 kB / 480 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003435/0.3284, allocations: 2.63 MB / 482.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.044e-05/0.3284, allocations: 35.89 kB / 482.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3284, allocations: 0 / 482.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.3284, allocations: 3.984 kB / 482.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.3295, allocations: 1.167 MB / 483.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3296, allocations: 4 kB / 483.9 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006306/0.3302, allocations: 135.9 kB / 484 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.3302, allocations: 7.938 kB / 484 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.3303, allocations: 15.98 kB / 484 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.3303, allocations: 1 kB / 484 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3303, allocations: 4 kB / 484 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003163/0.3334, allocations: 2.337 MB / 486.4 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.3338, allocations: 219.7 kB / 486.6 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.3338, allocations: 16 kB / 486.6 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003518/0.3342, allocations: 19.98 kB / 486.6 MB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3343, allocations: 48.94 kB / 486.7 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.713e-05/0.3344, allocations: 24.55 kB / 486.7 MB, free: 6.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.313e-05/0.3345, allocations: 95.52 kB / 486.8 MB, free: 6.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3345, allocations: 0 / 486.8 MB, free: 6.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002395/0.3369, allocations: 0.8785 MB / 487.7 MB, free: 5.164 MB / 366.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.003353/0.3402, allocations: 1.318 MB / 489 MB, free: 3.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.3431, allocations: 2.361 MB / 491.4 MB, free: 1.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3431, allocations: 3.938 kB / 491.4 MB, free: 1.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.3444, allocations: 1.248 MB / 492.6 MB, free: 240 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.346, allocations: 344.1 kB / 492.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/0.3481, allocations: 1.624 MB / 494.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.3485, allocations: 0.8896 MB / 495.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004824/0.349, allocations: 256.3 kB / 495.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.3492, allocations: 59.41 kB / 495.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3492, allocations: 0 / 495.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of Templates: time 0.04998/0.3992, allocations: 38.11 MB / 0.5214 GB, free: 7.016 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 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe 2>&1)