Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.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.CheckDerivativesButane,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane") translateModel(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001333/0.001333, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.382/1.382, 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.04663/0.04663, allocations: 9.099 MB / 279.6 MB, free: 2.969 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.001542/0.001542, allocations: 71.91 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2349, allocations: 48.15 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01721/0.2521, allocations: 17.4 MB / 405 MB, free: 38.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.2646, allocations: 16.92 MB / 422 MB, free: 24.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.2649, allocations: 0 / 422 MB, free: 24.85 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007417/0.2656, allocations: 286.1 kB / 422.2 MB, free: 24.65 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.01361/0.2792, allocations: 6.123 MB / 428.4 MB, free: 18.69 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.2805, allocations: 0.5635 MB / 428.9 MB, free: 18.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.2807, allocations: 203 kB / 429.1 MB, free: 17.92 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.82e-05/0.2807, allocations: 9.062 kB / 429.1 MB, free: 17.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.2808, allocations: 95.56 kB / 429.2 MB, free: 17.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.164e-05/0.2809, allocations: 59.72 kB / 429.3 MB, free: 17.76 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.281, allocations: 8 kB / 429.3 MB, free: 17.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0137/0.2947, allocations: 9.931 MB / 439.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.601e-05/0.2947, allocations: 15.92 kB / 439.2 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.346e-05/0.2948, allocations: 55.67 kB / 439.3 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009589/0.3044, allocations: 4.015 MB / 443.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3045, allocations: 0 / 443.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3045, allocations: 0 / 443.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.3045, allocations: 4 kB / 443.3 MB, free: 3.703 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.001777/0.3063, allocations: 0.8973 MB / 444.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3063, allocations: 8.031 kB / 444.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.3065, allocations: 27.73 kB / 444.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.3067, allocations: 187 kB / 444.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.3067, allocations: 8 kB / 444.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.3067, allocations: 8 kB / 444.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.3069, allocations: 135.3 kB / 444.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.3069, allocations: 4 kB / 444.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.998e-06/0.3069, allocations: 0 / 444.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.3069, allocations: 7.922 kB / 444.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.307, allocations: 95.97 kB / 444.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004842/0.3075, allocations: 0.5698 MB / 445.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.3078, allocations: 125.2 kB / 445.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.036e-05/0.3078, allocations: 85.64 kB / 445.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05899/0.3668, allocations: 33.18 MB / 478.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/0.3669, allocations: 38.56 kB / 478.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 2.985e-06/0.3669, allocations: 0 / 478.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006606/0.3676, allocations: 225.2 kB / 478.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.3677, allocations: 81.11 kB / 479 MB, free: 10.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.917e-05/0.3678, allocations: 122.1 kB / 479.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.3678, allocations: 33.7 kB / 479.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.3679, allocations: 84.58 kB / 479.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/0.3679, allocations: 78.84 kB / 479.3 MB, free: 9.934 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.463e-05/0.368, allocations: 41.64 kB / 479.3 MB, free: 9.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.3681, allocations: 322.8 kB / 479.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.293e-05/0.3682, allocations: 47.97 kB / 479.7 MB, free: 9.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.57e-05/0.3683, allocations: 70.56 kB / 479.7 MB, free: 9.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.3685, allocations: 128.1 kB / 479.9 MB, free: 9.312 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3685, allocations: 0 / 479.9 MB, free: 9.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002819/0.3688, allocations: 166.6 kB / 480 MB, free: 9.148 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3688, allocations: 4 kB / 480 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3688, allocations: 0 / 480 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.3688, allocations: 4 kB / 480 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.322e-05/0.3689, allocations: 23.98 kB / 480.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3689, allocations: 0 / 480.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.357e-05/0.369, allocations: 15.84 kB / 480.1 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.369, allocations: 4 kB / 480.1 MB, free: 9.098 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.769e-05/0.3691, allocations: 133.7 kB / 480.2 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.3692, allocations: 7.906 kB / 480.2 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004645/0.3697, allocations: 309.8 kB / 480.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002883/0.37, allocations: 246.1 kB / 480.8 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.37, allocations: 4 kB / 480.8 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.37, allocations: 0 / 480.8 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008802/0.3709, allocations: 0.7467 MB / 481.5 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3709, allocations: 0 / 481.5 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.3711, allocations: 49.67 kB / 481.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3711, allocations: 0 / 481.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.3711, allocations: 11.98 kB / 481.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.3711, allocations: 4 kB / 481.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3711, allocations: 0 / 481.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005317/0.3716, allocations: 0.5234 MB / 482.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.3717, allocations: 108.7 kB / 482.2 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.3717, allocations: 0 / 482.2 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.3719, allocations: 8 kB / 482.2 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.3719, allocations: 19.97 kB / 482.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.3719, allocations: 8.062 kB / 482.2 MB, free: 6.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.118e-05/0.372, allocations: 91.28 kB / 482.3 MB, free: 6.742 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.372, allocations: 0 / 482.3 MB, free: 6.742 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002227/0.3742, allocations: 0.9252 MB / 483.3 MB, free: 5.816 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.003372/0.3776, allocations: 1.41 MB / 484.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003948/0.378, allocations: 250.3 kB / 484.9 MB, free: 4.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.378, allocations: 7.938 kB / 484.9 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.3782, allocations: 123.9 kB / 485 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008831/0.3791, allocations: 150.2 kB / 485.2 MB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008346/0.3799, allocations: 476.8 kB / 485.7 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.3802, allocations: 0.7328 MB / 486.4 MB, free: 2.637 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.3804, allocations: 50.7 kB / 486.4 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.814e-05/0.3804, allocations: 27.44 kB / 486.5 MB, free: 2.562 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3804, allocations: 0 / 486.5 MB, free: 2.562 MB / 366.1 MB Notification: Performance of Templates: time 0.03703/0.4175, allocations: 27.91 MB / 0.5023 GB, free: 6.711 MB / 398.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)