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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001738/0.001738, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05875/0.05875, allocations: 9.093 MB / 25.82 MB, free: 3.41 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.1 MB / 233.2 MB, free: 14.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009631/0.0009631, allocations: 97.67 kB / 282.1 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009955/0.0009955, allocations: 47.92 kB / 341.1 MB, free: 4.078 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.2002, allocations: 48.16 MB / 389.2 MB, free: 38.53 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01199/0.2122, allocations: 13.64 MB / 402.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007562/0.2198, allocations: 9.328 MB / 412.2 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.282e-05/0.2199, allocations: 0 / 412.2 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.2201, allocations: 43.83 kB / 412.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003334/0.2235, allocations: 1.463 MB / 413.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004529/0.228, allocations: 1.788 MB / 415.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.2281, allocations: 123.2 kB / 415.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.809e-05/0.2282, allocations: 4 kB / 415.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.361e-05/0.2282, allocations: 43.84 kB / 415.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.608e-05/0.2283, allocations: 51.73 kB / 415.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.2283, allocations: 0 / 415.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008842/0.2372, allocations: 6.852 MB / 422.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.98e-05/0.2372, allocations: 19.86 kB / 422.6 MB, free: 5.078 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.2373, allocations: 43.81 kB / 422.6 MB, free: 5.035 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005341/0.2426, allocations: 3.797 MB / 426.4 MB, free: 1.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2426, allocations: 0 / 426.4 MB, free: 1.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2426, allocations: 0 / 426.4 MB, free: 1.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2427, allocations: 0 / 426.4 MB, free: 1.23 MB / 298.7 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.001851/0.2445, allocations: 0.8736 MB / 427.3 MB, free: 316 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.2446, allocations: 11.97 kB / 427.3 MB, free: 304 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003211/0.2449, allocations: 44.8 kB / 427.4 MB, free: 260 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.245, allocations: 208.2 kB / 427.6 MB, free: 12 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.2451, allocations: 8.562 kB / 427.6 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.2451, allocations: 11.98 kB / 427.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008122/0.2459, allocations: 259.1 kB / 427.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.246, allocations: 0 / 427.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.246, allocations: 8 kB / 427.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.246, allocations: 4 kB / 427.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007336/0.2467, allocations: 207.8 kB / 428 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006816/0.2474, allocations: 0.67 MB / 428.7 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008267/0.2483, allocations: 245 kB / 429 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.204e-05/0.2484, allocations: 53.64 kB / 429 MB, free: 14.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1291/0.3775, allocations: 63.96 MB / 493 MB, free: 6.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.3776, allocations: 42.55 kB / 493 MB, free: 6.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.314e-06/0.3776, allocations: 0 / 493 MB, free: 6.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.001629/0.3792, allocations: 369.1 kB / 493.4 MB, free: 6.402 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.3793, allocations: 81.11 kB / 493.5 MB, free: 6.305 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3794, allocations: 130 kB / 493.6 MB, free: 6.168 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.3794, allocations: 29.7 kB / 493.6 MB, free: 6.133 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.425e-05/0.3795, allocations: 96.03 kB / 493.7 MB, free: 6.035 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/0.3796, allocations: 63.19 kB / 493.8 MB, free: 5.973 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.622e-05/0.3797, allocations: 53.69 kB / 493.8 MB, free: 5.914 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3798, allocations: 322.8 kB / 494.1 MB, free: 5.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.3799, allocations: 55.95 kB / 494.2 MB, free: 5.535 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.3801, allocations: 89.89 kB / 494.3 MB, free: 5.438 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.3804, allocations: 144 kB / 494.4 MB, free: 5.285 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3804, allocations: 0 / 494.4 MB, free: 5.285 MB / 378.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004773/0.3809, allocations: 221.4 kB / 494.6 MB, free: 5.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3809, allocations: 4 kB / 494.6 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3809, allocations: 3.938 kB / 494.6 MB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.3809, allocations: 4 kB / 494.6 MB, free: 5.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.3812, allocations: 55.89 kB / 494.7 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.3812, allocations: 7.938 kB / 494.7 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.3813, allocations: 15.91 kB / 494.7 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.3814, allocations: 15.98 kB / 494.7 MB, free: 4.957 MB / 378.7 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.3815, allocations: 117.8 kB / 494.9 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.208e-05/0.3815, allocations: 15.84 kB / 494.9 MB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.3834, allocations: 2.1 MB / 497 MB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.3834, allocations: 11.98 kB / 497 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3835, allocations: 0 / 497 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3835, allocations: 7.938 kB / 497 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008808/0.3843, allocations: 1.048 MB / 498 MB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3844, allocations: 4 kB / 498 MB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/0.3846, allocations: 35.95 kB / 498.1 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3846, allocations: 0 / 498.1 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.3846, allocations: 7.938 kB / 498.1 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3846, allocations: 4 kB / 498.1 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3846, allocations: 0 / 498.1 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2865/0.6711, allocations: 46.53 MB / 0.5318 GB, free: 101.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.6712, allocations: 92.89 kB / 0.5319 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.6712, allocations: 16.05 kB / 0.532 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.6714, allocations: 0 / 0.532 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.665e-05/0.6714, allocations: 12 kB / 0.532 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.6714, allocations: 7.984 kB / 0.532 GB, free: 101.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.621e-05/0.6715, allocations: 99.27 kB / 0.5321 GB, free: 101.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6715, allocations: 0 / 0.5321 GB, free: 101.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002213/0.6737, allocations: 0.9524 MB / 0.533 GB, free: 100.5 MB / 394.7 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.00336/0.6771, allocations: 1.097 MB / 0.5341 GB, free: 99.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004193/0.6775, allocations: 211.3 kB / 0.5343 GB, free: 99.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6775, allocations: 0 / 0.5343 GB, free: 99.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.6777, allocations: 160.4 kB / 0.5344 GB, free: 99.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.6783, allocations: 64 kB / 0.5345 GB, free: 99.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.6793, allocations: 0.8858 MB / 0.5353 GB, free: 98.17 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.6795, allocations: 0.7523 MB / 0.5361 GB, free: 97.39 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003849/0.6799, allocations: 376.6 kB / 0.5364 GB, free: 97.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.68, allocations: 35.42 kB / 0.5365 GB, free: 96.99 MB / 394.7 MB Notification: Performance of SimCode: time 2.1e-07/0.68, allocations: 0 / 0.5365 GB, free: 96.99 MB / 394.7 MB Notification: Performance of Templates: time 0.03291/0.713, allocations: 35.13 MB / 0.5708 GB, free: 61.84 MB / 394.7 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)