Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.index|booleanTable.nextTime|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadModel(ModelicaTest): time 2.066/2.066, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.922e-05, allocations: 4 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3634, allocations: 48.7 MB / 324.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002107/0.3656, allocations: 1.196 MB / 326 MB, free: 2.383 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.3667, allocations: 469.5 kB / 326.5 MB, free: 2.152 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.762e-05/0.3668, allocations: 2.406 kB / 326.5 MB, free: 2.152 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.382e-05/0.3668, allocations: 5.672 kB / 326.5 MB, free: 2.148 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.278e-05/0.3669, allocations: 12.27 kB / 326.5 MB, free: 2.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.3674, allocations: 93.56 kB / 326.6 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.3676, allocations: 62 kB / 326.7 MB, free: 2.082 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.13e-05/0.3677, allocations: 6 kB / 326.7 MB, free: 2.082 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.481e-05/0.3677, allocations: 46.12 kB / 326.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.3679, allocations: 44.23 kB / 326.8 MB, free: 2.051 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.368, allocations: 40.59 kB / 326.8 MB, free: 2.043 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.173e-05/0.3681, allocations: 12.72 kB / 326.8 MB, free: 2.039 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.359e-05/0.3681, allocations: 22.47 kB / 326.8 MB, free: 2.031 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.25e-05/0.3682, allocations: 14.84 kB / 326.8 MB, free: 2.031 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.3684, allocations: 98.08 kB / 326.9 MB, free: 2.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3685, allocations: 0 / 326.9 MB, free: 2.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3685, allocations: 0 / 326.9 MB, free: 2.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.3685, allocations: 0 / 326.9 MB, free: 2.02 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006465/0.3691, allocations: 0.5347 MB / 327.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3692, allocations: 9.938 kB / 327.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.465e-05/0.3693, allocations: 14.5 kB / 327.5 MB, free: 1.465 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.3694, allocations: 180.3 kB / 327.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.966e-05/0.3695, allocations: 91.14 kB / 327.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.411e-05/0.3696, allocations: 12.47 kB / 327.8 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.37, allocations: 152.6 kB / 327.9 MB, free: 1.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.37, allocations: 0 / 327.9 MB, free: 1.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.37, allocations: 4.406 kB / 327.9 MB, free: 1.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3701, allocations: 2.625 kB / 327.9 MB, free: 1.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.3704, allocations: 85.38 kB / 328 MB, free: 1.051 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008474/0.3713, allocations: 0.5266 MB / 328.5 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.3717, allocations: 162.8 kB / 328.7 MB, free: 464 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.3717, allocations: 1.312 kB / 328.7 MB, free: 464 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005399/0.3723, allocations: 469.6 kB / 329.2 MB, free: 24 kB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 2.465e-06/0.3723, allocations: 4 kB / 329.2 MB, free: 20 kB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001503/0.3738, allocations: 0.7757 MB / 329.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.374, allocations: 249.8 kB / 330.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.3741, allocations: 122.2 kB / 330.3 MB, free: 15 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.3742, allocations: 39.8 kB / 330.3 MB, free: 14.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.447e-05/0.3743, allocations: 161.6 kB / 330.5 MB, free: 14.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.286e-05/0.3744, allocations: 51.09 kB / 330.6 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.3744, allocations: 2.875 kB / 330.6 MB, free: 14.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.3745, allocations: 325 kB / 330.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.3748, allocations: 54.59 kB / 330.9 MB, free: 14.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.375, allocations: 117.3 kB / 331 MB, free: 14.34 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003398/0.3754, allocations: 206.8 kB / 331.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.3754, allocations: 1.562 kB / 331.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008389/0.3763, allocations: 394.2 kB / 331.6 MB, free: 13.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.3764, allocations: 159.7 kB / 331.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.3764, allocations: 2.531 kB / 331.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.3765, allocations: 2.562 kB / 331.8 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.3766, allocations: 13.06 kB / 331.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.3766, allocations: 4.375 kB / 331.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.3768, allocations: 29.78 kB / 331.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.315e-05/0.3769, allocations: 13.62 kB / 331.8 MB, free: 13.7 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * 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.0003136/0.3772, allocations: 278.2 kB / 332.1 MB, free: 13.44 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.3773, allocations: 21.44 kB / 332.1 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.854e-05/0.3773, allocations: 14.84 kB / 332.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.3773, allocations: 2.281 kB / 332.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.3774, allocations: 5.656 kB / 332.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.3774, allocations: 1.25 kB / 332.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009795/0.3784, allocations: 0.5637 MB / 332.7 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.3784, allocations: 4 kB / 332.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.869e-05/0.3784, allocations: 2.641 kB / 332.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.3784, allocations: 1.031 kB / 332.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.988e-05/0.3785, allocations: 13.91 kB / 332.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.3785, allocations: 2.656 kB / 332.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3785, allocations: 7.953 kB / 332.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3797, allocations: 0.5665 MB / 333.3 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.799e-05/0.3798, allocations: 97.16 kB / 333.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.103e-05/0.3799, allocations: 15.2 kB / 333.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.3801, allocations: 22.39 kB / 333.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3802, allocations: 25.09 kB / 333.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.622e-05/0.3803, allocations: 10.22 kB / 333.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001041/0.3804, allocations: 103.4 kB / 333.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3804, allocations: 0 / 333.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004889/0.3809, allocations: 65.03 kB / 333.7 MB, free: 12.36 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0002797/0.3812, allocations: 138.7 kB / 333.8 MB, free: 12.26 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008958/0.3821, allocations: 0.4923 MB / 334.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3821, allocations: 0 / 334.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.3827, allocations: 421.6 kB / 334.7 MB, free: 11.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.383, allocations: 10.19 kB / 334.7 MB, free: 11.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009354/0.3839, allocations: 355.1 kB / 335.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.3843, allocations: 0.7093 MB / 335.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.059e-05/0.3844, allocations: 12.5 kB / 335.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.3844, allocations: 0 / 335.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of Templates: time 0.005946/0.3903, allocations: 1.884 MB / 337.7 MB, free: 10.36 MB / 282.7 MB