Running command: translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") Notification: Performance of loadModel(ThermoPower): time 2.135/2.135, allocations: 254.6 MB / 267.7 MB, free: 12.45 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.912e-05/2.921e-05, allocations: 7.984 kB / 330.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.311, allocations: 60.23 MB / 391 MB, free: 4.887 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.4406, allocations: 86.68 MB / 477.7 MB, free: 14.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4409, allocations: 79.95 kB / 477.8 MB, free: 14.01 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01542/0.4563, allocations: 3.722 MB / 481.5 MB, free: 10.28 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.999e-06/0.4564, allocations: 4 kB / 481.5 MB, free: 10.28 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.4564, allocations: 0 / 481.5 MB, free: 10.28 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007049/0.4571, allocations: 0.4895 MB / 482 MB, free: 9.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.4572, allocations: 8.031 kB / 482 MB, free: 9.723 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.978e-05/0.4572, allocations: 20.11 kB / 482 MB, free: 9.703 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000353/0.4576, allocations: 239.6 kB / 482.3 MB, free: 9.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.4577, allocations: 8 kB / 482.3 MB, free: 9.422 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.018e-05/0.4577, allocations: 8 kB / 482.3 MB, free: 9.414 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000379/0.4581, allocations: 174.5 kB / 482.5 MB, free: 9.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4581, allocations: 0 / 482.5 MB, free: 9.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.4582, allocations: 0 / 482.5 MB, free: 9.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.567e-06/0.4582, allocations: 7.953 kB / 482.5 MB, free: 9.223 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/0.4584, allocations: 83.97 kB / 482.5 MB, free: 9.141 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008271/0.4593, allocations: 0.5483 MB / 483.1 MB, free: 8.535 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.4596, allocations: 126.5 kB / 483.2 MB, free: 8.402 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.4598, allocations: 92.83 kB / 483.3 MB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.4598, allocations: 0 / 483.3 MB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003418/0.4602, allocations: 182.1 kB / 483.5 MB, free: 8.113 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 2.896e-06/0.4602, allocations: 3.938 kB / 483.5 MB, free: 8.109 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008078/0.461, allocations: 337.4 kB / 483.8 MB, free: 7.766 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.887e-05/0.4611, allocations: 85.16 kB / 483.9 MB, free: 7.664 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.4614, allocations: 185.8 kB / 484.1 MB, free: 7.473 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.4614, allocations: 29.7 kB / 484.1 MB, free: 7.438 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.783e-05/0.4615, allocations: 116.4 kB / 484.2 MB, free: 7.316 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.86e-05/0.4616, allocations: 35.69 kB / 484.3 MB, free: 7.281 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.672e-05/0.4616, allocations: 4 kB / 484.3 MB, free: 7.277 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.4618, allocations: 334.8 kB / 484.6 MB, free: 6.941 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.462, allocations: 71.97 kB / 484.7 MB, free: 6.871 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.4622, allocations: 112.2 kB / 484.8 MB, free: 6.746 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.4624, allocations: 107.3 kB / 484.9 MB, free: 6.637 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.042e-06/0.4625, allocations: 0 / 484.9 MB, free: 6.637 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006778/0.4631, allocations: 318.9 kB / 485.2 MB, free: 6.312 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.911e-05/0.4632, allocations: 33.7 kB / 485.2 MB, free: 6.273 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.203e-06/0.4632, allocations: 3.984 kB / 485.2 MB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.4633, allocations: 4 kB / 485.2 MB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.4635, allocations: 35.92 kB / 485.3 MB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.4635, allocations: 8.125 kB / 485.3 MB, free: 6.223 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.4637, allocations: 23.83 kB / 485.3 MB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.33e-05/0.4637, allocations: 12 kB / 485.3 MB, free: 6.188 MB / 410.7 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart * digitalPI.Ti / digitalPI.Kp fixed = false ) "Integrated error" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.digitalPI.firstTrigger,digitalPI.firstTrigger,$whenCondition1,digitalPI.sampleTrigger,$whenCondition2,digitalPI.e,$PRE.digitalPI.e_int,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.464, allocations: 158.6 kB / 485.5 MB, free: 6.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.464, allocations: 19.77 kB / 485.5 MB, free: 6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.787e-05/0.4641, allocations: 21.66 kB / 485.5 MB, free: 5.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-06/0.4641, allocations: 0 / 485.5 MB, free: 5.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.325e-06/0.4641, allocations: 3.938 kB / 485.5 MB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.4641, allocations: 3.984 kB / 485.5 MB, free: 5.973 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.4654, allocations: 0.7133 MB / 486.2 MB, free: 5.199 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.839e-06/0.4654, allocations: 4 kB / 486.2 MB, free: 5.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.105e-05/0.4655, allocations: 4 kB / 486.2 MB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.396e-06/0.4655, allocations: 0 / 486.2 MB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.4656, allocations: 4 kB / 486.2 MB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.824e-06/0.4656, allocations: 4 kB / 486.2 MB, free: 5.184 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.857e-06/0.4656, allocations: 4 kB / 486.2 MB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.4667, allocations: 0.5702 MB / 486.8 MB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.563e-05/0.4668, allocations: 92.91 kB / 486.9 MB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.597e-05/0.4669, allocations: 7.984 kB / 486.9 MB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.4671, allocations: 27.92 kB / 486.9 MB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.4672, allocations: 12.05 kB / 487 MB, free: 4.434 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.4673, allocations: 12 kB / 487 MB, free: 4.422 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001652/0.4674, allocations: 144.2 kB / 487.1 MB, free: 4.281 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-07/0.4675, allocations: 0 / 487.1 MB, free: 4.281 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004562/0.4679, allocations: 67.92 kB / 487.2 MB, free: 4.215 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 14 (digitalPI.sampleTrigger,$whenCondition1,$whenCondition2,digitalPI.firstTrigger,digitalPI.e,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 7 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition2,digitalPI.e_int) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002388/0.4682, allocations: 135.2 kB / 487.3 MB, free: 4.074 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004998/0.4687, allocations: 255.4 kB / 487.6 MB, free: 3.812 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.982e-06/0.4687, allocations: 4.062 kB / 487.6 MB, free: 3.809 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.469, allocations: 171.3 kB / 487.7 MB, free: 3.629 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.4694, allocations: 28.17 kB / 487.8 MB, free: 3.598 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006964/0.4701, allocations: 263.9 kB / 488 MB, free: 3.316 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.4705, allocations: 0.7282 MB / 488.7 MB, free: 2.562 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.744e-05/0.4706, allocations: 8.766 kB / 488.7 MB, free: 2.551 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.19e-05/0.4706, allocations: 15.44 kB / 488.8 MB, free: 2.535 MB / 410.7 MB Notification: Performance of SimCode: time 1.405e-06/0.4706, allocations: 0 / 488.8 MB, free: 2.535 MB / 410.7 MB Notification: Performance of Templates: time 0.006805/0.4774, allocations: 2.042 MB / 490.8 MB, free: 0.5078 MB / 410.7 MB