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_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadModel(Modelica): time 2.111/2.111, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.837e-05/2.849e-05, allocations: 2.812 kB / 292.1 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09037, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.5345, allocations: 79.51 MB / 422.1 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.5348, allocations: 81.94 kB / 422.1 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01201/0.5468, allocations: 2.969 MB / 425.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.799e-06/0.5469, allocations: 4 kB / 425.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.5469, allocations: 4 kB / 425.1 MB, free: 12.09 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.0008721/0.5478, allocations: 496 kB / 425.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.5479, allocations: 12.03 kB / 425.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.872e-05/0.5479, allocations: 23.67 kB / 425.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.5483, allocations: 232.9 kB / 425.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.698e-05/0.5484, allocations: 37.47 kB / 425.9 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.5485, allocations: 14.81 kB / 425.9 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.5492, allocations: 308.9 kB / 426.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.5492, allocations: 0 / 426.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.5492, allocations: 10.27 kB / 426.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.5493, allocations: 4 kB / 426.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.5495, allocations: 95.11 kB / 426.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009575/0.5505, allocations: 487.1 kB / 426.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.5509, allocations: 156 kB / 427 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.5511, allocations: 98.58 kB / 427.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.5512, allocations: 4.062 kB / 427.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.5514, allocations: 94.61 kB / 427.2 MB, free: 10.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 3.258e-06/0.5514, allocations: 0 / 427.2 MB, free: 10.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004734/0.5519, allocations: 170 kB / 427.3 MB, free: 10.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.354e-05/0.552, allocations: 88.27 kB / 427.4 MB, free: 9.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.5522, allocations: 141.6 kB / 427.5 MB, free: 9.773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.5523, allocations: 33.02 kB / 427.6 MB, free: 9.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.336e-05/0.5524, allocations: 118.4 kB / 427.7 MB, free: 9.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/0.5524, allocations: 34.11 kB / 427.7 MB, free: 9.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.74e-05/0.5524, allocations: 7.5 kB / 427.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.5526, allocations: 330.5 kB / 428.1 MB, free: 9.277 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.5528, allocations: 38.36 kB / 428.1 MB, free: 9.254 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.553, allocations: 127.5 kB / 428.2 MB, free: 9.113 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.5531, allocations: 87.86 kB / 428.3 MB, free: 9.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.533e-06/0.5532, allocations: 0 / 428.3 MB, free: 9.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005166/0.5537, allocations: 228.2 kB / 428.5 MB, free: 8.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.389e-05/0.5538, allocations: 29.7 kB / 428.6 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.798e-06/0.5538, allocations: 4 kB / 428.6 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.5538, allocations: 4 kB / 428.6 MB, free: 8.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.5541, allocations: 55.09 kB / 428.6 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.5541, allocations: 7.938 kB / 428.6 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.5544, allocations: 35.23 kB / 428.7 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.395e-05/0.5544, allocations: 11.98 kB / 428.7 MB, free: 8.695 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.0001373/0.5546, allocations: 134.1 kB / 428.8 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.5548, allocations: 102.1 kB / 428.9 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.5549, allocations: 18.55 kB / 428.9 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.174e-06/0.5549, allocations: 4 kB / 428.9 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.5549, allocations: 0 / 428.9 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.593e-06/0.5549, allocations: 4 kB / 428.9 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007336/0.5557, allocations: 467.5 kB / 429.4 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.515e-06/0.5557, allocations: 3.984 kB / 429.4 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002598/0.556, allocations: 39.97 kB / 429.4 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.253e-06/0.556, allocations: 0 / 429.4 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.556, allocations: 7.188 kB / 429.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.199e-06/0.556, allocations: 0 / 429.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.556, allocations: 0 / 429.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.5565, allocations: 303 kB / 429.7 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.283e-05/0.5566, allocations: 92.91 kB / 429.8 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/0.5567, allocations: 17.36 kB / 429.8 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.5569, allocations: 19.73 kB / 429.9 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.557, allocations: 23.92 kB / 429.9 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.5571, allocations: 7.5 kB / 429.9 MB, free: 7.527 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.5572, allocations: 112.9 kB / 430 MB, free: 7.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.5572, allocations: 0 / 430 MB, free: 7.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004452/0.5577, allocations: 43.69 kB / 430 MB, free: 7.391 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.0001723/0.5579, allocations: 121.8 kB / 430.2 MB, free: 7.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004363/0.5583, allocations: 198.2 kB / 430.4 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.279e-06/0.5583, allocations: 0 / 430.4 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.5585, allocations: 38.62 kB / 430.4 MB, free: 7.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.5589, allocations: 60.12 kB / 430.4 MB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006452/0.5595, allocations: 232.8 kB / 430.7 MB, free: 6.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.56, allocations: 0.7326 MB / 431.4 MB, free: 6.051 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.5601, allocations: 13.33 kB / 431.4 MB, free: 6.035 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/0.5602, allocations: 22.73 kB / 431.4 MB, free: 6.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.516e-06/0.5602, allocations: 4 kB / 431.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of Templates: time 0.006235/0.5664, allocations: 1.641 MB / 433.1 MB, free: 4.391 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