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.001682/0.001682, allocations: 105.1 kB / 16.35 MB, free: 5.824 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.001523/0.001523, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.808/1.808, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05106/0.05106, allocations: 9.092 MB / 279.6 MB, free: 2.969 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.001949/0.001949, allocations: 64.23 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4087, allocations: 48.15 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.03057/0.4394, allocations: 19.79 MB / 407.4 MB, free: 36.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01896/0.4584, allocations: 17.14 MB / 424.5 MB, free: 22.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.4595, allocations: 0 / 424.5 MB, free: 22.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.4618, allocations: 0.5747 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.02021/0.482, allocations: 5.277 MB / 430.4 MB, free: 16.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004316/0.4863, allocations: 1.014 MB / 431.4 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001569/0.4879, allocations: 0.798 MB / 432.2 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.4881, allocations: 45.75 kB / 432.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004504/0.4886, allocations: 330.7 kB / 432.6 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004048/0.489, allocations: 310.6 kB / 432.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.112e-05/0.489, allocations: 28 kB / 432.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02086/0.5099, allocations: 9.428 MB / 442.3 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001779/0.5102, allocations: 87.59 kB / 442.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005417/0.5107, allocations: 278.5 kB / 442.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01798/0.5287, allocations: 4.107 MB / 446.8 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.334e-05/0.5288, allocations: 3.938 kB / 446.8 MB, free: 172 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.5288, allocations: 0 / 446.8 MB, free: 172 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.5288, allocations: 4 kB / 446.8 MB, free: 168 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.003904/0.5327, allocations: 1.197 MB / 448 MB, free: 14.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/0.5328, allocations: 12.03 kB / 448 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005546/0.5334, allocations: 95.12 kB / 448.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.5337, allocations: 218.4 kB / 448.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.5337, allocations: 22.25 kB / 448.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.014e-05/0.5338, allocations: 24 kB / 448.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.5355, allocations: 1.263 MB / 449.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.5355, allocations: 0 / 449.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.5356, allocations: 23.88 kB / 449.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.664e-05/0.5356, allocations: 27.95 kB / 449.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002775/0.5384, allocations: 2.307 MB / 452 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.5412, allocations: 2.167 MB / 454.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.543, allocations: 1.35 MB / 455.5 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.5445, allocations: 1.274 MB / 456.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02235/0.5668, allocations: 11.22 MB / 468 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.282e-05/0.567, allocations: 39.12 kB / 468 MB, free: 8.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=185): time 3.206e-06/0.567, allocations: 0 / 468 MB, free: 8.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.004602/0.5716, allocations: 3.596 MB / 471.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.5717, allocations: 59.97 kB / 471.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.5718, allocations: 121.7 kB / 471.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-05/0.5718, allocations: 37.7 kB / 471.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.5719, allocations: 83.08 kB / 471.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000434/0.5723, allocations: 0.5849 MB / 472.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/0.5726, allocations: 154.2 kB / 472.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.5727, allocations: 309.9 kB / 473 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.5738, allocations: 1.018 MB / 474 MB, free: 2.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.575, allocations: 1.039 MB / 475 MB, free: 1.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002478/0.5775, allocations: 2.225 MB / 477.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5775, allocations: 0 / 477.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002865/0.5804, allocations: 2.336 MB / 479.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.5804, allocations: 8 kB / 479.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.5804, allocations: 9.75 kB / 479.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.5804, allocations: 0 / 479.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006122/0.5811, allocations: 115.9 kB / 479.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.5811, allocations: 4 kB / 479.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003761/0.5815, allocations: 78.95 kB / 479.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.607e-05/0.5815, allocations: 32.22 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.000234/0.5818, allocations: 170.2 kB / 480 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.582, allocations: 51.25 kB / 480 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0033/0.5853, allocations: 2.625 MB / 482.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.731e-05/0.5853, allocations: 31.97 kB / 482.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.5853, allocations: 0 / 482.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.5854, allocations: 7.984 kB / 482.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.5866, allocations: 1.171 MB / 483.9 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.5867, allocations: 0 / 483.9 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005902/0.5873, allocations: 135.8 kB / 484 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.5873, allocations: 4 kB / 484 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.124e-05/0.5873, allocations: 13 kB / 484 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.5873, allocations: 4 kB / 484 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5873, allocations: 0 / 484 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.5901, allocations: 2.344 MB / 486.4 MB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.5904, allocations: 223.7 kB / 486.6 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.547e-05/0.5904, allocations: 16 kB / 486.6 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.5908, allocations: 15.98 kB / 486.6 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.5909, allocations: 52.92 kB / 486.7 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.691e-05/0.5909, allocations: 25 kB / 486.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.474e-05/0.591, allocations: 95.19 kB / 486.8 MB, free: 6.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.591, allocations: 0 / 486.8 MB, free: 6.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003034/0.5941, allocations: 0.8824 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.003658/0.5977, allocations: 1.311 MB / 489 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.6007, allocations: 2.361 MB / 491.3 MB, free: 1.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.6007, allocations: 4 kB / 491.4 MB, free: 1.473 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.602, allocations: 1.248 MB / 492.6 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.6037, allocations: 353.6 kB / 492.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.606, allocations: 1.621 MB / 494.6 MB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.6066, allocations: 0.8935 MB / 495.5 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005683/0.6072, allocations: 248.1 kB / 495.7 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.6074, allocations: 63.41 kB / 495.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.6074, allocations: 0 / 495.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of Templates: time 0.05838/0.6658, allocations: 38.11 MB / 0.5214 GB, free: 7.008 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 cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe 2>&1)