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.001098/0.001098, allocations: 107.6 kB / 16.36 MB, free: 6.285 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.001175/0.001175, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.498/1.498, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0468/0.0468, allocations: 9.108 MB / 279.6 MB, free: 2.961 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.001495/0.001495, allocations: 63.91 kB / 339.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2064, allocations: 48.13 MB / 387.6 MB, free: 51.46 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.01516/0.2216, allocations: 17.37 MB / 405 MB, free: 38.76 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.2336, allocations: 16.8 MB / 421.8 MB, free: 24.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.954e-05/0.2337, allocations: 0 / 421.8 MB, free: 24.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006573/0.2344, allocations: 270.6 kB / 422 MB, free: 24.77 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.01627/0.2507, allocations: 6.042 MB / 428.1 MB, free: 18.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001759/0.2525, allocations: 0.5362 MB / 428.6 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.2527, allocations: 186.9 kB / 428.8 MB, free: 18.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.504e-05/0.2527, allocations: 17.09 kB / 428.8 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.2529, allocations: 75.66 kB / 428.9 MB, free: 18.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.745e-05/0.253, allocations: 51.78 kB / 428.9 MB, free: 18.08 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.253, allocations: 4 kB / 428.9 MB, free: 18.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01339/0.2664, allocations: 9.541 MB / 438.5 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/0.2664, allocations: 19.86 kB / 438.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.967e-05/0.2665, allocations: 51.75 kB / 438.6 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007684/0.2742, allocations: 4.007 MB / 442.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2742, allocations: 0 / 442.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2742, allocations: 4 kB / 442.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2742, allocations: 0 / 442.6 MB, free: 4.426 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.001251/0.2755, allocations: 0.8857 MB / 443.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2755, allocations: 12.03 kB / 443.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.2757, allocations: 31.73 kB / 443.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.2759, allocations: 198.8 kB / 443.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.2759, allocations: 8 kB / 443.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.07e-05/0.2759, allocations: 4 kB / 443.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.2761, allocations: 131.3 kB / 443.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.2761, allocations: 3.938 kB / 443.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.2761, allocations: 4 kB / 443.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.2761, allocations: 7.922 kB / 443.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.2762, allocations: 91.97 kB / 443.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.2767, allocations: 0.5698 MB / 444.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001983/0.2769, allocations: 125.1 kB / 444.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.365e-05/0.277, allocations: 85.7 kB / 444.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05783/0.3348, allocations: 33.18 MB / 477.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.3349, allocations: 46.5 kB / 477.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 2.525e-06/0.3349, allocations: 0 / 477.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006498/0.3356, allocations: 224.7 kB / 478.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.3357, allocations: 85.05 kB / 478.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.923e-05/0.3358, allocations: 117.8 kB / 478.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.3358, allocations: 29.7 kB / 478.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.402e-05/0.3358, allocations: 88.58 kB / 478.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.537e-05/0.3359, allocations: 78.75 kB / 478.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.974e-05/0.336, allocations: 41.7 kB / 478.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3361, allocations: 322.8 kB / 478.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.089e-05/0.3362, allocations: 47.97 kB / 478.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.747e-05/0.3363, allocations: 64.14 kB / 479 MB, free: 10.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.3365, allocations: 120.6 kB / 479.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3365, allocations: 0 / 479.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002494/0.3367, allocations: 165.6 kB / 479.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.3368, allocations: 8 kB / 479.3 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3368, allocations: 0 / 479.3 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3368, allocations: 384 / 479.3 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.606e-05/0.3369, allocations: 27.92 kB / 479.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-06/0.3369, allocations: 4 kB / 479.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.873e-05/0.337, allocations: 7.844 kB / 479.3 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.337, allocations: 15.88 kB / 479.4 MB, free: 9.812 MB / 366.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 9.216e-05/0.3371, allocations: 125.8 kB / 479.5 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.535e-05/0.3372, allocations: 7.906 kB / 479.5 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004429/0.3376, allocations: 311 kB / 479.8 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002787/0.3379, allocations: 246.1 kB / 480 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3379, allocations: 1.125 kB / 480 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3379, allocations: 0 / 480 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009045/0.3388, allocations: 0.7571 MB / 480.8 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3389, allocations: 0 / 480.8 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.339, allocations: 39.98 kB / 480.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.339, allocations: 0 / 480.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3391, allocations: 11.98 kB / 480.8 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3391, allocations: 3.938 kB / 480.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3391, allocations: 3.5 kB / 480.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005402/0.3396, allocations: 0.5273 MB / 481.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.3397, allocations: 96.89 kB / 481.5 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.3397, allocations: 0 / 481.5 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.3399, allocations: 4 kB / 481.5 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.3399, allocations: 19.97 kB / 481.5 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.3399, allocations: 8 kB / 481.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.798e-05/0.34, allocations: 95.22 kB / 481.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.34, allocations: 0 / 481.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002082/0.3421, allocations: 0.9329 MB / 482.5 MB, free: 6.539 MB / 366.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.003576/0.3457, allocations: 1.433 MB / 484 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003614/0.346, allocations: 242.3 kB / 484.2 MB, free: 4.859 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3461, allocations: 0 / 484.2 MB, free: 4.859 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.3462, allocations: 119.9 kB / 484.3 MB, free: 4.742 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008879/0.3471, allocations: 149.4 kB / 484.5 MB, free: 4.602 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007799/0.3479, allocations: 481.3 kB / 484.9 MB, free: 4.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3482, allocations: 0.7367 MB / 485.7 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.3483, allocations: 39.92 kB / 485.7 MB, free: 3.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.554e-05/0.3484, allocations: 23.44 kB / 485.7 MB, free: 3.289 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3484, allocations: 4 kB / 485.7 MB, free: 3.285 MB / 366.1 MB Notification: Performance of Templates: time 0.03692/0.3853, allocations: 27.93 MB / 0.5016 GB, free: 7.414 MB / 398.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 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1)