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.0009758/0.0009761, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.009089/0.009089, allocations: 172.6 kB / 16.26 MB, free: 6.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.434/1.434, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0465/0.0465, allocations: 9.069 MB / 279.8 MB, free: 12.15 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.0005388/0.0005388, allocations: 12.22 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09169, allocations: 49.2 MB / 388.9 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01633/0.1081, allocations: 13.16 MB / 402.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.1196, allocations: 9.157 MB / 411.3 MB, free: 2.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.1198, allocations: 0 / 411.3 MB, free: 2.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.12, allocations: 43.78 kB / 411.3 MB, free: 1.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004625/0.1246, allocations: 1.456 MB / 412.8 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005531/0.1302, allocations: 1.793 MB / 414.5 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.1303, allocations: 131.1 kB / 414.7 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.654e-05/0.1304, allocations: 8 kB / 414.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.327e-05/0.1305, allocations: 39.84 kB / 414.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.1306, allocations: 47.78 kB / 414.8 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.1306, allocations: 4 kB / 414.8 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01192/0.1425, allocations: 6.856 MB / 421.6 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.468e-05/0.1426, allocations: 3.938 kB / 421.6 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.162e-05/0.1427, allocations: 81.44 kB / 421.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00816/0.1508, allocations: 3.77 MB / 425.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1509, allocations: 0 / 425.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1509, allocations: 4 kB / 425.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1509, allocations: 0 / 425.5 MB, free: 3.75 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.002536/0.1534, allocations: 0.858 MB / 426.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1535, allocations: 12.03 kB / 426.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003837/0.1539, allocations: 40.8 kB / 426.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.1541, allocations: 212.1 kB / 426.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.1542, allocations: 8.562 kB / 426.6 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.1542, allocations: 15.94 kB / 426.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008639/0.1551, allocations: 259.2 kB / 426.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1551, allocations: 0 / 426.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.1551, allocations: 0 / 426.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.1551, allocations: 4 kB / 426.9 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007444/0.1559, allocations: 215.7 kB / 427.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007528/0.1566, allocations: 0.6701 MB / 427.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008344/0.1575, allocations: 237.1 kB / 428 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.834e-05/0.1576, allocations: 61.56 kB / 428.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2785/0.4361, allocations: 64.57 MB / 492.6 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.4362, allocations: 36.81 kB / 492.7 MB, free: 188 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.024e-06/0.4362, allocations: 0 / 492.7 MB, free: 188 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001655/0.4378, allocations: 375.3 kB / 493 MB, free: 15.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.4379, allocations: 81.11 kB / 493.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.438, allocations: 127.6 kB / 493.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.4381, allocations: 37.69 kB / 493.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.627e-05/0.4381, allocations: 92.2 kB / 493.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.533e-05/0.4382, allocations: 49.44 kB / 493.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.643e-05/0.4383, allocations: 21.7 kB / 493.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4384, allocations: 318.8 kB / 493.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.4385, allocations: 59.95 kB / 493.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.4387, allocations: 90.64 kB / 493.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/0.4389, allocations: 156.4 kB / 494 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.439, allocations: 0 / 494 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004318/0.4394, allocations: 210.6 kB / 494.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.4394, allocations: 11.94 kB / 494.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.4394, allocations: 0 / 494.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4395, allocations: 4 kB / 494.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.4397, allocations: 59.89 kB / 494.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4397, allocations: 0 / 494.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.4398, allocations: 15 kB / 494.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.65e-05/0.4399, allocations: 15.98 kB / 494.4 MB, free: 14.46 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.0001105/0.44, allocations: 125.7 kB / 494.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.4401, allocations: 19.83 kB / 494.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.4421, allocations: 2.108 MB / 496.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.4421, allocations: 3.984 kB / 496.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4421, allocations: 4 kB / 496.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.4421, allocations: 4 kB / 496.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009757/0.4431, allocations: 1.047 MB / 497.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4431, allocations: 0 / 497.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002218/0.4433, allocations: 36.7 kB / 497.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.4434, allocations: 3.938 kB / 497.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.4434, allocations: 4 kB / 497.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4434, allocations: 0 / 497.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.4434, allocations: 0 / 497.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007007/0.4441, allocations: 0.6492 MB / 498.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.48e-05/0.4442, allocations: 104.8 kB / 498.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.4442, allocations: 1.562 kB / 498.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.4444, allocations: 8 kB / 498.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.4444, allocations: 7.984 kB / 498.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.4444, allocations: 11.66 kB / 498.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.64e-05/0.4445, allocations: 99.27 kB / 498.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4445, allocations: 0 / 498.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002539/0.4471, allocations: 0.9107 MB / 499.5 MB, free: 9.266 MB / 350.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.004648/0.4517, allocations: 1.091 MB / 0.4888 GB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004066/0.4522, allocations: 216.9 kB / 0.4891 GB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4522, allocations: 4.125 kB / 0.4891 GB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002098/0.4524, allocations: 167.6 kB / 0.4892 GB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/0.4531, allocations: 65.72 kB / 0.4893 GB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.4541, allocations: 0.6857 MB / 0.49 GB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.4545, allocations: 0.7328 MB / 0.4907 GB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004732/0.4549, allocations: 377.4 kB / 0.491 GB, free: 5.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.4551, allocations: 35.41 kB / 0.4911 GB, free: 5.953 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4551, allocations: 4 kB / 0.4911 GB, free: 5.949 MB / 350.1 MB Notification: Performance of Templates: time 0.04456/0.4996, allocations: 33.52 MB / 0.5238 GB, free: 4.438 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: