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.0009787/0.0009786, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001018/0.001018, allocations: 188.1 kB / 16.13 MB, free: 6.652 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.266/1.266, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04275/0.04275, allocations: 9.085 MB / 278.4 MB, free: 12.37 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.001199/0.001199, allocations: 55.92 kB / 337.3 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07307/0.07428, allocations: 48.17 MB / 385.5 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01759/0.09191, allocations: 17.66 MB / 403.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01513/0.1071, allocations: 17.24 MB / 420.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.166e-05/0.1072, allocations: 4 kB / 420.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007417/0.108, allocations: 259.5 kB / 420.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01366/0.1217, allocations: 5.252 MB / 425.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.1229, allocations: 489.7 kB / 426.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.1231, allocations: 195 kB / 426.6 MB, free: 468 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.226e-05/0.1232, allocations: 9.109 kB / 426.6 MB, free: 456 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.1233, allocations: 87.53 kB / 426.7 MB, free: 368 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.299e-05/0.1234, allocations: 67.7 kB / 426.7 MB, free: 300 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.1235, allocations: 0 / 426.7 MB, free: 300 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1624/0.2858, allocations: 9.144 MB / 435.9 MB, free: 18.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.2859, allocations: 10.38 kB / 435.9 MB, free: 18.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.286, allocations: 60.94 kB / 436 MB, free: 18.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.2967, allocations: 3.883 MB / 439.8 MB, free: 18.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2967, allocations: 0 / 439.8 MB, free: 18.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2967, allocations: 1.969 kB / 439.8 MB, free: 18.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.2968, allocations: 2.438 kB / 439.8 MB, free: 18.26 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.001912/0.2987, allocations: 0.8933 MB / 440.7 MB, free: 17.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2987, allocations: 10.25 kB / 440.7 MB, free: 17.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.2989, allocations: 27.45 kB / 440.8 MB, free: 17.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.2991, allocations: 199.4 kB / 441 MB, free: 17.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.2991, allocations: 2.875 kB / 441 MB, free: 17.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.2991, allocations: 8.219 kB / 441 MB, free: 17.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.2993, allocations: 130.8 kB / 441.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2993, allocations: 0 / 441.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2993, allocations: 1.438 kB / 441.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2993, allocations: 8.203 kB / 441.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.2995, allocations: 98.83 kB / 441.2 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004934/0.3, allocations: 0.5793 MB / 441.8 MB, free: 16.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.3002, allocations: 123.2 kB / 441.9 MB, free: 16.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.262e-05/0.3003, allocations: 84.72 kB / 442 MB, free: 16.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05567/0.356, allocations: 33.17 MB / 475.2 MB, free: 17.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.356, allocations: 38.19 kB / 475.2 MB, free: 17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.374e-06/0.3561, allocations: 0 / 475.2 MB, free: 17 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005711/0.3566, allocations: 228.4 kB / 475.4 MB, free: 16.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.3567, allocations: 78.8 kB / 475.5 MB, free: 16.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.3568, allocations: 128.3 kB / 475.6 MB, free: 16.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.3568, allocations: 32.64 kB / 475.7 MB, free: 16.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.3568, allocations: 88.27 kB / 475.7 MB, free: 16.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.3569, allocations: 80.53 kB / 475.8 MB, free: 16.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-05/0.3569, allocations: 39.67 kB / 475.9 MB, free: 16.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.077e-05/0.357, allocations: 318.7 kB / 476.2 MB, free: 16.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.084e-05/0.3571, allocations: 43.58 kB / 476.2 MB, free: 16.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.115e-05/0.3572, allocations: 71.72 kB / 476.3 MB, free: 16.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.3573, allocations: 120 kB / 476.4 MB, free: 16.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3573, allocations: 6.406 kB / 476.4 MB, free: 16.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001997/0.3575, allocations: 168.8 kB / 476.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.3576, allocations: 6.719 kB / 476.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3576, allocations: 0 / 476.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3576, allocations: 0 / 476.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.3e-05/0.3577, allocations: 18.83 kB / 476.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3577, allocations: 3.344 kB / 476.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.596e-05/0.3578, allocations: 15.16 kB / 476.6 MB, free: 16.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.3578, allocations: 10.02 kB / 476.6 MB, free: 16.1 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 8.695e-05/0.3579, allocations: 123.6 kB / 476.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.3579, allocations: 11.03 kB / 476.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003728/0.3583, allocations: 304 kB / 477.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002375/0.3586, allocations: 243.2 kB / 477.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3586, allocations: 4 kB / 477.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3586, allocations: 7.922 kB / 477.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007627/0.3594, allocations: 0.7554 MB / 478.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3594, allocations: 0 / 478.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.3595, allocations: 41.27 kB / 478.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3595, allocations: 4 kB / 478.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.3596, allocations: 5.562 kB / 478.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3596, allocations: 4 kB / 478.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3596, allocations: 0.75 kB / 478.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004336/0.36, allocations: 0.5259 MB / 478.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.3601, allocations: 100.8 kB / 478.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.3601, allocations: 11.41 kB / 478.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.3602, allocations: 0 / 478.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.556e-05/0.3602, allocations: 15.8 kB / 478.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3603, allocations: 15.88 kB / 478.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.368e-05/0.3603, allocations: 95.14 kB / 478.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3603, allocations: 6.906 kB / 478.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002542/0.3629, allocations: 0.9243 MB / 479.8 MB, free: 13.66 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.003708/0.3666, allocations: 1.42 MB / 481.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003602/0.367, allocations: 262.8 kB / 481.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.367, allocations: 0 / 481.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3671, allocations: 118.8 kB / 481.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008979/0.368, allocations: 137.2 kB / 481.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008001/0.3688, allocations: 0.5385 MB / 482.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.3691, allocations: 0.7292 MB / 483 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.3692, allocations: 53.55 kB / 483.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.3693, allocations: 23.44 kB / 483.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3693, allocations: 0 / 483.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Templates: time 0.0338/0.4031, allocations: 27.72 MB / 0.4988 GB, free: 15.14 MB / 382.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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)