Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.902e-05/2.914e-05, allocations: 4 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.0916, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3623/0.4539, allocations: 81.48 MB / 424 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.4542, allocations: 81.95 kB / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02539/0.4796, allocations: 6.042 MB / 430.2 MB, free: 7.613 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.591e-06/0.4797, allocations: 0 / 430.2 MB, free: 7.613 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.028e-05/0.4797, allocations: 8 kB / 430.2 MB, free: 7.605 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.000709/0.4805, allocations: 487 kB / 430.6 MB, free: 7.094 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4805, allocations: 12.03 kB / 430.7 MB, free: 7.082 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.907e-05/0.4806, allocations: 23.75 kB / 430.7 MB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.4811, allocations: 258.5 kB / 430.9 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.4811, allocations: 7.5 kB / 430.9 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.4812, allocations: 11.38 kB / 431 MB, free: 6.773 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/0.4816, allocations: 164.1 kB / 431.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.4816, allocations: 0 / 431.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.4817, allocations: 3.562 kB / 431.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.4817, allocations: 7.953 kB / 431.1 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.4818, allocations: 42.67 kB / 431.2 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006383/0.4825, allocations: 372 kB / 431.5 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.4827, allocations: 127.9 kB / 431.7 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.4828, allocations: 53.56 kB / 431.7 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.4829, allocations: 7.938 kB / 431.7 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.4831, allocations: 74.47 kB / 431.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 3.186e-06/0.4831, allocations: 4 kB / 431.8 MB, free: 5.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003576/0.4835, allocations: 126.2 kB / 431.9 MB, free: 5.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.4836, allocations: 165.4 kB / 432.1 MB, free: 5.605 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004011/0.484, allocations: 243.6 kB / 432.3 MB, free: 5.406 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.4841, allocations: 25.7 kB / 432.3 MB, free: 5.375 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.4842, allocations: 121.5 kB / 432.5 MB, free: 5.273 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.4842, allocations: 29.23 kB / 432.5 MB, free: 5.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.617e-06/0.4843, allocations: 0 / 432.5 MB, free: 5.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.4844, allocations: 328.3 kB / 432.8 MB, free: 4.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.233e-05/0.4845, allocations: 22.25 kB / 432.8 MB, free: 4.914 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.4847, allocations: 80.47 kB / 432.9 MB, free: 4.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.503e-05/0.4848, allocations: 32.7 kB / 432.9 MB, free: 4.797 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.4848, allocations: 4 kB / 432.9 MB, free: 4.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002976/0.4851, allocations: 122.2 kB / 433.1 MB, free: 4.684 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4851, allocations: 7.953 kB / 433.1 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4851, allocations: 4 kB / 433.1 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.4852, allocations: 3.984 kB / 433.1 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.4853, allocations: 19.55 kB / 433.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.682e-06/0.4853, allocations: 0 / 433.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.4855, allocations: 12 kB / 433.1 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.4855, allocations: 4 kB / 433.1 MB, free: 4.637 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.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.0001249/0.4856, allocations: 128.9 kB / 433.2 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.4858, allocations: 68.8 kB / 433.3 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00028/0.4861, allocations: 113 kB / 433.4 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.4861, allocations: 4 kB / 433.4 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.902e-06/0.4861, allocations: 0 / 433.4 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.4861, allocations: 7.984 kB / 433.4 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.4864, allocations: 231.4 kB / 433.7 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.415e-06/0.4865, allocations: 0 / 433.7 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.541e-05/0.4865, allocations: 19.95 kB / 433.7 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.4866, allocations: 7.938 kB / 433.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.4866, allocations: 3 kB / 433.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.563e-06/0.4866, allocations: 7.953 kB / 433.7 MB, free: 4.059 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.389e-06/0.4866, allocations: 0 / 433.7 MB, free: 4.059 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003444/0.487, allocations: 209.1 kB / 433.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.4871, allocations: 116 kB / 434 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.4872, allocations: 7.938 kB / 434 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.4873, allocations: 4 kB / 434 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.4874, allocations: 11.92 kB / 434 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.4874, allocations: 7.375 kB / 434 MB, free: 3.688 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002978/0.4877, allocations: 200.5 kB / 434.2 MB, free: 3.523 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.78e-07/0.4877, allocations: 0 / 434.2 MB, free: 3.523 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004161/0.4881, allocations: 35.81 kB / 434.3 MB, free: 3.492 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.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.001475/0.4896, allocations: 415.2 kB / 434.7 MB, free: 3.199 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002905/0.49, allocations: 77.42 kB / 434.8 MB, free: 3.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.481e-06/0.49, allocations: 0 / 434.8 MB, free: 3.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.731e-05/0.4901, allocations: 27.17 kB / 434.8 MB, free: 3.121 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.4906, allocations: 66.08 kB / 434.8 MB, free: 3.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006341/0.4912, allocations: 249.7 kB / 435.1 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.4917, allocations: 0.7397 MB / 435.8 MB, free: 2.062 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.4918, allocations: 37.59 kB / 435.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.265e-05/0.4919, allocations: 26.42 kB / 435.9 MB, free: 2.004 MB / 346.7 MB Notification: Performance of SimCode: time 1.645e-06/0.4919, allocations: 0 / 435.9 MB, free: 2.004 MB / 346.7 MB Notification: Performance of Templates: time 0.008456/0.5004, allocations: 2.529 MB / 438.4 MB, free: 15.51 MB / 362.7 MB "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time