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.001041/0.001041, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001109/0.001109, allocations: 197.7 kB / 16.14 MB, free: 6.711 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.308/1.308, allocations: 205.1 MB / 222 MB, free: 4.973 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04275/0.04275, allocations: 9.079 MB / 278.4 MB, free: 12.64 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.001202/0.001202, allocations: 55.92 kB / 337.3 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07327/0.07449, allocations: 48.17 MB / 385.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01429/0.08882, allocations: 13.64 MB / 399.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009176/0.09803, allocations: 9.32 MB / 408.5 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.612e-05/0.09816, allocations: 4 kB / 408.5 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.09841, allocations: 31.8 kB / 408.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004026/0.1024, allocations: 1.465 MB / 410 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006143/0.1086, allocations: 1.802 MB / 411.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.1088, allocations: 123.2 kB / 411.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.115e-05/0.1089, allocations: 8 kB / 411.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.552e-05/0.1089, allocations: 39.86 kB / 411.9 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.599e-05/0.109, allocations: 51.77 kB / 412 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.109, allocations: 0 / 412 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01037/0.1194, allocations: 6.848 MB / 418.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.837e-05/0.1195, allocations: 15.92 kB / 418.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.078e-05/0.1196, allocations: 55.66 kB / 418.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006846/0.1264, allocations: 3.798 MB / 422.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1265, allocations: 4 kB / 422.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.1265, allocations: 0 / 422.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1265, allocations: 0 / 422.7 MB, free: 4.402 MB / 318.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.00203/0.1285, allocations: 0.8658 MB / 423.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.1286, allocations: 8.031 kB / 423.6 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000321/0.1289, allocations: 44.8 kB / 423.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.1291, allocations: 208.1 kB / 423.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.1291, allocations: 8.562 kB / 423.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.1292, allocations: 15.94 kB / 423.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008326/0.13, allocations: 259.1 kB / 424.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.13, allocations: 0 / 424.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.13, allocations: 4 kB / 424.1 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.1301, allocations: 7.938 kB / 424.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000748/0.1308, allocations: 215.7 kB / 424.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007393/0.1316, allocations: 0.6662 MB / 425 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008758/0.1324, allocations: 233.1 kB / 425.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.937e-05/0.1325, allocations: 57.69 kB / 425.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2606/0.3932, allocations: 63.96 MB / 489.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.3933, allocations: 40.44 kB / 489.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.304e-06/0.3933, allocations: 0 / 489.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001955/0.3953, allocations: 373.3 kB / 489.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.3953, allocations: 77.11 kB / 489.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.3955, allocations: 127.8 kB / 489.8 MB, free: 3.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.3955, allocations: 25.7 kB / 489.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.3956, allocations: 99.34 kB / 490 MB, free: 3.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.561e-05/0.3957, allocations: 54.8 kB / 490 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.3958, allocations: 55.73 kB / 490.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3959, allocations: 326.5 kB / 490.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.3961, allocations: 55.81 kB / 490.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.3962, allocations: 91.27 kB / 490.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000319/0.3966, allocations: 143.8 kB / 490.7 MB, free: 3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3966, allocations: 4 kB / 490.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004746/0.3971, allocations: 223 kB / 490.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3971, allocations: 4 kB / 490.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3971, allocations: 2.312 kB / 490.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3971, allocations: 5.422 kB / 490.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.3973, allocations: 51.58 kB / 491 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.3974, allocations: 4 kB / 491 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.3975, allocations: 12.97 kB / 491 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.445e-05/0.3976, allocations: 27.22 kB / 491 MB, free: 2.754 MB / 350.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.0001203/0.3977, allocations: 116.8 kB / 491.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.89e-05/0.3978, allocations: 15.84 kB / 491.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.3997, allocations: 2.103 MB / 493.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.3997, allocations: 7.984 kB / 493.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.3997, allocations: 1.531 kB / 493.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3997, allocations: 7.984 kB / 493.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008984/0.4006, allocations: 1.05 MB / 494.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.4006, allocations: 0 / 494.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.4009, allocations: 37.59 kB / 494.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4009, allocations: 0 / 494.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.4009, allocations: 4 kB / 494.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.4009, allocations: 3.984 kB / 494.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4009, allocations: 0 / 494.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007196/0.4016, allocations: 0.6528 MB / 495 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-05/0.4018, allocations: 108 kB / 495.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.4018, allocations: 0 / 495.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.402, allocations: 7.625 kB / 495.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.189e-05/0.402, allocations: 7.984 kB / 495.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.402, allocations: 6.906 kB / 495.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.794e-05/0.4021, allocations: 103 kB / 495.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4021, allocations: 0 / 495.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002768/0.4049, allocations: 0.911 MB / 496.1 MB, free: 15.03 MB / 366.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.004855/0.4098, allocations: 1.084 MB / 497.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004975/0.4103, allocations: 221 kB / 497.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4103, allocations: 0 / 497.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.4105, allocations: 158.9 kB / 497.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006769/0.4112, allocations: 72.25 kB / 497.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.4122, allocations: 0.6322 MB / 498.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.4126, allocations: 0.7404 MB / 499 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004579/0.413, allocations: 380.8 kB / 499.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.4132, allocations: 31.3 kB / 499.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4132, allocations: 0 / 499.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of Templates: time 0.04593/0.4591, allocations: 33.57 MB / 0.5205 GB, free: 10.68 MB / 398.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)