Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadModel(Modelica_Synchronous): time 1.939/1.939, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.991e-05/4.004e-05, allocations: 8 kB / 284.3 MB, free: 8.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08429/0.08435, allocations: 50.36 MB / 334.7 MB, free: 6.211 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.4428, allocations: 82.05 MB / 416.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.4431, allocations: 85.12 kB / 416.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02655/0.4697, allocations: 6.421 MB / 423.2 MB, free: 6.777 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.389e-06/0.4697, allocations: 0 / 423.2 MB, free: 6.777 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.693e-05/0.4697, allocations: 4 kB / 423.2 MB, free: 6.773 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.0007153/0.4705, allocations: 0.4946 MB / 423.7 MB, free: 6.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.4705, allocations: 8.031 kB / 423.7 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.595e-05/0.4706, allocations: 23.72 kB / 423.8 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005292/0.4712, allocations: 279.5 kB / 424 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.955e-05/0.4712, allocations: 11.77 kB / 424 MB, free: 5.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.4712, allocations: 11.88 kB / 424.1 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.4716, allocations: 152.4 kB / 424.2 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.944e-06/0.4716, allocations: 0 / 424.2 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.4717, allocations: 4 kB / 424.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.001e-06/0.4717, allocations: 0 / 424.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.4718, allocations: 34.11 kB / 424.2 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006708/0.4725, allocations: 411.2 kB / 424.6 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.4728, allocations: 106.3 kB / 424.7 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.559e-05/0.4729, allocations: 49.39 kB / 424.8 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.4729, allocations: 3.984 kB / 424.8 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/0.4731, allocations: 84.83 kB / 424.9 MB, free: 5.066 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.829e-06/0.4731, allocations: 0 / 424.9 MB, free: 5.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003424/0.4735, allocations: 118.5 kB / 425 MB, free: 4.961 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.4736, allocations: 165.7 kB / 425.2 MB, free: 4.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.4741, allocations: 293.5 kB / 425.4 MB, free: 4.523 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.4741, allocations: 25.7 kB / 425.5 MB, free: 4.492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.4742, allocations: 186 kB / 425.6 MB, free: 4.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.4743, allocations: 18.94 kB / 425.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-06/0.4743, allocations: 0 / 425.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4745, allocations: 326.4 kB / 426 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.863e-05/0.4745, allocations: 26.98 kB / 426 MB, free: 3.973 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.4747, allocations: 84.91 kB / 426.1 MB, free: 3.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.69e-05/0.4748, allocations: 38.17 kB / 426.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.149e-06/0.4748, allocations: 0 / 426.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002483/0.4751, allocations: 105 kB / 426.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.4751, allocations: 4 kB / 426.2 MB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.9e-06/0.4751, allocations: 4 kB / 426.2 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.4752, allocations: 0 / 426.2 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.4753, allocations: 19.98 kB / 426.3 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.4753, allocations: 3.938 kB / 426.3 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.4755, allocations: 12.11 kB / 426.3 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.4755, allocations: 7.438 kB / 426.3 MB, free: 3.715 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,subSample.y,subSample.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.0001117/0.4756, allocations: 120.3 kB / 426.4 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.4758, allocations: 63.73 kB / 426.5 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002975/0.4761, allocations: 122.8 kB / 426.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.4761, allocations: 0 / 426.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.4761, allocations: 64 / 426.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4762, allocations: 8 kB / 426.6 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.4765, allocations: 253.5 kB / 426.8 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.76e-06/0.4765, allocations: 0 / 426.8 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.906e-05/0.4766, allocations: 12 kB / 426.9 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.616e-06/0.4766, allocations: 128 / 426.9 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.4767, allocations: 19.05 kB / 426.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.208e-06/0.4767, allocations: 3.938 kB / 426.9 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.046e-06/0.4767, allocations: 0 / 426.9 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.477, allocations: 194.1 kB / 427.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.4772, allocations: 126.6 kB / 427.2 MB, free: 2.789 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.739e-05/0.4773, allocations: 7.984 kB / 427.2 MB, free: 2.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.4774, allocations: 2.312 kB / 427.2 MB, free: 2.781 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.4775, allocations: 15.05 kB / 427.2 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.4775, allocations: 4 kB / 427.2 MB, free: 2.766 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003384/0.4779, allocations: 235.4 kB / 427.4 MB, free: 2.578 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.86e-07/0.4779, allocations: 4 kB / 427.4 MB, free: 2.574 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004068/0.4783, allocations: 54.56 kB / 427.5 MB, free: 2.527 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,subSample.y,sample.y,subSample.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.001445/0.4797, allocations: 406.9 kB / 427.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.4801, allocations: 86.28 kB / 428 MB, free: 2.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4801, allocations: 7.875 kB / 428 MB, free: 2.105 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.798e-05/0.4802, allocations: 26.69 kB / 428 MB, free: 2.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.4806, allocations: 57.06 kB / 428.1 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006802/0.4813, allocations: 316.5 kB / 428.4 MB, free: 1.738 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.4818, allocations: 0.7513 MB / 429.1 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.96e-05/0.4819, allocations: 23.42 kB / 429.2 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of SimCode: time 1.445e-06/0.4819, allocations: 0 / 429.2 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of Templates: time 0.006444/0.4883, allocations: 2.911 MB / 432.1 MB, free: 14.06 MB / 362.7 MB