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.001609/0.001609, allocations: 111 kB / 16.42 MB, free: 6.461 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.001745/0.001745, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.406/1.406, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04979/0.04979, allocations: 9.097 MB / 279.7 MB, free: 2.945 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.001454/0.001454, allocations: 72.09 kB / 388.2 MB, free: 47.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09399/0.09545, allocations: 48.17 MB / 436.3 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01865/0.1141, allocations: 17.36 MB / 453.7 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01686/0.1311, allocations: 16.8 MB / 470.5 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1312, allocations: 7.938 kB / 470.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008807/0.1322, allocations: 295.1 kB / 470.8 MB, free: 5.008 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.01884/0.1511, allocations: 6.361 MB / 477.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001946/0.153, allocations: 0.5947 MB / 477.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003108/0.1533, allocations: 191 kB / 477.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.318e-05/0.1534, allocations: 5.125 kB / 477.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.1536, allocations: 83.64 kB / 478 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.1538, allocations: 59.7 kB / 478.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.1538, allocations: 4 kB / 478.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0206/0.1744, allocations: 9.541 MB / 487.6 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.654e-05/0.1745, allocations: 11.94 kB / 487.6 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.1746, allocations: 63.66 kB / 487.7 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01175/0.1864, allocations: 4.003 MB / 491.7 MB, free: 56 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1864, allocations: 0 / 491.7 MB, free: 56 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1864, allocations: 0 / 491.7 MB, free: 56 kB / 366.1 MB Notification: Performance of Transformations before backend: time 9.467e-06/0.1865, allocations: 0 / 491.7 MB, free: 56 kB / 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.002497/0.189, allocations: 0.8928 MB / 492.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.189, allocations: 8.031 kB / 492.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.1892, allocations: 27.83 kB / 492.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.1895, allocations: 194.8 kB / 492.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.1895, allocations: 12 kB / 492.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.1896, allocations: 4 kB / 492.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.1898, allocations: 130.4 kB / 492.9 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.1898, allocations: 0 / 492.9 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.1898, allocations: 4 kB / 492.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.1898, allocations: 3.938 kB / 493 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.19, allocations: 103.9 kB / 493.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00071/0.1907, allocations: 0.5737 MB / 493.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002416/0.191, allocations: 129.1 kB / 493.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1911, allocations: 77.7 kB / 493.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06408/0.2552, allocations: 33.17 MB / 0.5147 GB, free: 7.004 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.2553, allocations: 34.56 kB / 0.5147 GB, free: 6.961 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 3.466e-06/0.2553, allocations: 0 / 0.5147 GB, free: 6.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.000705/0.256, allocations: 241.2 kB / 0.5149 GB, free: 6.719 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.256, allocations: 77.11 kB / 0.515 GB, free: 6.625 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.2562, allocations: 117.8 kB / 0.5151 GB, free: 6.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.2562, allocations: 29.7 kB / 0.5151 GB, free: 6.465 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.46e-05/0.2563, allocations: 88.56 kB / 0.5152 GB, free: 6.371 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.2564, allocations: 86.78 kB / 0.5153 GB, free: 6.285 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.408e-05/0.2565, allocations: 33.7 kB / 0.5153 GB, free: 6.246 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.2566, allocations: 330.8 kB / 0.5156 GB, free: 5.914 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.906e-05/0.2567, allocations: 47.92 kB / 0.5157 GB, free: 5.867 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.024e-05/0.2568, allocations: 61.69 kB / 0.5157 GB, free: 5.801 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.257, allocations: 129.6 kB / 0.5159 GB, free: 5.672 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.257, allocations: 0 / 0.5159 GB, free: 5.672 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002586/0.2573, allocations: 161.4 kB / 0.516 GB, free: 5.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.2573, allocations: 4 kB / 0.516 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2573, allocations: 4 kB / 0.516 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.2573, allocations: 4 kB / 0.516 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.484e-05/0.2574, allocations: 19.98 kB / 0.5161 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.2575, allocations: 0 / 0.5161 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.571e-05/0.2575, allocations: 15.84 kB / 0.5161 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.2576, allocations: 4 kB / 0.5161 GB, free: 5.457 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.0001121/0.2577, allocations: 125.7 kB / 0.5162 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.503e-05/0.2578, allocations: 7.906 kB / 0.5162 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004995/0.2583, allocations: 317.9 kB / 0.5165 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.2583, allocations: 3.984 kB / 0.5165 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2583, allocations: 0 / 0.5165 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.132e-05/0.2584, allocations: 92.86 kB / 0.5166 GB, free: 4.891 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.2584, allocations: 8 kB / 0.5166 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.2585, allocations: 4.062 kB / 0.5166 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.258e-05/0.2586, allocations: 11.98 kB / 0.5166 GB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005141/0.2591, allocations: 443.5 kB / 0.517 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006316/0.2597, allocations: 0.6306 MB / 0.5177 GB, free: 3.781 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001536/0.2599, allocations: 131.9 kB / 0.5178 GB, free: 3.652 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.704e-05/0.26, allocations: 95.2 kB / 0.5179 GB, free: 3.559 MB / 414.1 MB Notification: Performance of Backend: time 4.21e-07/0.26, allocations: 0 / 0.5179 GB, free: 3.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005479/0.2655, allocations: 1.679 MB / 0.5195 GB, free: 1.863 MB / 414.1 MB Notification: Performance of SimCode: time 0.001173/0.2666, allocations: 0.9715 MB / 0.5205 GB, free: 0.832 MB / 414.1 MB Notification: Performance of Templates: time 0.2583/0.5249, allocations: 27.92 MB / 0.5477 GB, free: 80.76 MB / 414.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)