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.001669/0.001668, allocations: 109.2 kB / 16.41 MB, free: 6.445 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.001889/0.001889, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.354/1.354, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04638/0.04638, allocations: 9.101 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.001406/0.001406, allocations: 73.5 kB / 388.1 MB, free: 47.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, allocations: 48.17 MB / 436.3 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01423/0.1184, allocations: 12.82 MB / 449.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009905/0.1283, allocations: 8.568 MB / 457.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.12e-05/0.1284, allocations: 0 / 457.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002283/0.1288, allocations: 43.72 kB / 457.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005636/0.1344, allocations: 1.891 MB / 459.6 MB, free: 196 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007536/0.142, allocations: 2.265 MB / 461.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.1422, allocations: 123.1 kB / 462 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.886e-05/0.1423, allocations: 12 kB / 462 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.675e-05/0.1424, allocations: 39.8 kB / 462.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.1425, allocations: 47.84 kB / 462.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.1425, allocations: 4 kB / 462.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01418/0.1567, allocations: 6.934 MB / 469.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.338e-05/0.1568, allocations: 11.94 kB / 469.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1569, allocations: 47.73 kB / 469.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009526/0.1665, allocations: 3.774 MB / 472.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1665, allocations: 0 / 472.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1665, allocations: 0 / 472.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.1665, allocations: 0 / 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.002484/0.169, allocations: 0.8776 MB / 473.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1691, allocations: 12.03 kB / 473.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003535/0.1694, allocations: 48.73 kB / 473.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.1697, allocations: 208.1 kB / 474 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.1697, allocations: 8.562 kB / 474 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.1697, allocations: 7.938 kB / 474.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008722/0.1706, allocations: 259.2 kB / 474.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1706, allocations: 4 kB / 474.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.1707, allocations: 8 kB / 474.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.1707, allocations: 4 kB / 474.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007719/0.1715, allocations: 215.7 kB / 474.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008316/0.1723, allocations: 0.6623 MB / 475.2 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008714/0.1732, allocations: 233.2 kB / 475.4 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.694e-05/0.1733, allocations: 65.66 kB / 475.5 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3512/0.5245, allocations: 64.22 MB / 0.5271 GB, free: 92.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.5246, allocations: 39.28 kB / 0.5271 GB, free: 92.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.244e-06/0.5246, allocations: 0 / 0.5271 GB, free: 92.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001833/0.5264, allocations: 369.4 kB / 0.5274 GB, free: 92.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.5265, allocations: 82.06 kB / 0.5275 GB, free: 92.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.5266, allocations: 131.2 kB / 0.5276 GB, free: 92.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.5266, allocations: 30.39 kB / 0.5277 GB, free: 92.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.5267, allocations: 98.61 kB / 0.5278 GB, free: 92.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.527e-05/0.5267, allocations: 51.98 kB / 0.5278 GB, free: 92.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.5268, allocations: 60.48 kB / 0.5279 GB, free: 92.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.684e-05/0.5269, allocations: 320.9 kB / 0.5282 GB, free: 92.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.527, allocations: 57.72 kB / 0.5282 GB, free: 92.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.5272, allocations: 89.02 kB / 0.5283 GB, free: 92.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.5275, allocations: 151.2 kB / 0.5285 GB, free: 92.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.5275, allocations: 0 / 0.5285 GB, free: 92.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004616/0.528, allocations: 215.8 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.528, allocations: 9.203 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.528, allocations: 6.156 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.5281, allocations: 1.375 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.5283, allocations: 50.05 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.5283, allocations: 2.031 kB / 0.5287 GB, free: 92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.5284, allocations: 15.55 kB / 0.5288 GB, free: 91.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.5285, allocations: 18.59 kB / 0.5288 GB, free: 91.99 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 9.021e-05/0.5286, allocations: 129.5 kB / 0.5289 GB, free: 91.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.37e-05/0.5287, allocations: 9.922 kB / 0.5289 GB, free: 91.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002192/0.5309, allocations: 2.107 MB / 0.531 GB, free: 90.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.5309, allocations: 5.641 kB / 0.531 GB, free: 90.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.5309, allocations: 1.812 kB / 0.531 GB, free: 90.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.5309, allocations: 3.641 kB / 0.531 GB, free: 90.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009574/0.5319, allocations: 1.05 MB / 0.532 GB, free: 90.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5319, allocations: 0 / 0.532 GB, free: 90.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.5322, allocations: 37.39 kB / 0.532 GB, free: 90.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.5322, allocations: 1.156 kB / 0.532 GB, free: 90.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.5322, allocations: 10.38 kB / 0.532 GB, free: 90.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5322, allocations: 1.125 kB / 0.532 GB, free: 90.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.5322, allocations: 1.844 kB / 0.532 GB, free: 90.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006799/0.5329, allocations: 0.648 MB / 0.5327 GB, free: 89.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.42e-05/0.533, allocations: 100.5 kB / 0.5328 GB, free: 89.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.533, allocations: 10 kB / 0.5328 GB, free: 89.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.5332, allocations: 2.031 kB / 0.5328 GB, free: 89.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.5332, allocations: 13.98 kB / 0.5328 GB, free: 89.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.5332, allocations: 4.875 kB / 0.5328 GB, free: 89.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.788e-05/0.5333, allocations: 102 kB / 0.5329 GB, free: 89.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5333, allocations: 0 / 0.5329 GB, free: 89.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002595/0.5359, allocations: 0.9057 MB / 0.5338 GB, free: 89.46 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.003705/0.5396, allocations: 1.112 MB / 0.5349 GB, free: 89.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004535/0.5401, allocations: 204.5 kB / 0.5351 GB, free: 89.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.5401, allocations: 0 / 0.5351 GB, free: 89.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.5403, allocations: 160 kB / 0.5352 GB, free: 89.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006728/0.541, allocations: 71.95 kB / 0.5353 GB, free: 89.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.542, allocations: 0.5877 MB / 0.5359 GB, free: 88.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.5423, allocations: 0.7333 MB / 0.5366 GB, free: 88.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.5424, allocations: 36.31 kB / 0.5366 GB, free: 88 MB / 414.1 MB Notification: Performance of SimCode: time 2.4e-07/0.5424, allocations: 0.5938 kB / 0.5366 GB, free: 88 MB / 414.1 MB Notification: Performance of Templates: time 0.02291/0.5653, allocations: 18.66 MB / 0.5548 GB, free: 72.14 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)