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.001507/0.001507, allocations: 99.23 kB / 16.23 MB, free: 6.332 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.001734/0.001735, allocations: 188 kB / 17.16 MB, free: 5.941 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.767/1.767, allocations: 205.1 MB / 223 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04876/0.04876, allocations: 9.088 MB / 279.5 MB, free: 3.055 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.001396/0.001397, allocations: 63.91 kB / 338.6 MB, free: 7.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2945, allocations: 48.15 MB / 386.8 MB, free: 51.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01562/0.3101, allocations: 12.82 MB / 399.6 MB, free: 42.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00859/0.3188, allocations: 8.573 MB / 408.2 MB, free: 35.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.319, allocations: 7.938 kB / 408.2 MB, free: 35.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.3193, allocations: 47.05 kB / 408.2 MB, free: 35.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00658/0.3259, allocations: 1.882 MB / 410.1 MB, free: 34.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008577/0.3345, allocations: 2.26 MB / 412.4 MB, free: 32.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.3347, allocations: 132 kB / 412.5 MB, free: 32.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.397e-05/0.3348, allocations: 4.188 kB / 412.5 MB, free: 32.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.061e-05/0.3348, allocations: 39.27 kB / 412.5 MB, free: 32.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.335, allocations: 53.58 kB / 412.6 MB, free: 32.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.335, allocations: 3.875 kB / 412.6 MB, free: 32.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01373/0.3487, allocations: 6.77 MB / 419.4 MB, free: 26.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.814e-05/0.3488, allocations: 15.86 kB / 419.4 MB, free: 26.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.349, allocations: 51.8 kB / 419.4 MB, free: 26.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.3599, allocations: 3.778 MB / 423.2 MB, free: 23.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.36, allocations: 0 / 423.2 MB, free: 23.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.36, allocations: 0 / 423.2 MB, free: 23.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.36, allocations: 4 kB / 423.2 MB, free: 23.14 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.002566/0.3626, allocations: 0.8774 MB / 424.1 MB, free: 22.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.3626, allocations: 12.03 kB / 424.1 MB, free: 22.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00037/0.363, allocations: 44.81 kB / 424.1 MB, free: 22.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.3633, allocations: 200.2 kB / 424.3 MB, free: 21.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.3633, allocations: 8.562 kB / 424.3 MB, free: 21.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.3633, allocations: 15.94 kB / 424.4 MB, free: 21.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008073/0.3641, allocations: 263.1 kB / 424.6 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3641, allocations: 0 / 424.6 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.3642, allocations: 4 kB / 424.6 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.3642, allocations: 7.938 kB / 424.6 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007042/0.3649, allocations: 211.8 kB / 424.8 MB, free: 21.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005992/0.3655, allocations: 0.67 MB / 425.5 MB, free: 20.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008086/0.3663, allocations: 241 kB / 425.7 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.817e-05/0.3664, allocations: 54.39 kB / 425.8 MB, free: 20.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1308/0.4972, allocations: 63.96 MB / 489.8 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.4973, allocations: 44.5 kB / 489.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.806e-06/0.4974, allocations: 4 kB / 489.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001872/0.4992, allocations: 365.2 kB / 490.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.254e-05/0.4993, allocations: 85.05 kB / 490.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.4995, allocations: 126.1 kB / 490.4 MB, free: 12.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.4996, allocations: 33.69 kB / 490.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.951e-05/0.4997, allocations: 92.05 kB / 490.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.491e-05/0.4997, allocations: 55.2 kB / 490.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.4998, allocations: 61.67 kB / 490.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.5, allocations: 322.8 kB / 490.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.5001, allocations: 51.97 kB / 491 MB, free: 11.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.5003, allocations: 88.17 kB / 491.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.5006, allocations: 155.9 kB / 491.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.5006, allocations: 0 / 491.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005066/0.5011, allocations: 213.4 kB / 491.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.5012, allocations: 4 kB / 491.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.5012, allocations: 3.938 kB / 491.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.5012, allocations: 4 kB / 491.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.5015, allocations: 55.89 kB / 491.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.5015, allocations: 7.938 kB / 491.5 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.5016, allocations: 15.83 kB / 491.5 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.5017, allocations: 15.98 kB / 491.5 MB, free: 10.87 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.0001199/0.5018, allocations: 125.8 kB / 491.6 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-05/0.5019, allocations: 11.91 kB / 491.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002374/0.5043, allocations: 2.107 MB / 493.8 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.5043, allocations: 8 kB / 493.8 MB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5043, allocations: 0 / 493.8 MB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.5043, allocations: 3.984 kB / 493.8 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009916/0.5053, allocations: 1.049 MB / 494.8 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.5053, allocations: 0 / 494.8 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.5056, allocations: 31.97 kB / 494.8 MB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.5056, allocations: 0 / 494.8 MB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.5056, allocations: 7.922 kB / 494.9 MB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.5056, allocations: 4 kB / 494.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.5056, allocations: 1.125 kB / 494.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007673/0.5064, allocations: 0.6449 MB / 495.5 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.403e-05/0.5065, allocations: 104.8 kB / 495.6 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.5065, allocations: 3.938 kB / 495.6 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.5067, allocations: 4 kB / 495.6 MB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.5067, allocations: 15.97 kB / 495.6 MB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.5067, allocations: 4 kB / 495.6 MB, free: 6.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.266e-05/0.5068, allocations: 105.7 kB / 495.7 MB, free: 6.496 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5068, allocations: 0 / 495.7 MB, free: 6.496 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002986/0.5098, allocations: 0.9097 MB / 496.6 MB, free: 5.586 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.00549/0.5153, allocations: 1.1 MB / 497.7 MB, free: 4.484 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005775/0.5159, allocations: 227.8 kB / 498 MB, free: 4.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5159, allocations: 0 / 498 MB, free: 4.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000215/0.5162, allocations: 159.8 kB / 498.1 MB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000745/0.5169, allocations: 69.62 kB / 498.2 MB, free: 4.043 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.5181, allocations: 0.5934 MB / 498.8 MB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.5184, allocations: 0.7328 MB / 499.5 MB, free: 2.664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.5186, allocations: 35.42 kB / 499.6 MB, free: 2.633 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.5186, allocations: 0 / 499.6 MB, free: 2.633 MB / 382.1 MB Notification: Performance of Templates: time 0.03152/0.5501, allocations: 18.68 MB / 0.5061 GB, free: 15.95 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)