Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.65/2.65, allocations: 218.4 MB / 234.2 MB, free: 5.582 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.953e-05/2.953e-05, allocations: 0 / 287.6 MB, free: 64 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3599, allocations: 50.37 MB / 338 MB, free: 15.98 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.003267/0.3632, allocations: 1.572 MB / 339.5 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002468/0.3658, allocations: 0.9444 MB / 340.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.366, allocations: 3.938 kB / 340.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003179/0.3663, allocations: 47.86 kB / 340.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.3666, allocations: 71.75 kB / 340.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009594/0.3676, allocations: 191.4 kB / 340.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.3679, allocations: 87.78 kB / 340.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.368, allocations: 23.91 kB / 340.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.3682, allocations: 55.83 kB / 341 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.3683, allocations: 59.77 kB / 341 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.3686, allocations: 35.98 kB / 341 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.3686, allocations: 8 kB / 341.1 MB, free: 12.87 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.982e-05/0.3687, allocations: 51.81 kB / 341.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.311e-05/0.3688, allocations: 8 kB / 341.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.3692, allocations: 173.4 kB / 341.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3692, allocations: 0 / 341.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3692, allocations: 0 / 341.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.3692, allocations: 0 / 341.3 MB, free: 12.64 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008779/0.3701, allocations: 472.6 kB / 341.7 MB, free: 12.13 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.3702, allocations: 8.031 kB / 341.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.159e-05/0.3703, allocations: 27.62 kB / 341.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005488/0.3708, allocations: 294.4 kB / 342.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.3709, allocations: 4 kB / 342.1 MB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.3709, allocations: 12 kB / 342.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005157/0.3714, allocations: 176.9 kB / 342.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3715, allocations: 0 / 342.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.3715, allocations: 8 kB / 342.3 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.3715, allocations: 0 / 342.3 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.3718, allocations: 39.92 kB / 342.3 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008134/0.3726, allocations: 399.2 kB / 342.7 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004531/0.3731, allocations: 146.5 kB / 342.8 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.65e-05/0.3731, allocations: 12.06 kB / 342.8 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.3734, allocations: 75.5 kB / 342.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 3.457e-06/0.3735, allocations: 0 / 342.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006795/0.3741, allocations: 173.5 kB / 343.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.3743, allocations: 191.9 kB / 343.3 MB, free: 10.37 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000572/0.3749, allocations: 309.7 kB / 343.6 MB, free: 10.05 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/0.375, allocations: 29.7 kB / 343.6 MB, free: 10.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.3751, allocations: 178.8 kB / 343.8 MB, free: 9.844 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.3752, allocations: 23.73 kB / 343.8 MB, free: 9.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-06/0.3752, allocations: 0 / 343.8 MB, free: 9.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3754, allocations: 314.8 kB / 344.1 MB, free: 9.504 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.3756, allocations: 27.98 kB / 344.1 MB, free: 9.477 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.3758, allocations: 96.56 kB / 344.2 MB, free: 9.352 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.376, allocations: 39.92 kB / 344.3 MB, free: 9.312 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.376, allocations: 4 kB / 344.3 MB, free: 9.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000417/0.3764, allocations: 117.5 kB / 344.4 MB, free: 9.188 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.3765, allocations: 4 kB / 344.4 MB, free: 9.184 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.3765, allocations: 4.188 kB / 344.4 MB, free: 9.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.3765, allocations: 8 kB / 344.4 MB, free: 9.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.3768, allocations: 23.92 kB / 344.4 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.3768, allocations: 4 kB / 344.4 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.377, allocations: 19.83 kB / 344.5 MB, free: 9.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.377, allocations: 7.953 kB / 344.5 MB, free: 9.117 MB / 282.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,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.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.0002488/0.3773, allocations: 149.8 kB / 344.6 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.3775, allocations: 85.34 kB / 344.7 MB, free: 8.871 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.917e-05/0.3776, allocations: 25.7 kB / 344.7 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3776, allocations: 4 kB / 344.7 MB, free: 8.836 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3776, allocations: 0 / 344.7 MB, free: 8.836 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.3776, allocations: 8.031 kB / 344.7 MB, free: 8.828 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.378, allocations: 245.5 kB / 345 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.378, allocations: 0 / 345 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.3782, allocations: 15.98 kB / 345 MB, free: 8.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.3782, allocations: 4 kB / 345 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.3782, allocations: 0 / 345 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.3782, allocations: 4.312 kB / 345 MB, free: 8.516 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3782, allocations: 4.031 kB / 345 MB, free: 8.512 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.3788, allocations: 224.4 kB / 345.2 MB, free: 8.246 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.379, allocations: 124.7 kB / 345.3 MB, free: 8.105 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.3791, allocations: 4 kB / 345.3 MB, free: 8.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.3792, allocations: 11.94 kB / 345.4 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/0.3793, allocations: 7.984 kB / 345.4 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.3793, allocations: 8 kB / 345.4 MB, free: 8.074 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004683/0.3798, allocations: 245.9 kB / 345.6 MB, free: 7.84 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3798, allocations: 0 / 345.6 MB, free: 7.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004002/0.3802, allocations: 36 kB / 345.6 MB, free: 7.805 MB / 282.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.001229/0.3815, allocations: 401.9 kB / 346 MB, free: 7.461 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000432/0.3819, allocations: 75.91 kB / 346.1 MB, free: 7.387 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.382, allocations: 3.938 kB / 346.1 MB, free: 7.383 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.3821, allocations: 27.98 kB / 346.1 MB, free: 7.355 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006116/0.3827, allocations: 77.05 kB / 346.2 MB, free: 7.277 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.3839, allocations: 450.7 kB / 346.7 MB, free: 6.797 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.3843, allocations: 0.7557 MB / 347.4 MB, free: 6.016 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.804e-05/0.3844, allocations: 19.44 kB / 347.4 MB, free: 6 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3845, allocations: 0 / 347.4 MB, free: 6 MB / 282.7 MB Notification: Performance of Templates: time 0.008728/0.3932, allocations: 3.057 MB / 350.5 MB, free: 2.941 MB / 282.7 MB