Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadModel(Modelica): time 2.121/2.121, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.303e-05/4.328e-05, allocations: 4 kB / 292.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 50.42 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3738/0.5035, allocations: 79.51 MB / 422.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.5038, allocations: 77.2 kB / 422.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01245/0.5163, allocations: 2.974 MB / 425.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.359e-06/0.5163, allocations: 0 / 425.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.5163, allocations: 4 kB / 425.7 MB, free: 12.13 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0009212/0.5173, allocations: 499.2 kB / 426.1 MB, free: 11.6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.5173, allocations: 8.031 kB / 426.1 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.268e-05/0.5174, allocations: 31.66 kB / 426.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.5178, allocations: 229.2 kB / 426.4 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.966e-05/0.5179, allocations: 41.89 kB / 426.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.275e-05/0.518, allocations: 18.75 kB / 426.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.5187, allocations: 297.2 kB / 426.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.5187, allocations: 0 / 426.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.5188, allocations: 7.391 kB / 426.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.5188, allocations: 4 kB / 426.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.5191, allocations: 102.5 kB / 426.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.5201, allocations: 488.8 kB / 427.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003699/0.5205, allocations: 154.4 kB / 427.5 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/0.5207, allocations: 87.27 kB / 427.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.5208, allocations: 4 kB / 427.6 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002395/0.521, allocations: 92.19 kB / 427.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 3.232e-06/0.521, allocations: 0 / 427.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005068/0.5216, allocations: 174.5 kB / 427.8 MB, free: 10.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.416e-05/0.5217, allocations: 88.95 kB / 427.9 MB, free: 9.953 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.5218, allocations: 135.9 kB / 428.1 MB, free: 9.824 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.5219, allocations: 33.52 kB / 428.1 MB, free: 9.789 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.395e-05/0.522, allocations: 115.2 kB / 428.2 MB, free: 9.684 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.799e-05/0.5221, allocations: 46.61 kB / 428.2 MB, free: 9.645 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/0.5221, allocations: 3.5 kB / 428.3 MB, free: 9.645 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.5223, allocations: 333 kB / 428.6 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.5224, allocations: 41.05 kB / 428.6 MB, free: 9.293 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.5227, allocations: 127.4 kB / 428.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.5228, allocations: 80.88 kB / 428.8 MB, free: 9.082 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.784e-06/0.5229, allocations: 0 / 428.8 MB, free: 9.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005189/0.5234, allocations: 223.4 kB / 429 MB, free: 8.887 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.5235, allocations: 33.7 kB / 429.1 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.428e-06/0.5235, allocations: 0 / 429.1 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.5235, allocations: 12.33 kB / 429.1 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.5238, allocations: 50.16 kB / 429.1 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.5238, allocations: 7.938 kB / 429.1 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.5241, allocations: 30.89 kB / 429.2 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.5241, allocations: 15.19 kB / 429.2 MB, free: 8.742 MB / 346.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.0001419/0.5243, allocations: 131.4 kB / 429.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002433/0.5246, allocations: 109.8 kB / 429.4 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.967e-05/0.5246, allocations: 21.81 kB / 429.4 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.232e-06/0.5247, allocations: 4 kB / 429.4 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.5247, allocations: 7.984 kB / 429.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.516e-06/0.5247, allocations: 0 / 429.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007527/0.5254, allocations: 457.8 kB / 429.9 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.742e-06/0.5255, allocations: 0 / 429.9 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.5258, allocations: 43.97 kB / 429.9 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.401e-06/0.5258, allocations: 0 / 429.9 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.5258, allocations: 11.23 kB / 430 MB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.756e-06/0.5258, allocations: 3.938 kB / 430 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.875e-06/0.5258, allocations: 0 / 430 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004897/0.5263, allocations: 299 kB / 430.3 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.323e-05/0.5264, allocations: 92.92 kB / 430.3 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.009e-05/0.5265, allocations: 3.125 kB / 430.3 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002633/0.5268, allocations: 27.09 kB / 430.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/0.5269, allocations: 15.19 kB / 430.4 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.239e-05/0.5269, allocations: 15.05 kB / 430.4 MB, free: 7.566 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001142/0.527, allocations: 111.2 kB / 430.5 MB, free: 7.469 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.13e-07/0.5271, allocations: 4 kB / 430.5 MB, free: 7.465 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004386/0.5275, allocations: 42.56 kB / 430.6 MB, free: 7.43 MB / 346.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.0001768/0.5277, allocations: 115.4 kB / 430.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004422/0.5282, allocations: 203.1 kB / 430.9 MB, free: 7.137 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.54e-06/0.5282, allocations: 0 / 430.9 MB, free: 7.137 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.5283, allocations: 38.81 kB / 430.9 MB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.5287, allocations: 61.52 kB / 431 MB, free: 7.066 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006618/0.5294, allocations: 226.3 kB / 431.2 MB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.5299, allocations: 0.7355 MB / 431.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.53, allocations: 17.33 kB / 431.9 MB, free: 6.078 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.759e-05/0.5301, allocations: 19.44 kB / 432 MB, free: 6.062 MB / 346.7 MB Notification: Performance of SimCode: time 1.552e-06/0.5301, allocations: 0 / 432 MB, free: 6.062 MB / 346.7 MB Notification: Performance of Templates: time 0.006385/0.5365, allocations: 1.653 MB / 433.6 MB, free: 4.43 MB / 346.7 MB "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,rotationalClock.abs1.generateEvent,rotationalClock.abs2.generateEvent,rotationalClock.angle,rotationalClock.angular_offset.y_start,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width