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.492/2.492, allocations: 218.4 MB / 234.2 MB, free: 4.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.66e-05/3.666e-05, allocations: 7.938 kB / 287.6 MB, free: 15.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3856/0.3857, allocations: 50.36 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003123/0.3888, allocations: 1.544 MB / 339.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.3912, allocations: 0.9173 MB / 340.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002224/0.3915, allocations: 7.938 kB / 340.4 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003445/0.3919, allocations: 51.8 kB / 340.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.3922, allocations: 59.84 kB / 340.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009635/0.3932, allocations: 191.5 kB / 340.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.3934, allocations: 75.84 kB / 340.8 MB, free: 13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.3935, allocations: 19.98 kB / 340.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.3937, allocations: 55.77 kB / 340.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.3938, allocations: 55.83 kB / 340.9 MB, free: 12.87 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.3941, allocations: 43.92 kB / 341 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.3941, allocations: 4 kB / 341 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.567e-05/0.3942, allocations: 51.81 kB / 341 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.47e-05/0.3943, allocations: 8 kB / 341 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003368/0.3946, allocations: 161.5 kB / 341.2 MB, free: 12.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.3946, allocations: 0 / 341.2 MB, free: 12.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3947, allocations: 4 kB / 341.2 MB, free: 12.6 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3947, allocations: 3.938 kB / 341.2 MB, free: 12.6 MB / 282.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.000833/0.3955, allocations: 471.7 kB / 341.7 MB, free: 12.09 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3956, allocations: 8.031 kB / 341.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.3957, allocations: 27.7 kB / 341.7 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005357/0.3962, allocations: 278.5 kB / 342 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.3963, allocations: 4 kB / 342 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.3963, allocations: 8 kB / 342 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.3968, allocations: 155.5 kB / 342.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3968, allocations: 4 kB / 342.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.3969, allocations: 0 / 342.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3969, allocations: 4 kB / 342.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.3971, allocations: 35.97 kB / 342.2 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007403/0.3978, allocations: 382.4 kB / 342.6 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003714/0.3982, allocations: 111.9 kB / 342.7 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.3983, allocations: 128 / 342.7 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.3985, allocations: 87.22 kB / 342.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 4.308e-06/0.3986, allocations: 0 / 342.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006131/0.3992, allocations: 153.3 kB / 342.9 MB, free: 10.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.3993, allocations: 158.2 kB / 343 MB, free: 10.49 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005143/0.3998, allocations: 305.7 kB / 343.3 MB, free: 10.18 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.3999, allocations: 25.95 kB / 343.4 MB, free: 10.15 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.4, allocations: 182.6 kB / 343.6 MB, free: 9.973 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.341e-05/0.4001, allocations: 27.8 kB / 343.6 MB, free: 9.945 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-06/0.4001, allocations: 0 / 343.6 MB, free: 9.945 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.4002, allocations: 318.8 kB / 343.9 MB, free: 9.625 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.4004, allocations: 27.92 kB / 343.9 MB, free: 9.598 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.4006, allocations: 86.84 kB / 344 MB, free: 9.488 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.4007, allocations: 28 kB / 344 MB, free: 9.461 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4007, allocations: 0 / 344 MB, free: 9.461 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003562/0.4011, allocations: 109.8 kB / 344.1 MB, free: 9.348 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.4011, allocations: 8.125 kB / 344.1 MB, free: 9.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4011, allocations: 0 / 344.1 MB, free: 9.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.4012, allocations: 4.062 kB / 344.1 MB, free: 9.336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.4014, allocations: 20 kB / 344.2 MB, free: 9.316 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.4014, allocations: 7.922 kB / 344.2 MB, free: 9.309 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.4016, allocations: 11.91 kB / 344.2 MB, free: 9.297 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.4016, allocations: 7.953 kB / 344.2 MB, free: 9.289 MB / 282.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,table.y,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.0002107/0.4018, allocations: 149.8 kB / 344.3 MB, free: 9.133 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.4019, allocations: 69.44 kB / 344.4 MB, free: 9.059 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.434e-05/0.402, allocations: 21.7 kB / 344.4 MB, free: 9.031 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.4021, allocations: 4 kB / 344.4 MB, free: 9.027 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.4021, allocations: 0 / 344.4 MB, free: 9.027 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.4021, allocations: 3.938 kB / 344.4 MB, free: 9.023 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.4024, allocations: 249.3 kB / 344.7 MB, free: 8.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.4024, allocations: 0 / 344.7 MB, free: 8.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.4026, allocations: 19.98 kB / 344.7 MB, free: 8.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.4026, allocations: 0 / 344.7 MB, free: 8.711 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.4026, allocations: 4 kB / 344.7 MB, free: 8.707 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.4026, allocations: 4.062 kB / 344.7 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.4026, allocations: 0 / 344.7 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004246/0.4031, allocations: 186 kB / 344.9 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.4033, allocations: 116.8 kB / 345 MB, free: 8.352 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.006e-05/0.4033, allocations: 8 kB / 345 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.4034, allocations: 7.984 kB / 345 MB, free: 8.336 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.4035, allocations: 7.953 kB / 345 MB, free: 8.328 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.4036, allocations: 11.98 kB / 345 MB, free: 8.316 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003849/0.404, allocations: 241.9 kB / 345.3 MB, free: 8.086 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.404, allocations: 0 / 345.3 MB, free: 8.086 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003749/0.4044, allocations: 35.98 kB / 345.3 MB, free: 8.051 MB / 282.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001256/0.4056, allocations: 402.8 kB / 345.7 MB, free: 7.707 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004019/0.4061, allocations: 67.84 kB / 345.8 MB, free: 7.641 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.4061, allocations: 4 kB / 345.8 MB, free: 7.637 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.4062, allocations: 31.92 kB / 345.8 MB, free: 7.605 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005404/0.4068, allocations: 60.48 kB / 345.9 MB, free: 7.543 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009502/0.4077, allocations: 422.4 kB / 346.3 MB, free: 7.094 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.4082, allocations: 0.74 MB / 347 MB, free: 6.328 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.372e-05/0.4083, allocations: 23.44 kB / 347 MB, free: 6.309 MB / 282.7 MB Notification: Performance of SimCode: time 1.442e-06/0.4083, allocations: 0 / 347 MB, free: 6.309 MB / 282.7 MB Notification: Performance of Templates: time 0.008033/0.4163, allocations: 2.898 MB / 349.9 MB, free: 3.414 MB / 282.7 MB