Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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.CheckDerivativesWater,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005751/0.005751, allocations: 100.9 kB / 15.73 MB, free: 6.473 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.001136/0.001136, allocations: 195 kB / 16.67 MB, free: 6.379 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.34/1.34, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04426/0.04426, allocations: 9.104 MB / 279 MB, free: 12.1 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.002181/0.002181, allocations: 72.45 kB / 387.5 MB, free: 8.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2827, allocations: 48.15 MB / 435.6 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01465/0.2974, allocations: 12.83 MB / 448.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.3079, allocations: 8.571 MB / 457 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.3081, allocations: 0 / 457 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.3084, allocations: 43.45 kB / 457.1 MB, free: 7.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006594/0.315, allocations: 1.889 MB / 459 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006442/0.3215, allocations: 2.273 MB / 461.2 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.3217, allocations: 123 kB / 461.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.497e-05/0.3217, allocations: 4.406 kB / 461.4 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.57e-05/0.3218, allocations: 47.22 kB / 461.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.814e-05/0.3219, allocations: 50.12 kB / 461.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.439e-05/0.3219, allocations: 3.406 kB / 461.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01291/0.3348, allocations: 6.929 MB / 468.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.3349, allocations: 11.88 kB / 468.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.335, allocations: 51.78 kB / 468.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008117/0.3431, allocations: 3.774 MB / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3432, allocations: 0 / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3432, allocations: 0 / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3432, allocations: 4 kB / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001933/0.3451, allocations: 0.8814 MB / 473.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.3452, allocations: 8.031 kB / 473.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00034/0.3455, allocations: 40.81 kB / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002144/0.3458, allocations: 212.1 kB / 473.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.3458, allocations: 8.562 kB / 473.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.3458, allocations: 7.938 kB / 473.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008212/0.3467, allocations: 263.2 kB / 473.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.3467, allocations: 0 / 473.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.3467, allocations: 7.984 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.3467, allocations: 4 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007462/0.3475, allocations: 211.7 kB / 473.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006455/0.3481, allocations: 0.6701 MB / 474.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008601/0.349, allocations: 237 kB / 474.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.919e-05/0.3491, allocations: 61.67 kB / 474.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1174/0.4665, allocations: 64.22 MB / 0.5264 GB, free: 1.402 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.4665, allocations: 38.5 kB / 0.5264 GB, free: 1.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 1.913e-06/0.4665, allocations: 0 / 0.5264 GB, free: 1.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001678/0.4682, allocations: 373.1 kB / 0.5268 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.4683, allocations: 81.11 kB / 0.5269 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.4684, allocations: 130.1 kB / 0.527 GB, free: 0.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.4685, allocations: 25.7 kB / 0.527 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.841e-05/0.4685, allocations: 104 kB / 0.5271 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.48e-05/0.4686, allocations: 47.28 kB / 0.5272 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.4687, allocations: 65.58 kB / 0.5272 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4688, allocations: 314.8 kB / 0.5275 GB, free: 184 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.4689, allocations: 59.95 kB / 0.5276 GB, free: 124 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.4691, allocations: 88.48 kB / 0.5277 GB, free: 24 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.4694, allocations: 147.3 kB / 0.5278 GB, free: 15.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4694, allocations: 0 / 0.5278 GB, free: 15.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004475/0.4699, allocations: 214 kB / 0.528 GB, free: 15.65 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.4699, allocations: 11.44 kB / 0.528 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4699, allocations: 3.938 kB / 0.528 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4699, allocations: 7.875 kB / 0.528 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.4702, allocations: 51.95 kB / 0.5281 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.4702, allocations: 4.219 kB / 0.5281 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.4703, allocations: 19.78 kB / 0.5281 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/0.4703, allocations: 27.91 kB / 0.5281 GB, free: 15.54 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001215/0.4705, allocations: 121.7 kB / 0.5282 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.284e-05/0.4706, allocations: 7.906 kB / 0.5283 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.4726, allocations: 2.108 MB / 0.5303 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.4726, allocations: 7.984 kB / 0.5303 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4726, allocations: 4 kB / 0.5303 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.4727, allocations: 0 / 0.5303 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009093/0.4736, allocations: 1.048 MB / 0.5314 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.4736, allocations: 0 / 0.5314 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.4738, allocations: 39.95 kB / 0.5314 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4738, allocations: 0 / 0.5314 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.4739, allocations: 11.94 kB / 0.5314 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4739, allocations: 0 / 0.5314 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.4739, allocations: 0 / 0.5314 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006744/0.4746, allocations: 0.6488 MB / 0.532 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.4746, allocations: 96.88 kB / 0.5321 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.013e-05/0.4747, allocations: 11.94 kB / 0.5321 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.4748, allocations: 0 / 0.5321 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.4748, allocations: 7.984 kB / 0.5321 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.4749, allocations: 8 kB / 0.5322 GB, free: 11.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.294e-05/0.4749, allocations: 103.3 kB / 0.5323 GB, free: 11.16 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4749, allocations: 0 / 0.5323 GB, free: 11.16 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002692/0.4776, allocations: 0.9058 MB / 0.5331 GB, free: 10.26 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.003648/0.4813, allocations: 1.108 MB / 0.5342 GB, free: 9.137 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004299/0.4817, allocations: 203.8 kB / 0.5344 GB, free: 8.938 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4818, allocations: 0 / 0.5344 GB, free: 8.938 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.482, allocations: 164 kB / 0.5346 GB, free: 8.777 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.4825, allocations: 68.42 kB / 0.5346 GB, free: 8.711 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009316/0.4835, allocations: 0.5636 MB / 0.5352 GB, free: 8.117 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.4838, allocations: 0.7367 MB / 0.5359 GB, free: 7.352 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004171/0.4842, allocations: 368.6 kB / 0.5363 GB, free: 6.992 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.612e-05/0.4843, allocations: 35.41 kB / 0.5363 GB, free: 6.957 MB / 430.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4843, allocations: 4 kB / 0.5363 GB, free: 6.953 MB / 430.1 MB Notification: Performance of Templates: time 0.04066/0.525, allocations: 33.61 MB / 0.5691 GB, free: 5.336 MB / 462.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)