Running command: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.497/2.497, allocations: 218.4 MB / 234.2 MB, free: 4.629 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.422e-05/3.414e-05, allocations: 0 / 287.6 MB, free: 15.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.387, allocations: 50.37 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.003054/0.3901, allocations: 1.611 MB / 339.6 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.3916, allocations: 0.5933 MB / 340.2 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.3918, allocations: 8 kB / 340.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.743e-05/0.3918, allocations: 11.86 kB / 340.2 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.392, allocations: 23.95 kB / 340.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004684/0.3924, allocations: 83.72 kB / 340.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.3926, allocations: 88.22 kB / 340.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.3929, allocations: 65.36 kB / 340.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.393, allocations: 43.91 kB / 340.5 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.3932, allocations: 67.73 kB / 340.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.082e-05/0.3932, allocations: 4 kB / 340.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.3933, allocations: 8 kB / 340.6 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.188e-05/0.3934, allocations: 19.86 kB / 340.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.3934, allocations: 8 kB / 340.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002418/0.3937, allocations: 141.5 kB / 340.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3937, allocations: 0 / 340.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3937, allocations: 4 kB / 340.7 MB, free: 13.06 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.3937, allocations: 0 / 340.7 MB, free: 13.06 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001135/0.3948, allocations: 0.4946 MB / 341.2 MB, free: 12.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3949, allocations: 8.031 kB / 341.2 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.204e-05/0.395, allocations: 19.81 kB / 341.3 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.3954, allocations: 231.2 kB / 341.5 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.909e-05/0.3955, allocations: 49.97 kB / 341.5 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.3955, allocations: 12 kB / 341.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.3967, allocations: 337 kB / 341.9 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3967, allocations: 0 / 341.9 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.3967, allocations: 8 kB / 341.9 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.3968, allocations: 0 / 341.9 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007699/0.3975, allocations: 152.4 kB / 342 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.3986, allocations: 470 kB / 342.5 MB, free: 11.13 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008657/0.3995, allocations: 217.1 kB / 342.7 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.396e-05/0.3995, allocations: 8.016 kB / 342.7 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005177/0.4, allocations: 119.3 kB / 342.8 MB, free: 10.77 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.356e-06/0.4001, allocations: 4 kB / 342.8 MB, free: 10.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.001414/0.4015, allocations: 306.4 kB / 343.1 MB, free: 10.46 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/0.4016, allocations: 85.11 kB / 343.2 MB, free: 10.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.4018, allocations: 133.7 kB / 343.3 MB, free: 10.22 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.4019, allocations: 41.62 kB / 343.4 MB, free: 10.17 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.402, allocations: 178.9 kB / 343.6 MB, free: 9.996 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.795e-05/0.402, allocations: 27.61 kB / 343.6 MB, free: 9.969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.4021, allocations: 8 kB / 343.6 MB, free: 9.961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4022, allocations: 322.8 kB / 343.9 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.4026, allocations: 68.19 kB / 344 MB, free: 9.57 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.403, allocations: 154.7 kB / 344.1 MB, free: 9.383 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003943/0.4034, allocations: 109.6 kB / 344.2 MB, free: 9.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4035, allocations: 0 / 344.2 MB, free: 9.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001014/0.4045, allocations: 287.8 kB / 344.5 MB, free: 8.977 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.921e-05/0.4046, allocations: 41.64 kB / 344.6 MB, free: 8.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.4046, allocations: 11.94 kB / 344.6 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.4046, allocations: 4 kB / 344.6 MB, free: 8.914 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.405, allocations: 39.97 kB / 344.6 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-05/0.405, allocations: 11.94 kB / 344.6 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.4053, allocations: 31.83 kB / 344.7 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.4054, allocations: 12 kB / 344.7 MB, free: 8.82 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0002173/0.4056, allocations: 141.8 kB / 344.8 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.406, allocations: 105.5 kB / 344.9 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.033e-05/0.4061, allocations: 28.66 kB / 344.9 MB, free: 8.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/0.4061, allocations: 4 kB / 344.9 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4061, allocations: 0 / 344.9 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4061, allocations: 3.938 kB / 344.9 MB, free: 8.523 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.4074, allocations: 0.5021 MB / 345.4 MB, free: 7.965 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.894e-06/0.4075, allocations: 3.953 kB / 345.5 MB, free: 7.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.4079, allocations: 43.97 kB / 345.5 MB, free: 7.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.4079, allocations: 7.938 kB / 345.5 MB, free: 7.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.4079, allocations: 3.984 kB / 345.5 MB, free: 7.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.408, allocations: 4 kB / 345.5 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.408, allocations: 0 / 345.5 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.409, allocations: 361.4 kB / 345.9 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.667e-05/0.4091, allocations: 92.86 kB / 346 MB, free: 7.414 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.4092, allocations: 4 kB / 346 MB, free: 7.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003189/0.4095, allocations: 23.98 kB / 346 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.4096, allocations: 19.97 kB / 346 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.4097, allocations: 7.984 kB / 346 MB, free: 7.359 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001132/0.4098, allocations: 108 kB / 346.1 MB, free: 7.254 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4098, allocations: 0 / 346.1 MB, free: 7.254 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003938/0.4102, allocations: 32 kB / 346.1 MB, free: 7.223 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.0001738/0.4104, allocations: 119.2 kB / 346.3 MB, free: 7.098 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009448/0.4114, allocations: 251.7 kB / 346.5 MB, free: 6.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4114, allocations: 4.062 kB / 346.5 MB, free: 6.836 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003348/0.4117, allocations: 63.91 kB / 346.6 MB, free: 6.773 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.4123, allocations: 74.92 kB / 346.6 MB, free: 6.703 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.4134, allocations: 405 kB / 347 MB, free: 6.277 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.4139, allocations: 0.7364 MB / 347.8 MB, free: 5.516 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.414, allocations: 19.42 kB / 347.8 MB, free: 5.496 MB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.414, allocations: 0 / 347.8 MB, free: 5.496 MB / 282.7 MB Notification: Performance of Templates: time 0.006134/0.4202, allocations: 2.097 MB / 349.9 MB, free: 3.398 MB / 282.7 MB