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.001509/0.001509, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 198 kB / 16.54 MB, free: 6.672 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 / 222.4 MB, free: 4.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04458/0.04458, allocations: 9.102 MB / 278.9 MB, free: 12.18 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.001335/0.001335, allocations: 75.88 kB / 338 MB, free: 25.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07382/0.07516, allocations: 48.17 MB / 386.2 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01432/0.08952, allocations: 12.82 MB / 399 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009004/0.09855, allocations: 8.568 MB / 407.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.254e-05/0.09868, allocations: 0 / 407.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000194/0.09892, allocations: 51.7 kB / 407.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004272/0.1032, allocations: 1.882 MB / 409.5 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005417/0.1086, allocations: 2.257 MB / 411.8 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001513/0.1088, allocations: 127.2 kB / 411.9 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.277e-05/0.1088, allocations: 11.97 kB / 411.9 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.301e-05/0.1089, allocations: 43.81 kB / 412 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.011e-05/0.109, allocations: 47.78 kB / 412 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.109, allocations: 4 kB / 412 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01124/0.1203, allocations: 6.77 MB / 418.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.877e-05/0.1203, allocations: 19.91 kB / 418.8 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.523e-05/0.1204, allocations: 47.8 kB / 418.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007774/0.1282, allocations: 3.782 MB / 422.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1282, allocations: 4 kB / 422.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1282, allocations: 0 / 422.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1283, allocations: 0 / 422.6 MB, free: 4.68 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.00221/0.1305, allocations: 0.8736 MB / 423.5 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.1305, allocations: 12.03 kB / 423.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003361/0.1309, allocations: 40.81 kB / 423.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.1311, allocations: 208.1 kB / 423.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.1311, allocations: 8.562 kB / 423.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.1311, allocations: 15.94 kB / 423.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008288/0.132, allocations: 255.2 kB / 424 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.132, allocations: 4 kB / 424 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.132, allocations: 4 kB / 424 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.132, allocations: 4 kB / 424 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007612/0.1328, allocations: 215.7 kB / 424.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000716/0.1335, allocations: 0.674 MB / 424.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008681/0.1344, allocations: 241 kB / 425.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.1345, allocations: 61.66 kB / 425.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2596/0.3941, allocations: 63.95 MB / 489.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.3942, allocations: 30.56 kB / 489.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.774e-06/0.3942, allocations: 4 kB / 489.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001738/0.396, allocations: 372.7 kB / 489.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.3961, allocations: 85.11 kB / 489.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.3962, allocations: 126.1 kB / 489.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.3962, allocations: 29.7 kB / 489.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.237e-05/0.3963, allocations: 100.6 kB / 489.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.3964, allocations: 48.14 kB / 489.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3965, allocations: 61.67 kB / 490 MB, free: 1.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3966, allocations: 318.8 kB / 490.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.3968, allocations: 59.95 kB / 490.4 MB, free: 1.035 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.3969, allocations: 91.3 kB / 490.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.3973, allocations: 140.1 kB / 490.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3973, allocations: 4 kB / 490.6 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005019/0.3978, allocations: 217.7 kB / 490.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.3978, allocations: 11.94 kB / 490.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3978, allocations: 0 / 490.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.3979, allocations: 0 / 490.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.3981, allocations: 59.8 kB / 490.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.3981, allocations: 0 / 490.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.3983, allocations: 15.23 kB / 490.9 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-05/0.3983, allocations: 19.98 kB / 490.9 MB, free: 492 kB / 334.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.000121/0.3984, allocations: 119.6 kB / 491 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.3985, allocations: 15.83 kB / 491.1 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00217/0.4007, allocations: 2.103 MB / 493.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.4007, allocations: 13.67 kB / 493.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4008, allocations: 1.75 kB / 493.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4008, allocations: 2.016 kB / 493.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009885/0.4018, allocations: 1.047 MB / 494.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4018, allocations: 3.938 kB / 494.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002207/0.402, allocations: 35.95 kB / 494.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.402, allocations: 7.938 kB / 494.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.402, allocations: 0 / 494.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.402, allocations: 0 / 494.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4021, allocations: 0 / 494.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007287/0.4028, allocations: 0.6455 MB / 494.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.939e-05/0.4029, allocations: 108.7 kB / 495 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.4029, allocations: 4.5 kB / 495 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.4031, allocations: 7.562 kB / 495 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.711e-05/0.4031, allocations: 10.72 kB / 495 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.4031, allocations: 4 kB / 495 MB, free: 12.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.644e-05/0.4032, allocations: 106 kB / 495.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4032, allocations: 8 kB / 495.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002725/0.4059, allocations: 0.9042 MB / 496.1 MB, free: 11.28 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.003969/0.4099, allocations: 1.095 MB / 497.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005301/0.4105, allocations: 215.8 kB / 497.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.4105, allocations: 8 kB / 497.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.4107, allocations: 155.9 kB / 497.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006661/0.4114, allocations: 67.45 kB / 497.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.4124, allocations: 0.5668 MB / 498.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.4128, allocations: 0.7405 MB / 498.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005107/0.4133, allocations: 374.1 kB / 499.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.4135, allocations: 35.42 kB / 499.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4135, allocations: 0 / 499.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of Templates: time 0.04513/0.4586, allocations: 33.72 MB / 0.5205 GB, free: 6.387 MB / 382.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)