Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadModel(Modelica): time 1.895/1.895, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.34e-05/3.345e-05, allocations: 8 kB / 292.1 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 50.41 MB / 342.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3972/0.5168, allocations: 77.43 MB / 420 MB, free: 308 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.5171, allocations: 72.39 kB / 420.1 MB, free: 268 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005999/0.5231, allocations: 1.428 MB / 421.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.5232, allocations: 0 / 421.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.5232, allocations: 8 kB / 421.5 MB, free: 15.02 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.0004644/0.5237, allocations: 356.7 kB / 421.8 MB, free: 14.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.5237, allocations: 8.031 kB / 421.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.944e-05/0.5238, allocations: 11.86 kB / 421.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.524, allocations: 182.5 kB / 422 MB, free: 14.39 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.0001263/0.5242, allocations: 47.02 kB / 422.1 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.5242, allocations: 7.938 kB / 422.1 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/0.5246, allocations: 155.3 kB / 422.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.57e-06/0.5246, allocations: 4 kB / 422.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.5246, allocations: 0 / 422.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.355e-06/0.5246, allocations: 3.953 kB / 422.2 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.63e-05/0.5247, allocations: 29.23 kB / 422.3 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002226/0.525, allocations: 184.4 kB / 422.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.5253, allocations: 161.2 kB / 422.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.972e-05/0.5254, allocations: 33.22 kB / 422.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.5254, allocations: 3.938 kB / 422.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.5255, allocations: 42.42 kB / 422.7 MB, free: 13.69 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.397e-06/0.5255, allocations: 0 / 422.7 MB, free: 13.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.00024/0.5257, allocations: 76.69 kB / 422.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.717e-05/0.5258, allocations: 84.89 kB / 422.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.526, allocations: 116.4 kB / 423 MB, free: 13.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.526, allocations: 25.7 kB / 423 MB, free: 13.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.5261, allocations: 158.4 kB / 423.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.5261, allocations: 3.906 kB / 423.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.579e-06/0.5262, allocations: 7.844 kB / 423.2 MB, free: 13.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5263, allocations: 318.8 kB / 423.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.927e-05/0.5264, allocations: 11.75 kB / 423.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.204e-05/0.5265, allocations: 49.89 kB / 423.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.4e-05/0.5265, allocations: 19.67 kB / 423.5 MB, free: 12.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.277e-06/0.5265, allocations: 4 kB / 423.5 MB, free: 12.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001926/0.5268, allocations: 81.12 kB / 423.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.5268, allocations: 8.219 kB / 423.6 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.5268, allocations: 0 / 423.6 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.5268, allocations: 4 kB / 423.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.527, allocations: 19.92 kB / 423.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.527, allocations: 4 kB / 423.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.43e-05/0.5271, allocations: 7.938 kB / 423.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.5271, allocations: 11.94 kB / 423.7 MB, free: 12.67 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.673e-05/0.5272, allocations: 108.9 kB / 423.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.5274, allocations: 69.09 kB / 423.9 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.5274, allocations: 16.38 kB / 423.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.269e-06/0.5275, allocations: 4 kB / 423.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.973e-06/0.5275, allocations: 0 / 423.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.5275, allocations: 3.984 kB / 423.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.5277, allocations: 176.8 kB / 424.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.691e-06/0.5277, allocations: 4 kB / 424.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.5278, allocations: 16.11 kB / 424.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.794e-06/0.5278, allocations: 0 / 424.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.5278, allocations: 4.125 kB / 424.1 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.609e-06/0.5279, allocations: 8 kB / 424.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.789e-06/0.5279, allocations: 3.938 kB / 424.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.5281, allocations: 122.7 kB / 424.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.614e-05/0.5282, allocations: 92.75 kB / 424.3 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.5283, allocations: 0 / 424.3 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.931e-05/0.5284, allocations: 7.625 kB / 424.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.5284, allocations: 19.91 kB / 424.3 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.5284, allocations: 0 / 424.3 MB, free: 11.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.606e-05/0.5285, allocations: 91.22 kB / 424.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.19e-07/0.5285, allocations: 0 / 424.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000285/0.5288, allocations: 15.69 kB / 424.4 MB, free: 11.87 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.0001376/0.529, allocations: 107.8 kB / 424.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001491/0.5292, allocations: 43.88 kB / 424.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5292, allocations: 4.188 kB / 424.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.215e-05/0.5292, allocations: 0 / 424.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.53, allocations: 0.7137 MB / 425.3 MB, free: 11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000344/0.5303, allocations: 135.5 kB / 425.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.5307, allocations: 0.7018 MB / 426.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.632e-05/0.5308, allocations: 7.438 kB / 426.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of SimCode: time 1.384e-06/0.5308, allocations: 4 kB / 426.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Templates: time 0.002674/0.5335, allocations: 0.929 MB / 427.1 MB, free: 9.191 MB / 346.7 MB