Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 225.8 MB / 239.4 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.093e-05, allocations: 4 kB / 292.7 MB, free: 8.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09195, allocations: 50.41 MB / 343.1 MB, free: 5.934 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3978/0.4898, allocations: 77.33 MB / 420.4 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.4902, allocations: 78.27 kB / 420.5 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006369/0.4965, allocations: 1.437 MB / 421.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.206e-06/0.4966, allocations: 0 / 421.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.4966, allocations: 0 / 421.9 MB, free: 15.6 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.0004943/0.4971, allocations: 350.2 kB / 422.3 MB, free: 15.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.4972, allocations: 8.031 kB / 422.3 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.981e-05/0.4973, allocations: 15.86 kB / 422.3 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.4975, allocations: 186.8 kB / 422.5 MB, free: 14.97 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.0001288/0.4977, allocations: 37.44 kB / 422.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.4977, allocations: 7.938 kB / 422.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.4981, allocations: 155.9 kB / 422.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.4981, allocations: 3.938 kB / 422.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.4982, allocations: 4 kB / 422.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.4982, allocations: 7.938 kB / 422.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.4983, allocations: 31.67 kB / 422.7 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002351/0.4986, allocations: 181.7 kB / 422.9 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.4989, allocations: 157.6 kB / 423 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.736e-05/0.499, allocations: 37.59 kB / 423.1 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.499, allocations: 0 / 423.1 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.4991, allocations: 34.5 kB / 423.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.55e-06/0.4991, allocations: 4 kB / 423.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002627/0.4994, allocations: 73.42 kB / 423.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.788e-05/0.4995, allocations: 88.64 kB / 423.3 MB, free: 14.1 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.4996, allocations: 124.2 kB / 423.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.4996, allocations: 25.7 kB / 423.4 MB, free: 13.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.481e-05/0.4997, allocations: 88.02 kB / 423.5 MB, free: 13.87 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.892e-05/0.4997, allocations: 11.89 kB / 423.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.012e-06/0.4998, allocations: 0 / 423.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.4999, allocations: 314.7 kB / 423.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.661e-05/0.5, allocations: 11.94 kB / 423.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.678e-05/0.5001, allocations: 61.44 kB / 423.9 MB, free: 13.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.467e-05/0.5001, allocations: 12.75 kB / 423.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.84e-06/0.5001, allocations: 0 / 423.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001968/0.5003, allocations: 89.23 kB / 424 MB, free: 13.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.5004, allocations: 4 kB / 424 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.28e-06/0.5004, allocations: 4 kB / 424 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.5004, allocations: 0 / 424 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.5006, allocations: 19.92 kB / 424 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.5006, allocations: 4 kB / 424 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.012e-05/0.5007, allocations: 12.06 kB / 424 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.5007, allocations: 15.7 kB / 424.1 MB, free: 13.31 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 0.0001004/0.5008, allocations: 108.9 kB / 424.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.501, allocations: 69.34 kB / 424.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.3e-05/0.5011, allocations: 20.42 kB / 424.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.931e-06/0.5011, allocations: 192 / 424.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.672e-06/0.5011, allocations: 0 / 424.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.131e-06/0.5011, allocations: 3.938 kB / 424.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.5013, allocations: 185 kB / 424.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.476e-06/0.5014, allocations: 0 / 424.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.5015, allocations: 15.98 kB / 424.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.154e-06/0.5015, allocations: 0 / 424.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.5015, allocations: 4 kB / 424.5 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.581e-06/0.5015, allocations: 0 / 424.5 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.049e-06/0.5015, allocations: 0 / 424.5 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.5018, allocations: 126.9 kB / 424.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.911e-05/0.5019, allocations: 92.91 kB / 424.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.5019, allocations: 0 / 424.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.88e-05/0.502, allocations: 11.92 kB / 424.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.394e-05/0.5021, allocations: 4 kB / 424.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.5021, allocations: 0 / 424.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.5022, allocations: 99.52 kB / 424.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.5023, allocations: 0 / 424.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002947/0.5026, allocations: 15.94 kB / 424.8 MB, free: 12.51 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.0001552/0.5027, allocations: 107.2 kB / 424.9 MB, free: 12.4 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.5029, allocations: 47.48 kB / 425 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5029, allocations: 0 / 425 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.429e-05/0.503, allocations: 4 kB / 425 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008115/0.5038, allocations: 0.7176 MB / 425.7 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.5042, allocations: 112.5 kB / 425.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.5045, allocations: 0.6996 MB / 426.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.063e-05/0.5046, allocations: 192 / 426.5 MB, free: 10.78 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.5046, allocations: 15.42 kB / 426.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of SimCode: time 1.696e-06/0.5047, allocations: 0 / 426.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of Templates: time 0.003511/0.5082, allocations: 0.6604 MB / 427.2 MB, free: 10.12 MB / 346.7 MB