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.009533/0.009533, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001904/0.001904, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.362/1.362, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04507/0.04507, allocations: 9.097 MB / 279 MB, free: 12.08 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.001407/0.001407, allocations: 68.45 kB / 387.5 MB, free: 7.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2556, allocations: 48.15 MB / 435.6 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02046/0.2761, allocations: 17.36 MB / 453 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01555/0.2917, allocations: 16.8 MB / 469.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.171e-05/0.2918, allocations: 0 / 469.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006986/0.2925, allocations: 268.7 kB / 470.1 MB, free: 12.79 MB / 350.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.01566/0.3082, allocations: 6.028 MB / 476.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.3096, allocations: 0.5556 MB / 476.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.3098, allocations: 183 kB / 476.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.201e-05/0.3098, allocations: 5.125 kB / 476.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.31, allocations: 79.64 kB / 476.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.3101, allocations: 59.7 kB / 477 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.3101, allocations: 8 kB / 477 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01746/0.3276, allocations: 9.537 MB / 486.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.365e-05/0.3277, allocations: 15.92 kB / 486.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3279, allocations: 55.67 kB / 486.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.3418, allocations: 4.007 MB / 490.6 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3418, allocations: 0 / 490.6 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3418, allocations: 0 / 490.6 MB, free: 9.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.3418, allocations: 0 / 490.6 MB, free: 9.641 MB / 366.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.001631/0.3435, allocations: 0.8928 MB / 491.5 MB, free: 8.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.3435, allocations: 8.031 kB / 491.5 MB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.3437, allocations: 31.83 kB / 491.5 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.3439, allocations: 198.8 kB / 491.7 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.3439, allocations: 4 kB / 491.7 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.022e-05/0.3439, allocations: 4 kB / 491.7 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.3441, allocations: 131.3 kB / 491.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3442, allocations: 3.938 kB / 491.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.3442, allocations: 8 kB / 491.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.3442, allocations: 7.938 kB / 491.9 MB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.3443, allocations: 99.89 kB / 492 MB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006183/0.345, allocations: 0.5698 MB / 492.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.3452, allocations: 129.1 kB / 492.7 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.3453, allocations: 81.7 kB / 492.7 MB, free: 7.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06107/0.4064, allocations: 33.17 MB / 0.5136 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.758e-05/0.4065, allocations: 30.56 kB / 0.5136 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 4.949e-06/0.4065, allocations: 0 / 0.5136 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009529/0.4075, allocations: 237.2 kB / 0.5138 GB, free: 316 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.938e-05/0.4076, allocations: 77.11 kB / 0.5139 GB, free: 220 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.4078, allocations: 117.8 kB / 0.514 GB, free: 92 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.4078, allocations: 25.7 kB / 0.514 GB, free: 60 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.952e-05/0.4079, allocations: 100.5 kB / 0.5141 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.35e-05/0.408, allocations: 70.91 kB / 0.5142 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.4081, allocations: 37.7 kB / 0.5142 GB, free: 15.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4082, allocations: 330.8 kB / 0.5146 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.391e-05/0.4083, allocations: 47.92 kB / 0.5146 GB, free: 15.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.913e-05/0.4084, allocations: 69.69 kB / 0.5147 GB, free: 15.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.4086, allocations: 125.8 kB / 0.5148 GB, free: 15.26 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4086, allocations: 0 / 0.5148 GB, free: 15.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002511/0.4088, allocations: 165.4 kB / 0.5149 GB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.4089, allocations: 8 kB / 0.515 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.4089, allocations: 0 / 0.515 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4089, allocations: 0 / 0.515 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.364e-05/0.409, allocations: 16.38 kB / 0.515 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.409, allocations: 3.984 kB / 0.515 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.574e-05/0.4091, allocations: 19.97 kB / 0.515 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.4091, allocations: 4 kB / 0.515 GB, free: 15.04 MB / 414.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 0.0001079/0.4092, allocations: 133.6 kB / 0.5151 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/0.4093, allocations: 11.91 kB / 0.5151 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004591/0.4098, allocations: 317.6 kB / 0.5154 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002789/0.41, allocations: 241.4 kB / 0.5157 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4101, allocations: 4 kB / 0.5157 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4101, allocations: 3.984 kB / 0.5157 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009383/0.411, allocations: 0.7501 MB / 0.5164 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.411, allocations: 0 / 0.5164 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.4112, allocations: 43.92 kB / 0.5165 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.4112, allocations: 4 kB / 0.5165 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.4112, allocations: 0 / 0.5165 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4112, allocations: 4.156 kB / 0.5165 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4112, allocations: 0 / 0.5165 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.4118, allocations: 0.5375 MB / 0.517 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.4119, allocations: 96.88 kB / 0.5171 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.4119, allocations: 8 kB / 0.5171 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.412, allocations: 4 kB / 0.5171 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.4121, allocations: 11.98 kB / 0.5171 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.4121, allocations: 8 kB / 0.5171 GB, free: 12.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.552e-05/0.4122, allocations: 99.2 kB / 0.5172 GB, free: 12.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4122, allocations: 4.062 kB / 0.5172 GB, free: 12.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002484/0.4147, allocations: 0.933 MB / 0.5181 GB, free: 11.74 MB / 414.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.003344/0.418, allocations: 1.417 MB / 0.5195 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004167/0.4185, allocations: 247.2 kB / 0.5197 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4185, allocations: 8 kB / 0.5197 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.4186, allocations: 120.6 kB / 0.5199 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009569/0.4196, allocations: 144.7 kB / 0.52 GB, free: 9.789 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007439/0.4204, allocations: 485.1 kB / 0.5205 GB, free: 9.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.4206, allocations: 0.7328 MB / 0.5212 GB, free: 8.523 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.4208, allocations: 45.89 kB / 0.5212 GB, free: 8.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.979e-05/0.4208, allocations: 31.44 kB / 0.5212 GB, free: 8.449 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4208, allocations: 0 / 0.5212 GB, free: 8.449 MB / 414.1 MB Notification: Performance of Templates: time 0.0355/0.4563, allocations: 27.96 MB / 0.5486 GB, free: 12.49 MB / 446.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)