Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadModel(Modelica): time 2.09/2.09, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.781e-05/3.834e-05, allocations: 5.562 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09483/0.0949, allocations: 50.41 MB / 343.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.4626, allocations: 77.39 MB / 420.5 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.4629, allocations: 79.67 kB / 420.6 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006388/0.4693, allocations: 1.63 MB / 422.2 MB, free: 15.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.282e-06/0.4693, allocations: 4 kB / 422.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.4693, allocations: 0 / 422.2 MB, free: 15.36 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004406/0.4698, allocations: 361.2 kB / 422.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4698, allocations: 12.03 kB / 422.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.4699, allocations: 11.86 kB / 422.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.4702, allocations: 194.2 kB / 422.8 MB, free: 14.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.4702, allocations: 8 kB / 422.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.4702, allocations: 7.5 kB / 422.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.4705, allocations: 126.7 kB / 422.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.4706, allocations: 0 / 422.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.4706, allocations: 0 / 422.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.4706, allocations: 7.953 kB / 422.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.941e-05/0.4707, allocations: 26.25 kB / 422.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004502/0.4711, allocations: 283.2 kB / 423.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.4713, allocations: 90.34 kB / 423.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.762e-05/0.4714, allocations: 41.36 kB / 423.3 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.4714, allocations: 3.984 kB / 423.3 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.4715, allocations: 45.31 kB / 423.4 MB, free: 14.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.448e-06/0.4715, allocations: 0 / 423.4 MB, free: 14.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002339/0.4717, allocations: 72.36 kB / 423.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/0.4718, allocations: 136 kB / 423.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.472, allocations: 139.4 kB / 423.7 MB, free: 13.65 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.472, allocations: 28.95 kB / 423.7 MB, free: 13.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.883e-05/0.4721, allocations: 84.14 kB / 423.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.4721, allocations: 14.58 kB / 423.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.61e-06/0.4722, allocations: 0 / 423.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4723, allocations: 318.3 kB / 424.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.134e-05/0.4724, allocations: 11.44 kB / 424.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.902e-05/0.4724, allocations: 52.83 kB / 424.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.145e-05/0.4725, allocations: 11.88 kB / 424.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4725, allocations: 0 / 424.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001637/0.4727, allocations: 73.28 kB / 424.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.4727, allocations: 8 kB / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.269e-06/0.4727, allocations: 0 / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.4727, allocations: 7.953 kB / 424.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.4729, allocations: 15.98 kB / 424.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.4729, allocations: 0 / 424.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.096e-05/0.473, allocations: 7.938 kB / 424.3 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.473, allocations: 4 kB / 424.3 MB, free: 13.01 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 8.869e-05/0.4731, allocations: 113 kB / 424.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.4733, allocations: 65.09 kB / 424.5 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.197e-05/0.4733, allocations: 11.58 kB / 424.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.099e-06/0.4733, allocations: 4 kB / 424.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.765e-06/0.4734, allocations: 7.891 kB / 424.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.408e-06/0.4734, allocations: 4 kB / 424.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.4736, allocations: 173.4 kB / 424.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.533e-06/0.4737, allocations: 0 / 424.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.4738, allocations: 24.02 kB / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.908e-06/0.4738, allocations: 0 / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.4738, allocations: 7.75 kB / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.982e-06/0.4738, allocations: 0 / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.247e-06/0.4738, allocations: 0 / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002491/0.4741, allocations: 225.5 kB / 425 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.495e-05/0.4742, allocations: 100.6 kB / 425.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.4742, allocations: 7.984 kB / 425.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.4744, allocations: 4 kB / 425.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.4744, allocations: 7.547 kB / 425.1 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.4744, allocations: 4 kB / 425.1 MB, free: 12.19 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001094/0.4746, allocations: 110.1 kB / 425.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.4746, allocations: 0 / 425.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003327/0.4749, allocations: 11.19 kB / 425.2 MB, free: 12.08 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001303/0.4751, allocations: 99.25 kB / 425.3 MB, free: 11.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.4752, allocations: 34.17 kB / 425.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.727e-06/0.4752, allocations: 0 / 425.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.596e-05/0.4752, allocations: 7.875 kB / 425.3 MB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.4756, allocations: 46.78 kB / 425.4 MB, free: 11.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000357/0.476, allocations: 126.3 kB / 425.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.4764, allocations: 0.6972 MB / 426.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5e-05/0.4764, allocations: 12.94 kB / 426.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.778e-05/0.4765, allocations: 19 kB / 426.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of SimCode: time 1.454e-06/0.4765, allocations: 0 / 426.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of Templates: time 0.003753/0.4803, allocations: 0.7356 MB / 427 MB, free: 10.29 MB / 346.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,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time