Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadModel(Modelica): time 2.107/2.107, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.3e-05, allocations: 4 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1334, allocations: 50.42 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3687/0.5022, allocations: 77.33 MB / 419.9 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.5025, allocations: 71.64 kB / 420 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006556/0.5091, allocations: 1.436 MB / 421.4 MB, free: 15.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5092, allocations: 4 kB / 421.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.5092, allocations: 4 kB / 421.4 MB, free: 15.55 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004904/0.5097, allocations: 350.2 kB / 421.8 MB, free: 15.17 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.5097, allocations: 8.031 kB / 421.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.28e-05/0.5098, allocations: 11.86 kB / 421.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.51, allocations: 182.8 kB / 422 MB, free: 14.93 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= -1 + sine.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.5102, allocations: 44.5 kB / 422 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.5102, allocations: 7.938 kB / 422 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000379/0.5106, allocations: 150.9 kB / 422.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.5107, allocations: 0 / 422.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.5107, allocations: 4 kB / 422.2 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.5107, allocations: 7.938 kB / 422.2 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.971e-05/0.5108, allocations: 29.92 kB / 422.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002362/0.5111, allocations: 193.1 kB / 422.4 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.5114, allocations: 155.9 kB / 422.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.852e-05/0.5115, allocations: 28.28 kB / 422.6 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.5115, allocations: 7.562 kB / 422.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.5116, allocations: 38.5 kB / 422.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.497e-06/0.5116, allocations: 0 / 422.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002699/0.5119, allocations: 75.3 kB / 422.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.512, allocations: 88.95 kB / 422.8 MB, free: 14.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.5121, allocations: 112.7 kB / 422.9 MB, free: 13.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.5121, allocations: 32.77 kB / 422.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.5122, allocations: 92.11 kB / 423 MB, free: 13.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.5123, allocations: 15.08 kB / 423 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.155e-06/0.5123, allocations: 4 kB / 423 MB, free: 13.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5124, allocations: 314.3 kB / 423.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.751e-05/0.5125, allocations: 11.44 kB / 423.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.118e-05/0.5126, allocations: 52.31 kB / 423.4 MB, free: 13.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.408e-05/0.5126, allocations: 19.81 kB / 423.4 MB, free: 13.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.031e-06/0.5126, allocations: 0 / 423.4 MB, free: 13.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001911/0.5128, allocations: 84.92 kB / 423.5 MB, free: 13.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.5129, allocations: 8 kB / 423.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.5129, allocations: 0 / 423.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.5129, allocations: 4 kB / 423.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.5131, allocations: 19.92 kB / 423.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.5131, allocations: 4 kB / 423.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.002e-05/0.5132, allocations: 15.09 kB / 423.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.5132, allocations: 7.953 kB / 423.5 MB, free: 13.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.984e-05/0.5133, allocations: 112.8 kB / 423.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.5135, allocations: 72.03 kB / 423.7 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.637e-05/0.5136, allocations: 11.73 kB / 423.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.5136, allocations: 4 kB / 423.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.81e-06/0.5136, allocations: 0 / 423.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.972e-06/0.5136, allocations: 0 / 423.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.5138, allocations: 179.3 kB / 423.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.302e-06/0.5138, allocations: 0 / 423.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.514, allocations: 15.98 kB / 423.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.053e-06/0.514, allocations: 0 / 423.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.514, allocations: 4 kB / 423.9 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.624e-06/0.514, allocations: 4 kB / 423.9 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.865e-06/0.514, allocations: 0 / 423.9 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.5143, allocations: 135.1 kB / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.879e-05/0.5144, allocations: 85.09 kB / 424.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.5144, allocations: 7.5 kB / 424.2 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.687e-05/0.5145, allocations: 12.17 kB / 424.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.93e-05/0.5146, allocations: 0 / 424.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.5146, allocations: 11.25 kB / 424.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.469e-05/0.5147, allocations: 94.83 kB / 424.3 MB, free: 12.47 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.35e-07/0.5147, allocations: 0 / 424.3 MB, free: 12.47 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003009/0.515, allocations: 11.12 kB / 424.3 MB, free: 12.46 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: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001535/0.5152, allocations: 106.6 kB / 424.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.5154, allocations: 49.11 kB / 424.4 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.5154, allocations: 0 / 424.4 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.121e-05/0.5154, allocations: 4 kB / 424.4 MB, free: 12.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008059/0.5163, allocations: 0.7157 MB / 425.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.5166, allocations: 104.7 kB / 425.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.517, allocations: 0.7043 MB / 426 MB, free: 10.74 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.636e-05/0.5171, allocations: 4.188 kB / 426 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.703e-05/0.5171, allocations: 15.42 kB / 426 MB, free: 10.72 MB / 346.7 MB Notification: Performance of SimCode: time 1.804e-06/0.5171, allocations: 0 / 426 MB, free: 10.72 MB / 346.7 MB Notification: Performance of Templates: time 0.003684/0.5208, allocations: 0.6591 MB / 426.6 MB, free: 10.08 MB / 346.7 MB