Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.005/2.005, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.391e-05/3.413e-05, allocations: 6.031 kB / 284.3 MB, free: 8.676 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08685/0.08691, allocations: 50.36 MB / 334.7 MB, free: 6.215 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.352/0.4389, allocations: 82.03 MB / 416.7 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.4392, allocations: 82.27 kB / 416.8 MB, free: 12.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02463/0.4639, allocations: 5.9 MB / 422.7 MB, free: 7.211 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.18e-06/0.4639, allocations: 0 / 422.7 MB, free: 7.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.507e-05/0.464, allocations: 0 / 422.7 MB, free: 7.211 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.0007361/0.4647, allocations: 499 kB / 423.2 MB, free: 6.688 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.4648, allocations: 12.03 kB / 423.2 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.855e-05/0.4649, allocations: 23.72 kB / 423.2 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/0.4654, allocations: 284.7 kB / 423.5 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.4655, allocations: 7.953 kB / 423.5 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.4655, allocations: 15.11 kB / 423.5 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.4659, allocations: 150.2 kB / 423.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.4659, allocations: 0 / 423.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.4659, allocations: 3.562 kB / 423.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.375e-06/0.466, allocations: 4 kB / 423.7 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.4661, allocations: 27.8 kB / 423.7 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00069/0.4668, allocations: 414.5 kB / 424.1 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.467, allocations: 111 kB / 424.2 MB, free: 5.633 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/0.4671, allocations: 46.2 kB / 424.2 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.4672, allocations: 7.984 kB / 424.3 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001754/0.4674, allocations: 74.7 kB / 424.3 MB, free: 5.508 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 5.2e-06/0.4674, allocations: 3.984 kB / 424.3 MB, free: 5.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003658/0.4678, allocations: 116.1 kB / 424.4 MB, free: 5.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.4679, allocations: 174.1 kB / 424.6 MB, free: 5.199 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004748/0.4684, allocations: 288.5 kB / 424.9 MB, free: 4.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.4685, allocations: 29.7 kB / 424.9 MB, free: 4.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.4686, allocations: 185.8 kB / 425.1 MB, free: 4.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.4686, allocations: 19.38 kB / 425.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-06/0.4687, allocations: 3.875 kB / 425.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.4688, allocations: 314.8 kB / 425.4 MB, free: 4.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-05/0.4689, allocations: 27.11 kB / 425.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.4691, allocations: 94.17 kB / 425.6 MB, free: 4.312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.977e-05/0.4692, allocations: 31.73 kB / 425.6 MB, free: 4.289 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.718e-06/0.4692, allocations: 4 kB / 425.6 MB, free: 4.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002557/0.4694, allocations: 100.3 kB / 425.7 MB, free: 4.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.4695, allocations: 8 kB / 425.7 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4695, allocations: 0 / 425.7 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.4695, allocations: 4 kB / 425.7 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.4697, allocations: 15.98 kB / 425.7 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.4697, allocations: 7.938 kB / 425.7 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.4699, allocations: 15.8 kB / 425.7 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.4699, allocations: 4 kB / 425.7 MB, free: 4.148 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.0001159/0.47, allocations: 123.7 kB / 425.9 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.4702, allocations: 73.09 kB / 425.9 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003025/0.4705, allocations: 124.9 kB / 426.1 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.587e-06/0.4705, allocations: 4 kB / 426.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.881e-06/0.4705, allocations: 4 kB / 426.1 MB, free: 3.848 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.417e-06/0.4705, allocations: 4.062 kB / 426.1 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.4709, allocations: 256 kB / 426.3 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.987e-06/0.4709, allocations: 0 / 426.3 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.738e-05/0.471, allocations: 8 kB / 426.3 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.515e-06/0.471, allocations: 4 kB / 426.3 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.471, allocations: 3.984 kB / 426.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.471, allocations: 7.938 kB / 426.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.133e-06/0.4711, allocations: 0 / 426.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.4714, allocations: 187.3 kB / 426.5 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.4716, allocations: 128.5 kB / 426.7 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.4716, allocations: 4 kB / 426.7 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.4718, allocations: 4 kB / 426.7 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.4719, allocations: 11.3 kB / 426.7 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.4719, allocations: 4 kB / 426.7 MB, free: 3.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003344/0.4722, allocations: 240.7 kB / 426.9 MB, free: 3.012 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.4722, allocations: 0 / 426.9 MB, free: 3.012 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004143/0.4727, allocations: 55.06 kB / 427 MB, free: 2.965 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.001434/0.4741, allocations: 413 kB / 427.4 MB, free: 2.609 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000302/0.4744, allocations: 86.09 kB / 427.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.403e-06/0.4745, allocations: 0 / 427.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.769e-05/0.4746, allocations: 26.69 kB / 427.5 MB, free: 2.523 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.475, allocations: 55.3 kB / 427.5 MB, free: 2.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007411/0.4758, allocations: 309.7 kB / 427.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.4762, allocations: 0.7514 MB / 428.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.503e-05/0.4763, allocations: 23.42 kB / 428.6 MB, free: 1.391 MB / 346.7 MB Notification: Performance of SimCode: time 1.527e-06/0.4763, allocations: 0 / 428.6 MB, free: 1.391 MB / 346.7 MB Notification: Performance of Templates: time 0.006468/0.4828, allocations: 2.938 MB / 431.5 MB, free: 14.48 MB / 362.7 MB