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.2_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadModel(ModelicaTest): time 2.541/2.541, allocations: 234.9 MB / 250.1 MB, free: 9.941 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.064e-05, allocations: 4 kB / 308 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3905, allocations: 54.86 MB / 362.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002338/0.3929, allocations: 1.211 MB / 364.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.3941, allocations: 469.2 kB / 364.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.968e-05/0.3942, allocations: 1.969 kB / 364.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.121e-05/0.3943, allocations: 3.938 kB / 364.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.335e-05/0.3944, allocations: 14.19 kB / 364.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004865/0.3949, allocations: 87.48 kB / 364.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.395, allocations: 56.66 kB / 364.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.805e-05/0.3951, allocations: 7.781 kB / 364.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.544e-05/0.3952, allocations: 40.47 kB / 364.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.3953, allocations: 50.62 kB / 364.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.3955, allocations: 48.27 kB / 364.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.213e-05/0.3955, allocations: 13 kB / 364.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.648e-05/0.3956, allocations: 19.67 kB / 364.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.299e-05/0.3957, allocations: 15.19 kB / 364.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.3959, allocations: 96.14 kB / 365 MB, free: 10.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.3959, allocations: 0 / 365 MB, free: 10.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.396, allocations: 1.875 kB / 365 MB, free: 10.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.396, allocations: 0 / 365 MB, free: 10.4 MB / 298.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.0007914/0.3968, allocations: 0.5352 MB / 365.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3968, allocations: 9.281 kB / 365.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.619e-05/0.3969, allocations: 19.62 kB / 365.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.3971, allocations: 175.5 kB / 365.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.3972, allocations: 94.28 kB / 365.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.3973, allocations: 16.19 kB / 365.8 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004164/0.3977, allocations: 137.7 kB / 365.9 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3978, allocations: 0 / 365.9 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.3978, allocations: 11.64 kB / 366 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3978, allocations: 2.156 kB / 366 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.3982, allocations: 84.84 kB / 366 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.3992, allocations: 0.531 MB / 366.6 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.3996, allocations: 155.1 kB / 366.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.3996, allocations: 5.453 kB / 366.7 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000679/0.4003, allocations: 469.2 kB / 367.2 MB, free: 8.238 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 3.136e-06/0.4004, allocations: 4 kB / 367.2 MB, free: 8.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001517/0.4019, allocations: 0.7726 MB / 368 MB, free: 7.566 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001826/0.4021, allocations: 244.2 kB / 368.2 MB, free: 7.281 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.4023, allocations: 133 kB / 368.3 MB, free: 7.164 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.4023, allocations: 34.98 kB / 368.4 MB, free: 7.129 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.4025, allocations: 164.7 kB / 368.5 MB, free: 6.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.971e-05/0.4026, allocations: 44.73 kB / 368.6 MB, free: 6.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.4026, allocations: 5.969 kB / 368.6 MB, free: 6.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.4028, allocations: 322.2 kB / 368.9 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/0.403, allocations: 54.56 kB / 368.9 MB, free: 6.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.4033, allocations: 118.5 kB / 369.1 MB, free: 6.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.4037, allocations: 201.6 kB / 369.3 MB, free: 6.293 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.4037, allocations: 1.219 kB / 369.3 MB, free: 6.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009297/0.4046, allocations: 402.5 kB / 369.6 MB, free: 6.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001411/0.4048, allocations: 155.4 kB / 369.8 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.4048, allocations: 5.391 kB / 369.8 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.4049, allocations: 3.344 kB / 369.8 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.405, allocations: 15.69 kB / 369.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.405, allocations: 6.297 kB / 369.8 MB, free: 5.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.4052, allocations: 34.84 kB / 369.9 MB, free: 5.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.4053, allocations: 9.812 kB / 369.9 MB, free: 5.801 MB / 298.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.000356/0.4056, allocations: 277.1 kB / 370.1 MB, free: 5.527 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.322e-05/0.4057, allocations: 26.02 kB / 370.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.007e-05/0.4058, allocations: 11.62 kB / 370.2 MB, free: 5.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.4058, allocations: 2.188 kB / 370.2 MB, free: 5.504 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.4058, allocations: 5.125 kB / 370.2 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.4058, allocations: 3.984 kB / 370.2 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.4069, allocations: 0.5576 MB / 370.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4069, allocations: 0 / 370.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.393e-05/0.407, allocations: 5.062 kB / 370.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.407, allocations: 1.812 kB / 370.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.407, allocations: 16.14 kB / 370.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.4071, allocations: 1.844 kB / 370.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.4071, allocations: 4.812 kB / 370.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.4083, allocations: 0.5747 MB / 371.4 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.799e-05/0.4084, allocations: 92.98 kB / 371.4 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.425e-05/0.4085, allocations: 20 kB / 371.5 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.4087, allocations: 19.98 kB / 371.5 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.4088, allocations: 19.97 kB / 371.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.4089, allocations: 15.98 kB / 371.5 MB, free: 4.379 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.725e-05/0.409, allocations: 95.27 kB / 371.6 MB, free: 4.285 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.409, allocations: 0 / 371.6 MB, free: 4.285 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004959/0.4095, allocations: 63.95 kB / 371.7 MB, free: 4.223 MB / 298.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.0003158/0.4098, allocations: 139.2 kB / 371.8 MB, free: 4.078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009655/0.4108, allocations: 0.493 MB / 372.3 MB, free: 3.523 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4109, allocations: 4 kB / 372.3 MB, free: 3.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.4115, allocations: 417.9 kB / 372.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.4117, allocations: 16 kB / 372.7 MB, free: 3.047 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009458/0.4127, allocations: 359.9 kB / 373.1 MB, free: 2.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.4131, allocations: 0.7126 MB / 373.8 MB, free: 1.922 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.4132, allocations: 11.44 kB / 373.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.4132, allocations: 0 / 373.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of Templates: time 0.005707/0.4189, allocations: 1.866 MB / 375.7 MB, free: 44 kB / 298.7 MB