Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.066/2.066, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.169e-05, allocations: 7.984 kB / 284.3 MB, free: 8.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09302, allocations: 50.36 MB / 334.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4464, allocations: 82.14 MB / 416.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.4467, allocations: 85.38 kB / 416.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02521/0.4719, allocations: 6.024 MB / 422.9 MB, free: 6.977 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.821e-06/0.4719, allocations: 0 / 422.9 MB, free: 6.977 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.965e-05/0.472, allocations: 12 kB / 422.9 MB, free: 6.965 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007466/0.4727, allocations: 0.4936 MB / 423.4 MB, free: 6.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.4728, allocations: 8.031 kB / 423.4 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.704e-05/0.4729, allocations: 23.72 kB / 423.5 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005611/0.4735, allocations: 294.4 kB / 423.7 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.4735, allocations: 10.95 kB / 423.8 MB, free: 6.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.4736, allocations: 8 kB / 423.8 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000401/0.474, allocations: 175.1 kB / 423.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.474, allocations: 0 / 423.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.474, allocations: 3.375 kB / 423.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.614e-06/0.474, allocations: 4 kB / 423.9 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.4742, allocations: 44.23 kB / 424 MB, free: 5.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007076/0.4749, allocations: 411.3 kB / 424.4 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.4752, allocations: 138.8 kB / 424.5 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.4753, allocations: 59.25 kB / 424.6 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.4754, allocations: 7.969 kB / 424.6 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001871/0.4756, allocations: 78.95 kB / 424.7 MB, free: 5.168 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 3.367e-06/0.4756, allocations: 0 / 424.7 MB, free: 5.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003847/0.476, allocations: 135.8 kB / 424.8 MB, free: 5.051 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.4761, allocations: 195.4 kB / 425 MB, free: 4.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00047/0.4766, allocations: 295.9 kB / 425.3 MB, free: 4.574 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.4767, allocations: 32.08 kB / 425.3 MB, free: 4.539 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.4768, allocations: 179.8 kB / 425.5 MB, free: 4.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.868e-05/0.4768, allocations: 18.17 kB / 425.5 MB, free: 4.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.293e-06/0.4769, allocations: 6.75 kB / 425.5 MB, free: 4.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.477, allocations: 318.2 kB / 425.8 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.015e-05/0.4771, allocations: 27.19 kB / 425.8 MB, free: 4.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.4773, allocations: 101.9 kB / 425.9 MB, free: 3.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.4774, allocations: 42.36 kB / 426 MB, free: 3.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-06/0.4774, allocations: 0 / 426 MB, free: 3.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002849/0.4777, allocations: 115 kB / 426.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.4777, allocations: 8 kB / 426.1 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.925e-06/0.4778, allocations: 0 / 426.1 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.4778, allocations: 4 kB / 426.1 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.478, allocations: 19.98 kB / 426.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.478, allocations: 12.12 kB / 426.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.4781, allocations: 14.86 kB / 426.2 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.4782, allocations: 4 kB / 426.2 MB, free: 3.723 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0001274/0.4783, allocations: 124.7 kB / 426.3 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.4785, allocations: 81.03 kB / 426.4 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003123/0.4788, allocations: 120.8 kB / 426.5 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.4788, allocations: 4.094 kB / 426.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.161e-06/0.4789, allocations: 3.984 kB / 426.5 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.236e-06/0.4789, allocations: 4 kB / 426.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.4792, allocations: 257.5 kB / 426.7 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4792, allocations: 0 / 426.7 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.4793, allocations: 15.94 kB / 426.8 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.4794, allocations: 7.938 kB / 426.8 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.4794, allocations: 7.359 kB / 426.8 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.109e-06/0.4794, allocations: 4 kB / 426.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.142e-06/0.4794, allocations: 0 / 426.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.4798, allocations: 216.1 kB / 427 MB, free: 2.883 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.48, allocations: 126.6 kB / 427.1 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.577e-05/0.4801, allocations: 3.812 kB / 427.1 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.4802, allocations: 11.98 kB / 427.1 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.433e-05/0.4803, allocations: 11.77 kB / 427.1 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.4803, allocations: 11.98 kB / 427.2 MB, free: 2.719 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003447/0.4806, allocations: 235.7 kB / 427.4 MB, free: 2.531 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.83e-07/0.4807, allocations: 3.938 kB / 427.4 MB, free: 2.527 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004201/0.4811, allocations: 51.44 kB / 427.4 MB, free: 2.484 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001434/0.4825, allocations: 415.9 kB / 427.8 MB, free: 2.129 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003085/0.4829, allocations: 92.95 kB / 427.9 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4829, allocations: 0 / 427.9 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.541e-05/0.483, allocations: 25.12 kB / 428 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.4835, allocations: 69.72 kB / 428 MB, free: 1.984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007497/0.4842, allocations: 344.5 kB / 428.4 MB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.4847, allocations: 0.7472 MB / 429.1 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.448e-05/0.4848, allocations: 31.23 kB / 429.1 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of SimCode: time 1.783e-06/0.4848, allocations: 0 / 429.1 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of Templates: time 0.006904/0.4917, allocations: 3.117 MB / 432.3 MB, free: 13.78 MB / 362.7 MB