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.001515/0.001515, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001612/0.001612, allocations: 192.2 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.371/1.371, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04657/0.04657, allocations: 9.095 MB / 279.6 MB, free: 2.988 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.001478/0.001478, allocations: 67.91 kB / 339.5 MB, free: 7.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2198, allocations: 48.15 MB / 387.6 MB, free: 51.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01245/0.2323, allocations: 12.82 MB / 400.5 MB, free: 42.72 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007062/0.2394, allocations: 8.575 MB / 409 MB, free: 35.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.644e-05/0.2395, allocations: 0 / 409 MB, free: 35.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.2397, allocations: 43.55 kB / 409.1 MB, free: 35.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004606/0.2443, allocations: 1.891 MB / 411 MB, free: 34.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004854/0.2492, allocations: 2.254 MB / 413.2 MB, free: 32.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000136/0.2493, allocations: 134.4 kB / 413.3 MB, free: 32.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.318e-05/0.2494, allocations: 5.062 kB / 413.4 MB, free: 32.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.948e-05/0.2495, allocations: 42.91 kB / 413.4 MB, free: 32.83 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.205e-05/0.2495, allocations: 42.56 kB / 413.4 MB, free: 32.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.2496, allocations: 3.688 kB / 413.4 MB, free: 32.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009872/0.2594, allocations: 6.932 MB / 420.4 MB, free: 26.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.181e-05/0.2595, allocations: 11.92 kB / 420.4 MB, free: 26.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.38e-05/0.2596, allocations: 59.67 kB / 420.4 MB, free: 26.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005699/0.2653, allocations: 3.766 MB / 424.2 MB, free: 22.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2653, allocations: 0 / 424.2 MB, free: 22.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2653, allocations: 0 / 424.2 MB, free: 22.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.2653, allocations: 0 / 424.2 MB, free: 22.88 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.001624/0.2669, allocations: 0.8814 MB / 425.1 MB, free: 21.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.267, allocations: 8.031 kB / 425.1 MB, free: 21.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003412/0.2673, allocations: 40.8 kB / 425.1 MB, free: 21.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.2675, allocations: 212.1 kB / 425.3 MB, free: 21.65 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.2675, allocations: 10.25 kB / 425.4 MB, free: 21.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.2675, allocations: 11.94 kB / 425.4 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007723/0.2683, allocations: 259.1 kB / 425.6 MB, free: 21.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.2683, allocations: 7.938 kB / 425.6 MB, free: 21.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.2684, allocations: 8 kB / 425.6 MB, free: 21.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2684, allocations: 0 / 425.6 MB, free: 21.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007228/0.2691, allocations: 211.8 kB / 425.8 MB, free: 21.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005117/0.2696, allocations: 0.6623 MB / 426.5 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007945/0.2704, allocations: 237.1 kB / 426.7 MB, free: 20.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.029e-05/0.2705, allocations: 69.53 kB / 426.8 MB, free: 20.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1178/0.3883, allocations: 64.23 MB / 491 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.3884, allocations: 34.56 kB / 491.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.275e-06/0.3884, allocations: 0 / 491.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001715/0.3901, allocations: 369.1 kB / 491.4 MB, free: 11.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.3902, allocations: 85.11 kB / 491.5 MB, free: 11.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.3903, allocations: 129.1 kB / 491.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.3903, allocations: 29.7 kB / 491.7 MB, free: 11.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3904, allocations: 99.97 kB / 491.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.858e-05/0.3905, allocations: 59.19 kB / 491.8 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.3906, allocations: 61.67 kB / 491.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3907, allocations: 314.8 kB / 492.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.3909, allocations: 63.89 kB / 492.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.391, allocations: 88.17 kB / 492.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.3913, allocations: 147.3 kB / 492.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3914, allocations: 0 / 492.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004948/0.3919, allocations: 215.2 kB / 492.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3919, allocations: 8 kB / 492.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3919, allocations: 4.719 kB / 492.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.3919, allocations: 0 / 492.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.3921, allocations: 59.89 kB / 492.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.3922, allocations: 4 kB / 492.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.3923, allocations: 11.91 kB / 492.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.3923, allocations: 23.98 kB / 492.8 MB, free: 10.32 MB / 382.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.0001059/0.3924, allocations: 113.8 kB / 492.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-05/0.3925, allocations: 11.89 kB / 492.9 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/0.3946, allocations: 2.107 MB / 495 MB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.3946, allocations: 7.984 kB / 495 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3946, allocations: 0 / 495 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3946, allocations: 0 / 495 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009658/0.3956, allocations: 1.048 MB / 496.1 MB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.3956, allocations: 0 / 496.1 MB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.3958, allocations: 39.89 kB / 496.1 MB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.3958, allocations: 5 kB / 496.1 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.3959, allocations: 3.938 kB / 496.1 MB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3959, allocations: 0 / 496.1 MB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3959, allocations: 4 kB / 496.1 MB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006859/0.3966, allocations: 0.6419 MB / 496.8 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-05/0.3966, allocations: 104.9 kB / 496.9 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.3967, allocations: 11.88 kB / 496.9 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.3969, allocations: 6.75 kB / 496.9 MB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.3969, allocations: 11.98 kB / 496.9 MB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.3969, allocations: 3.938 kB / 496.9 MB, free: 6.059 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.33e-05/0.397, allocations: 103.3 kB / 497 MB, free: 5.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.397, allocations: 0 / 497 MB, free: 5.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002266/0.3993, allocations: 0.9058 MB / 497.9 MB, free: 5.051 MB / 382.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.003499/0.4028, allocations: 1.098 MB / 499 MB, free: 3.945 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004397/0.4032, allocations: 215.8 kB / 499.2 MB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4032, allocations: 0 / 499.2 MB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.4034, allocations: 163.8 kB / 499.4 MB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.404, allocations: 68.22 kB / 499.5 MB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009186/0.405, allocations: 0.5549 MB / 0.4883 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.4053, allocations: 0.7406 MB / 0.489 GB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004176/0.4057, allocations: 376.6 kB / 0.4894 GB, free: 1.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.4058, allocations: 35.41 kB / 0.4894 GB, free: 1.758 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4058, allocations: 3.938 kB / 0.4894 GB, free: 1.754 MB / 382.1 MB Notification: Performance of Templates: time 0.04201/0.4478, allocations: 33.56 MB / 0.5222 GB, free: 208 kB / 414.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 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)