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.001351/0.001358, allocations: 108.2 kB / 16.41 MB, free: 6.504 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.001315/0.001316, allocations: 187 kB / 17.34 MB, free: 5.742 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.363/1.363, 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.0437/0.0437, allocations: 9.09 MB / 279.7 MB, free: 2.945 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.001444/0.001444, allocations: 75.31 kB / 388.1 MB, free: 47.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06926/0.07071, allocations: 48.17 MB / 436.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01259/0.08333, allocations: 12.82 MB / 449.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009248/0.09261, allocations: 8.572 MB / 457.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.28e-05/0.09271, allocations: 0 / 457.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.0929, allocations: 43.73 kB / 457.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004488/0.09744, allocations: 1.883 MB / 459.6 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005417/0.1029, allocations: 2.268 MB / 461.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.1031, allocations: 127.2 kB / 462 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.424e-05/0.1031, allocations: 8 kB / 462 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.346e-05/0.1032, allocations: 47.78 kB / 462.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.001e-05/0.1033, allocations: 43.84 kB / 462.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.1033, allocations: 0 / 462.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01158/0.1149, allocations: 6.934 MB / 469.1 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.558e-05/0.1149, allocations: 11.92 kB / 469.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.115, allocations: 51.73 kB / 469.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006955/0.122, allocations: 3.774 MB / 472.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.122, allocations: 0 / 472.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.122, allocations: 0 / 472.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.882e-06/0.122, allocations: 4 kB / 472.9 MB, free: 2.922 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.002349/0.1244, allocations: 0.8737 MB / 473.8 MB, free: 2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1244, allocations: 15.97 kB / 473.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000366/0.1248, allocations: 44.8 kB / 473.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.125, allocations: 204.1 kB / 474 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.125, allocations: 4.562 kB / 474 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.1251, allocations: 15.94 kB / 474.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008375/0.1259, allocations: 259.2 kB / 474.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1259, allocations: 0 / 474.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.1259, allocations: 0 / 474.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.126, allocations: 8 kB / 474.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007578/0.1267, allocations: 215.7 kB / 474.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007124/0.1274, allocations: 0.6663 MB / 475.2 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008616/0.1283, allocations: 241.1 kB / 475.4 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.084e-05/0.1284, allocations: 65.61 kB / 475.5 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2987/0.4271, allocations: 64.21 MB / 0.5271 GB, free: 92.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.4272, allocations: 37.36 kB / 0.5271 GB, free: 92.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.705e-06/0.4272, allocations: 0 / 0.5271 GB, free: 92.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001651/0.4289, allocations: 372.2 kB / 0.5274 GB, free: 92.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.4289, allocations: 79.34 kB / 0.5275 GB, free: 92.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.926e-05/0.429, allocations: 130.5 kB / 0.5276 GB, free: 92.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.4291, allocations: 29.73 kB / 0.5277 GB, free: 92.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.767e-05/0.4291, allocations: 99.97 kB / 0.5278 GB, free: 92.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.4292, allocations: 51.44 kB / 0.5278 GB, free: 92.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-05/0.4293, allocations: 64.3 kB / 0.5279 GB, free: 92.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.355e-05/0.4293, allocations: 320 kB / 0.5282 GB, free: 92.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.4294, allocations: 59.66 kB / 0.5282 GB, free: 92.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.4296, allocations: 87.72 kB / 0.5283 GB, free: 92.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.4299, allocations: 146.3 kB / 0.5285 GB, free: 92.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.4299, allocations: 1.312 kB / 0.5285 GB, free: 92.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004522/0.4303, allocations: 221 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.4304, allocations: 8.594 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.4304, allocations: 2.281 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.4304, allocations: 2.078 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.4306, allocations: 53.77 kB / 0.5287 GB, free: 91.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.4306, allocations: 2.781 kB / 0.5287 GB, free: 91.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.4307, allocations: 12.97 kB / 0.5288 GB, free: 91.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.4308, allocations: 22.59 kB / 0.5288 GB, free: 91.98 MB / 414.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 8.154e-05/0.4309, allocations: 130.1 kB / 0.5289 GB, free: 91.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.061e-05/0.431, allocations: 9.688 kB / 0.5289 GB, free: 91.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.4329, allocations: 2.105 MB / 0.531 GB, free: 90.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.433, allocations: 11.8 kB / 0.531 GB, free: 90.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.433, allocations: 1.812 kB / 0.531 GB, free: 90.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.433, allocations: 1.938 kB / 0.531 GB, free: 90.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008134/0.4338, allocations: 1.052 MB / 0.532 GB, free: 90.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4338, allocations: 0 / 0.532 GB, free: 90.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002164/0.434, allocations: 34.28 kB / 0.532 GB, free: 90.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.434, allocations: 1.344 kB / 0.532 GB, free: 90.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.4341, allocations: 6.203 kB / 0.532 GB, free: 90.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/0.4341, allocations: 5.375 kB / 0.5321 GB, free: 90.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4341, allocations: 1.75 kB / 0.5321 GB, free: 90.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.4347, allocations: 0.6497 MB / 0.5327 GB, free: 89.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.4347, allocations: 99.72 kB / 0.5328 GB, free: 89.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.4348, allocations: 5.844 kB / 0.5328 GB, free: 89.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.4349, allocations: 2.25 kB / 0.5328 GB, free: 89.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.977e-05/0.435, allocations: 11.59 kB / 0.5328 GB, free: 89.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.435, allocations: 5.359 kB / 0.5328 GB, free: 89.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.682e-05/0.435, allocations: 100.8 kB / 0.5329 GB, free: 89.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.61e-07/0.435, allocations: 0 / 0.5329 GB, free: 89.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002244/0.4373, allocations: 0.9134 MB / 0.5338 GB, free: 89.45 MB / 414.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.003405/0.4407, allocations: 1.1 MB / 0.5349 GB, free: 89.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000396/0.4411, allocations: 210.6 kB / 0.5351 GB, free: 89.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4411, allocations: 1.438 kB / 0.5351 GB, free: 89.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.4413, allocations: 154.4 kB / 0.5352 GB, free: 89.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/0.4419, allocations: 71.08 kB / 0.5353 GB, free: 89.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007764/0.4427, allocations: 0.5859 MB / 0.5359 GB, free: 88.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.4429, allocations: 0.7374 MB / 0.5366 GB, free: 88.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.443, allocations: 32.33 kB / 0.5366 GB, free: 88 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.443, allocations: 0 / 0.5366 GB, free: 88 MB / 414.1 MB Notification: Performance of Templates: time 0.01988/0.4629, allocations: 18.64 MB / 0.5548 GB, free: 72.21 MB / 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)