Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 108 kB / 15.6 MB, free: 128 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.001738/0.001738, allocations: 199 kB / 16.53 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.389/1.389, 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.04731/0.04731, allocations: 9.11 MB / 278.9 MB, free: 12.17 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.001571/0.001571, allocations: 72.12 kB / 338 MB, free: 25.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08193/0.08351, allocations: 48.17 MB / 386.2 MB, free: 9.227 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01997/0.1035, allocations: 17.35 MB / 403.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01711/0.1207, allocations: 16.8 MB / 420.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.1209, allocations: 0 / 420.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007747/0.1216, allocations: 279.3 kB / 420.6 MB, free: 6.664 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.01574/0.1374, allocations: 6.032 MB / 426.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.1389, allocations: 0.5324 MB / 427.2 MB, free: 88 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1608/0.2996, allocations: 190 kB / 427.4 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.363e-05/0.2998, allocations: 6.781 kB / 427.4 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.3, allocations: 85.11 kB / 427.4 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.3001, allocations: 52.95 kB / 427.5 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.3002, allocations: 2.5 kB / 427.5 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01924/0.3194, allocations: 9.184 MB / 436.7 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.3195, allocations: 8.703 kB / 436.7 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.3196, allocations: 56.58 kB / 436.7 MB, free: 18.42 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.3318, allocations: 4.012 MB / 440.8 MB, free: 18.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3319, allocations: 1.031 kB / 440.8 MB, free: 18.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3319, allocations: 0.875 kB / 440.8 MB, free: 18.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.3319, allocations: 0 / 440.8 MB, free: 18.32 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.002612/0.3345, allocations: 0.8902 MB / 441.7 MB, free: 17.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3346, allocations: 11.94 kB / 441.7 MB, free: 17.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002573/0.3348, allocations: 28 kB / 441.7 MB, free: 17.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.3351, allocations: 200.5 kB / 441.9 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.3351, allocations: 5.75 kB / 441.9 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.3351, allocations: 9.656 kB / 441.9 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.3354, allocations: 125.7 kB / 442 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3354, allocations: 7.562 kB / 442 MB, free: 17.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.3354, allocations: 0 / 442 MB, free: 17.44 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.3354, allocations: 10.25 kB / 442 MB, free: 17.44 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.3356, allocations: 98.16 kB / 442.1 MB, free: 17.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006056/0.3362, allocations: 0.575 MB / 442.7 MB, free: 16.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.3365, allocations: 125.2 kB / 442.8 MB, free: 16.9 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.411e-05/0.3366, allocations: 81.64 kB / 442.9 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05613/0.3927, allocations: 33.17 MB / 476.1 MB, free: 17.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.3928, allocations: 38.11 kB / 476.1 MB, free: 17.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.414e-06/0.3928, allocations: 0 / 476.1 MB, free: 17.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006221/0.3934, allocations: 224.1 kB / 476.3 MB, free: 17.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.3935, allocations: 77.11 kB / 476.4 MB, free: 17.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.523e-05/0.3936, allocations: 134.4 kB / 476.5 MB, free: 17.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3936, allocations: 29.27 kB / 476.6 MB, free: 17.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.3936, allocations: 92.34 kB / 476.7 MB, free: 17.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.971e-05/0.3937, allocations: 76.02 kB / 476.7 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/0.3938, allocations: 35.73 kB / 476.8 MB, free: 16.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3939, allocations: 326.4 kB / 477.1 MB, free: 16.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.824e-05/0.3939, allocations: 39.55 kB / 477.1 MB, free: 16.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.937e-05/0.394, allocations: 79.94 kB / 477.2 MB, free: 16.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.3942, allocations: 116.5 kB / 477.3 MB, free: 16.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3942, allocations: 0 / 477.3 MB, free: 16.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000212/0.3944, allocations: 170.7 kB / 477.5 MB, free: 16.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3944, allocations: 8 kB / 477.5 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3944, allocations: 0 / 477.5 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3944, allocations: 0 / 477.5 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.137e-05/0.3945, allocations: 19.98 kB / 477.5 MB, free: 16.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.3945, allocations: 0 / 477.5 MB, free: 16.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.631e-05/0.3946, allocations: 23.25 kB / 477.5 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.3946, allocations: 9.516 kB / 477.6 MB, free: 16.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (state_p.phase,state_h.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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 prepare postOptimizeDAE: time 8.015e-05/0.3947, allocations: 117.6 kB / 477.7 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.3948, allocations: 11.91 kB / 477.7 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003669/0.3952, allocations: 323.3 kB / 478 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002167/0.3954, allocations: 236.2 kB / 478.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3954, allocations: 3.984 kB / 478.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3954, allocations: 7.266 kB / 478.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007795/0.3962, allocations: 0.763 MB / 479 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3962, allocations: 1.688 kB / 479 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/0.3964, allocations: 35.98 kB / 479 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3964, allocations: 0 / 479 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.3964, allocations: 7.875 kB / 479 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3964, allocations: 6.656 kB / 479.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3964, allocations: 4 kB / 479.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004238/0.3968, allocations: 0.5209 MB / 479.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.87e-05/0.3969, allocations: 100.8 kB / 479.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.3969, allocations: 0 / 479.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.3971, allocations: 7.938 kB / 479.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.469e-05/0.3971, allocations: 15.92 kB / 479.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.3971, allocations: 10.94 kB / 479.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.564e-05/0.3972, allocations: 99.14 kB / 479.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3972, allocations: 0 / 479.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002642/0.3998, allocations: 0.925 MB / 480.7 MB, free: 13.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_h_int,d_p_int) * Number of discrete variables: 4 (state_h.phase,$cse2.phase,state_p.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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.005046/0.4049, allocations: 1.423 MB / 482.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004237/0.4053, allocations: 265.8 kB / 482.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.4053, allocations: 4 kB / 482.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.4055, allocations: 122.7 kB / 482.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000974/0.4065, allocations: 143 kB / 482.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00084/0.4073, allocations: 495.5 kB / 483.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.4076, allocations: 0.7327 MB / 483.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.4078, allocations: 53.83 kB / 483.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.071e-05/0.4079, allocations: 23.44 kB / 484 MB, free: 10.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4079, allocations: 0 / 484 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Templates: time 0.04122/0.4491, allocations: 27.97 MB / 0.4999 GB, free: 14.59 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1)