Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.016/2.016, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.372e-05, allocations: 4 kB / 284.3 MB, free: 8.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08637, allocations: 50.36 MB / 334.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3581/0.4445, allocations: 82.02 MB / 416.7 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.4448, allocations: 85.44 kB / 416.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02345/0.4683, allocations: 5.75 MB / 422.5 MB, free: 7.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.622e-06/0.4683, allocations: 0 / 422.5 MB, free: 7.363 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.57e-05/0.4684, allocations: 4 kB / 422.5 MB, free: 7.359 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000682/0.4691, allocations: 472.1 kB / 423 MB, free: 6.859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.4691, allocations: 16.03 kB / 423 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.692e-05/0.4692, allocations: 19.72 kB / 423 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004827/0.4697, allocations: 258.7 kB / 423.3 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.4698, allocations: 7.953 kB / 423.3 MB, free: 6.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.4698, allocations: 7.875 kB / 423.3 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.4702, allocations: 149.2 kB / 423.4 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.4702, allocations: 0 / 423.4 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.4702, allocations: 0 / 423.4 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.03e-06/0.4702, allocations: 4 kB / 423.4 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.4703, allocations: 30.67 kB / 423.5 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000618/0.471, allocations: 374.8 kB / 423.8 MB, free: 5.992 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.4712, allocations: 101 kB / 423.9 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.843e-05/0.4713, allocations: 41.7 kB / 424 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.4713, allocations: 8.062 kB / 424 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.4715, allocations: 77.78 kB / 424.1 MB, free: 5.758 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.858e-06/0.4715, allocations: 0 / 424.1 MB, free: 5.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003252/0.4719, allocations: 110.2 kB / 424.2 MB, free: 5.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/0.472, allocations: 140.1 kB / 424.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.4724, allocations: 233.4 kB / 424.5 MB, free: 5.305 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.4724, allocations: 29.64 kB / 424.6 MB, free: 5.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.4725, allocations: 178.4 kB / 424.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.4726, allocations: 18.58 kB / 424.8 MB, free: 5.098 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.107e-06/0.4726, allocations: 0 / 424.8 MB, free: 5.098 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4727, allocations: 322.1 kB / 425.1 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.928e-05/0.4728, allocations: 18.06 kB / 425.1 MB, free: 4.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.4729, allocations: 72.25 kB / 425.2 MB, free: 4.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.129e-05/0.473, allocations: 25.98 kB / 425.2 MB, free: 4.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.779e-06/0.473, allocations: 0 / 425.2 MB, free: 4.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002324/0.4733, allocations: 103.5 kB / 425.3 MB, free: 4.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.4733, allocations: 8 kB / 425.3 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.432e-06/0.4733, allocations: 3.984 kB / 425.3 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4733, allocations: 4 kB / 425.3 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.4735, allocations: 8.125 kB / 425.3 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.4735, allocations: 7.984 kB / 425.3 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.4736, allocations: 11.98 kB / 425.3 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.4737, allocations: 4 kB / 425.3 MB, free: 4.531 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001125/0.4738, allocations: 129.3 kB / 425.5 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.4739, allocations: 56.95 kB / 425.5 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000267/0.4742, allocations: 112.7 kB / 425.6 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.234e-06/0.4742, allocations: 0 / 425.6 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/0.4742, allocations: 4 kB / 425.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.425e-06/0.4742, allocations: 0 / 425.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.4745, allocations: 242.8 kB / 425.9 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4745, allocations: 0 / 425.9 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.738e-05/0.4746, allocations: 4.062 kB / 425.9 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.88e-06/0.4746, allocations: 8 kB / 425.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.4746, allocations: 0 / 425.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.021e-06/0.4747, allocations: 0 / 425.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.244e-06/0.4747, allocations: 4 kB / 425.9 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003019/0.475, allocations: 182 kB / 426.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.4751, allocations: 114.6 kB / 426.2 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.4752, allocations: 3.984 kB / 426.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.868e-05/0.4753, allocations: 11.94 kB / 426.2 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.4754, allocations: 7.297 kB / 426.2 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.4754, allocations: 4 kB / 426.2 MB, free: 3.637 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002596/0.4757, allocations: 190.9 kB / 426.4 MB, free: 3.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.88e-07/0.4757, allocations: 0 / 426.4 MB, free: 3.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003707/0.4761, allocations: 39.81 kB / 426.4 MB, free: 3.445 MB / 346.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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.001413/0.4775, allocations: 410 kB / 426.8 MB, free: 3.098 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002369/0.4777, allocations: 65.17 kB / 426.9 MB, free: 3.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.423e-06/0.4778, allocations: 0 / 426.9 MB, free: 3.051 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.243e-05/0.4778, allocations: 30.86 kB / 426.9 MB, free: 3.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.4783, allocations: 58.3 kB / 427 MB, free: 2.984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006036/0.4789, allocations: 266.5 kB / 427.2 MB, free: 2.715 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.4793, allocations: 0.7313 MB / 428 MB, free: 1.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.646e-05/0.4794, allocations: 22.81 kB / 428 MB, free: 1.941 MB / 346.7 MB Notification: Performance of SimCode: time 1.703e-06/0.4794, allocations: 4 kB / 428 MB, free: 1.938 MB / 346.7 MB Notification: Performance of Templates: time 0.005901/0.4853, allocations: 2.614 MB / 430.6 MB, free: 15.35 MB / 362.7 MB