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.0008069/0.000807, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005403/0.005404, allocations: 170.2 kB / 16.26 MB, free: 6.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.348/1.348, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04572/0.04572, allocations: 9.065 MB / 279.8 MB, free: 12.15 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.0005127/0.0005129, allocations: 16.2 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07161/0.07214, allocations: 49.2 MB / 388.9 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01784/0.09001, allocations: 17.14 MB / 406.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01675/0.1068, allocations: 17.06 MB / 423.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.107, allocations: 0 / 423.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007569/0.1077, allocations: 251.6 kB / 423.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01405/0.1218, allocations: 5.279 MB / 428.7 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.1231, allocations: 477.7 kB / 429.1 MB, free: 76 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1507/0.2739, allocations: 199.4 kB / 429.3 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.964e-05/0.274, allocations: 6.844 kB / 429.3 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.2742, allocations: 91.41 kB / 429.4 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.2743, allocations: 55.36 kB / 429.5 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.556e-05/0.2743, allocations: 2.75 kB / 429.5 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01572/0.29, allocations: 9.146 MB / 438.6 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.2901, allocations: 16.5 kB / 438.6 MB, free: 18.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2902, allocations: 81.34 kB / 438.7 MB, free: 18.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009665/0.2999, allocations: 3.878 MB / 442.6 MB, free: 17.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2999, allocations: 1.156 kB / 442.6 MB, free: 17.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2999, allocations: 1.438 kB / 442.6 MB, free: 17.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.3, allocations: 0 / 442.6 MB, free: 17.99 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.002087/0.302, allocations: 0.8745 MB / 443.5 MB, free: 17.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3021, allocations: 9.031 kB / 443.5 MB, free: 17.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.3023, allocations: 31.23 kB / 443.5 MB, free: 17.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.3025, allocations: 199.3 kB / 443.7 MB, free: 17.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.3025, allocations: 3.594 kB / 443.7 MB, free: 17.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.3026, allocations: 12.61 kB / 443.7 MB, free: 17.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.3027, allocations: 132.1 kB / 443.9 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.3027, allocations: 1.078 kB / 443.9 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3028, allocations: 1.156 kB / 443.9 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3028, allocations: 13.52 kB / 443.9 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.3029, allocations: 99.33 kB / 444 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005153/0.3034, allocations: 0.568 MB / 444.5 MB, free: 16.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.3036, allocations: 130.7 kB / 444.7 MB, free: 16.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.449e-05/0.3037, allocations: 77.53 kB / 444.7 MB, free: 16.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05241/0.3562, allocations: 32.34 MB / 477.1 MB, free: 16.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.483e-05/0.3562, allocations: 34.03 kB / 477.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.086e-06/0.3562, allocations: 4 kB / 477.1 MB, free: 16.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005626/0.3568, allocations: 234.2 kB / 477.3 MB, free: 16.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.3569, allocations: 79.52 kB / 477.4 MB, free: 16.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.535e-05/0.357, allocations: 119.6 kB / 477.5 MB, free: 16.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.357, allocations: 29.52 kB / 477.6 MB, free: 16.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/0.357, allocations: 91.14 kB / 477.7 MB, free: 16.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.046e-05/0.3571, allocations: 82.66 kB / 477.7 MB, free: 16.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.3571, allocations: 25.8 kB / 477.8 MB, free: 16.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.842e-05/0.3572, allocations: 328.6 kB / 478.1 MB, free: 16.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.236e-05/0.3573, allocations: 41.92 kB / 478.1 MB, free: 16.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.608e-05/0.3574, allocations: 63.7 kB / 478.2 MB, free: 16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.3575, allocations: 115.1 kB / 478.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3575, allocations: 3.719 kB / 478.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002119/0.3578, allocations: 166 kB / 478.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3578, allocations: 9.531 kB / 478.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.3578, allocations: 0 / 478.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3578, allocations: 7.984 kB / 478.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.249e-05/0.3579, allocations: 18.62 kB / 478.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.3579, allocations: 0 / 478.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.569e-05/0.358, allocations: 19.12 kB / 478.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.358, allocations: 9.094 kB / 478.5 MB, free: 15.91 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 9.783e-05/0.3581, allocations: 114 kB / 478.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-05/0.3582, allocations: 18.83 kB / 478.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004017/0.3586, allocations: 318.8 kB / 479 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002261/0.3589, allocations: 241.5 kB / 479.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.3589, allocations: 0 / 479.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3589, allocations: 7.438 kB / 479.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008414/0.3597, allocations: 0.7567 MB / 480 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3597, allocations: 0 / 480 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001492/0.3599, allocations: 37.83 kB / 480 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3599, allocations: 4 kB / 480 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.3599, allocations: 7.25 kB / 480 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.3599, allocations: 3.906 kB / 480 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3599, allocations: 0 / 480 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005048/0.3605, allocations: 0.5208 MB / 480.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.806e-05/0.3605, allocations: 100.8 kB / 480.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.3606, allocations: 1.875 kB / 480.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.3607, allocations: 11.25 kB / 480.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.7e-05/0.3607, allocations: 18.22 kB / 480.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.3608, allocations: 9.875 kB / 480.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.991e-05/0.3608, allocations: 99.98 kB / 480.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3608, allocations: 0 / 480.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002659/0.3635, allocations: 0.9229 MB / 481.7 MB, free: 13.67 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.004686/0.3682, allocations: 1.418 MB / 483.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003645/0.3686, allocations: 264.9 kB / 483.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3686, allocations: 0 / 483.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.3687, allocations: 122.1 kB / 483.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.3698, allocations: 135.5 kB / 483.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008434/0.3707, allocations: 0.5775 MB / 484.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.371, allocations: 0.7331 MB / 484.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001519/0.3711, allocations: 50.55 kB / 485 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.843e-05/0.3712, allocations: 23.44 kB / 485 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3712, allocations: 0 / 485 MB, free: 10.64 MB / 350.1 MB Notification: Performance of Templates: time 0.03958/0.4108, allocations: 27.7 MB / 0.5007 GB, free: 15.07 MB / 382.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1) Environment - environmentSimulation: