Running command: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.323/2.323, allocations: 218.4 MB / 234.2 MB, free: 4.719 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 3.715e-05/3.734e-05, allocations: 4 kB / 287.6 MB, free: 15.19 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3468, allocations: 50.37 MB / 338 MB, free: 15.97 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.002667/0.3495, allocations: 1.254 MB / 339.2 MB, free: 14.7 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.3507, allocations: 464.1 kB / 339.7 MB, free: 14.23 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.415e-05/0.3508, allocations: 4 kB / 339.7 MB, free: 14.23 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.3509, allocations: 3.938 kB / 339.7 MB, free: 14.23 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.351, allocations: 7.984 kB / 339.7 MB, free: 14.22 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.3513, allocations: 43.83 kB / 339.7 MB, free: 14.18 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 9.041e-05/0.3514, allocations: 23.91 kB / 339.8 MB, free: 14.15 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 8.458e-05/0.3515, allocations: 11.98 kB / 339.8 MB, free: 14.14 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 8.306e-05/0.3516, allocations: 12 kB / 339.8 MB, free: 14.13 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 7.411e-05/0.3517, allocations: 23.91 kB / 339.8 MB, free: 14.11 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.705e-05/0.3517, allocations: 0 / 339.8 MB, free: 14.11 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.3517, allocations: 0 / 339.8 MB, free: 14.11 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 4.153e-05/0.3518, allocations: 11.94 kB / 339.8 MB, free: 14.09 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.3518, allocations: 4 kB / 339.8 MB, free: 14.09 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 8.777e-05/0.3519, allocations: 27.94 kB / 339.8 MB, free: 14.06 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3519, allocations: 8 kB / 339.9 MB, free: 14.05 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.655e-06/0.352, allocations: 0 / 339.9 MB, free: 14.05 MB / 282.8 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.352, allocations: 0 / 339.9 MB, free: 14.05 MB / 282.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005397/0.3525, allocations: 357.1 kB / 340.2 MB, free: 13.66 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3526, allocations: 8.031 kB / 340.2 MB, free: 13.65 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.211e-05/0.3526, allocations: 7.906 kB / 340.2 MB, free: 13.64 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.3529, allocations: 198.8 kB / 340.4 MB, free: 13.41 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.3529, allocations: 4 kB / 340.4 MB, free: 13.41 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.3529, allocations: 4 kB / 340.4 MB, free: 13.4 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.3533, allocations: 105 kB / 340.5 MB, free: 13.28 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.3533, allocations: 0 / 340.5 MB, free: 13.28 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.3533, allocations: 4 kB / 340.5 MB, free: 13.28 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.3534, allocations: 4 kB / 340.5 MB, free: 13.27 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.3535, allocations: 15.98 kB / 340.5 MB, free: 13.26 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004005/0.3539, allocations: 277.5 kB / 340.8 MB, free: 12.93 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.354, allocations: 41.22 kB / 340.9 MB, free: 12.88 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.3541, allocations: 0 / 340.9 MB, free: 12.88 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.3541, allocations: 42.56 kB / 340.9 MB, free: 12.82 MB / 282.8 MB Notification: Performance of pre-optimization done (n=2): time 1.542e-06/0.3541, allocations: 3.938 kB / 340.9 MB, free: 12.82 MB / 282.8 MB Notification: Performance of matching and sorting (n=2): time 0.0003533/0.3545, allocations: 65.67 kB / 341 MB, free: 12.75 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.3546, allocations: 85.05 kB / 341.1 MB, free: 12.65 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.3548, allocations: 130.2 kB / 341.2 MB, free: 12.51 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.3548, allocations: 25.7 kB / 341.2 MB, free: 12.48 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3549, allocations: 162.5 kB / 341.4 MB, free: 12.32 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.355, allocations: 3.984 kB / 341.4 MB, free: 12.32 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.355, allocations: 0 / 341.4 MB, free: 12.32 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3551, allocations: 314.8 kB / 341.7 MB, free: 12 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.881e-05/0.3552, allocations: 8 kB / 341.7 MB, free: 11.99 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.197e-05/0.3553, allocations: 25.7 kB / 341.7 MB, free: 11.96 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.522e-05/0.3554, allocations: 12 kB / 341.7 MB, free: 11.95 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3554, allocations: 0 / 341.7 MB, free: 11.95 MB / 282.8 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001987/0.3556, allocations: 57.61 kB / 341.8 MB, free: 11.89 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3556, allocations: 8.125 kB / 341.8 MB, free: 11.88 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3557, allocations: 4 kB / 341.8 MB, free: 11.88 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3557, allocations: 0 / 341.8 MB, free: 11.88 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3558, allocations: 4 kB / 341.8 MB, free: 11.87 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3558, allocations: 4 kB / 341.8 MB, free: 11.87 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.298e-05/0.3559, allocations: 3.984 kB / 341.8 MB, free: 11.86 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.3559, allocations: 7.953 kB / 341.8 MB, free: 11.86 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001136/0.3561, allocations: 117.8 kB / 341.9 MB, free: 11.73 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.762e-05/0.3561, allocations: 41.55 kB / 342 MB, free: 11.68 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.415e-05/0.3562, allocations: 19.81 kB / 342 MB, free: 11.66 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3562, allocations: 0 / 342 MB, free: 11.66 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3562, allocations: 4 kB / 342 MB, free: 11.66 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3562, allocations: 0 / 342 MB, free: 11.66 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.3565, allocations: 165.6 kB / 342.1 MB, free: 11.45 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3565, allocations: 0 / 342.1 MB, free: 11.45 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.58e-05/0.3566, allocations: 8 kB / 342.2 MB, free: 11.44 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3566, allocations: 0 / 342.2 MB, free: 11.44 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.3566, allocations: 7.984 kB / 342.2 MB, free: 11.43 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3567, allocations: 32 / 342.2 MB, free: 11.43 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3567, allocations: 4 kB / 342.2 MB, free: 11.43 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.357, allocations: 177.9 kB / 342.3 MB, free: 11.23 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.146e-05/0.3571, allocations: 96.98 kB / 342.4 MB, free: 11.12 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.3571, allocations: 4.031 kB / 342.4 MB, free: 11.11 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.957e-05/0.3572, allocations: 7.984 kB / 342.4 MB, free: 11.11 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.3573, allocations: 0 / 342.4 MB, free: 11.11 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.3573, allocations: 4 kB / 342.4 MB, free: 11.1 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001164/0.3574, allocations: 114 kB / 342.6 MB, free: 10.99 MB / 282.8 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3574, allocations: 0 / 342.6 MB, free: 10.99 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002725/0.3577, allocations: 7.938 kB / 342.6 MB, free: 10.98 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001267/0.3578, allocations: 99.25 kB / 342.7 MB, free: 10.88 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.000213/0.3581, allocations: 23.98 kB / 342.7 MB, free: 10.85 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3581, allocations: 0 / 342.7 MB, free: 10.85 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 8.038e-05/0.3582, allocations: 15.94 kB / 342.7 MB, free: 10.84 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.3585, allocations: 12.02 kB / 342.7 MB, free: 10.82 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004712/0.359, allocations: 212.3 kB / 342.9 MB, free: 10.58 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.3593, allocations: 0.6926 MB / 343.6 MB, free: 9.863 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.957e-05/0.3594, allocations: 11.44 kB / 343.6 MB, free: 9.852 MB / 282.8 MB Notification: Performance of SimCode: time 1.042e-06/0.3594, allocations: 4 kB / 343.6 MB, free: 9.848 MB / 282.8 MB Notification: Performance of Templates: time 0.002731/0.3621, allocations: 0.7001 MB / 344.3 MB, free: 9.152 MB / 282.8 MB