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 2.188/2.188, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.766e-05/2.757e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002352/0.1135, allocations: 1.289 MB / 346.3 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008799/0.1144, allocations: 359.5 kB / 346.6 MB, free: 7.301 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.112e-05/0.1145, allocations: 4 kB / 346.6 MB, free: 7.297 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.094e-05/0.1146, allocations: 3.938 kB / 346.6 MB, free: 7.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.1147, allocations: 7.984 kB / 346.6 MB, free: 7.285 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.115, allocations: 31.89 kB / 346.7 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.735e-05/0.1151, allocations: 31.95 kB / 346.7 MB, free: 7.223 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.077e-05/0.1152, allocations: 4 kB / 346.7 MB, free: 7.219 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.1153, allocations: 31.91 kB / 346.7 MB, free: 7.188 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.987e-05/0.1154, allocations: 27.91 kB / 346.8 MB, free: 7.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.806e-05/0.1154, allocations: 3.938 kB / 346.8 MB, free: 7.156 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.1155, allocations: 4 kB / 346.8 MB, free: 7.152 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.975e-05/0.1155, allocations: 15.92 kB / 346.8 MB, free: 7.137 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.1155, allocations: 4 kB / 346.8 MB, free: 7.133 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.1157, allocations: 39.91 kB / 346.8 MB, free: 7.094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1157, allocations: 0 / 346.8 MB, free: 7.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1157, allocations: 0 / 346.8 MB, free: 7.094 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.1157, allocations: 3.938 kB / 346.8 MB, free: 7.09 MB / 282.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.000631/0.1163, allocations: 355.5 kB / 347.2 MB, free: 6.695 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1164, allocations: 8.031 kB / 347.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.1165, allocations: 19.86 kB / 347.2 MB, free: 6.668 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.1167, allocations: 190.8 kB / 347.4 MB, free: 6.441 MB / 282.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.1169, allocations: 33.7 kB / 347.4 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.1169, allocations: 4 kB / 347.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005332/0.1175, allocations: 164.9 kB / 347.6 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1175, allocations: 0 / 347.6 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.1175, allocations: 0 / 347.6 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.1175, allocations: 3.953 kB / 347.6 MB, free: 6.215 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002146/0.1178, allocations: 43.91 kB / 347.6 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002404/0.118, allocations: 182.5 kB / 347.8 MB, free: 5.941 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004114/0.1185, allocations: 170.4 kB / 348 MB, free: 5.738 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.1185, allocations: 0 / 348 MB, free: 5.738 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.1185, allocations: 34.56 kB / 348 MB, free: 5.695 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/0.1186, allocations: 4 kB / 348 MB, free: 5.691 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006084/0.1192, allocations: 198.7 kB / 348.2 MB, free: 5.473 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/0.1193, allocations: 89.05 kB / 348.3 MB, free: 5.367 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.1194, allocations: 113.1 kB / 348.4 MB, free: 5.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1194, allocations: 25.7 kB / 348.4 MB, free: 5.219 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.269e-05/0.1195, allocations: 154.6 kB / 348.6 MB, free: 5.066 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.1196, allocations: 11.89 kB / 348.6 MB, free: 5.055 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.765e-06/0.1196, allocations: 4 kB / 348.6 MB, free: 5.051 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1197, allocations: 314.8 kB / 348.9 MB, free: 4.734 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.597e-05/0.1198, allocations: 19.98 kB / 348.9 MB, free: 4.715 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.1199, allocations: 65.88 kB / 349 MB, free: 4.629 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.1201, allocations: 24 kB / 349 MB, free: 4.605 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1201, allocations: 4 kB / 349 MB, free: 4.602 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003032/0.1204, allocations: 101.5 kB / 349.1 MB, free: 4.496 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1204, allocations: 4 kB / 349.1 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1205, allocations: 0 / 349.1 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.1205, allocations: 4 kB / 349.1 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.1206, allocations: 20.41 kB / 349.1 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.1207, allocations: 4 kB / 349.2 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.806e-05/0.1208, allocations: 11.98 kB / 349.2 MB, free: 4.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.1208, allocations: 4 kB / 349.2 MB, free: 4.449 MB / 282.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.0001275/0.1209, allocations: 125.7 kB / 349.3 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.1211, allocations: 69.59 kB / 349.4 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.341e-05/0.1212, allocations: 20.34 kB / 349.4 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1212, allocations: 0 / 349.4 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1212, allocations: 4 kB / 349.4 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1212, allocations: 0 / 349.4 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.1214, allocations: 185.4 kB / 349.6 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1214, allocations: 4 kB / 349.6 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.1216, allocations: 11.98 kB / 349.6 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.1216, allocations: 0 / 349.6 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.1216, allocations: 4 kB / 349.6 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1216, allocations: 3.938 kB / 349.6 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1217, allocations: 0 / 349.6 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003724/0.122, allocations: 143.6 kB / 349.7 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.218e-05/0.1221, allocations: 89 kB / 349.8 MB, free: 3.691 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.1222, allocations: 4 kB / 349.8 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.1223, allocations: 4 kB / 349.8 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/0.1224, allocations: 11.98 kB / 349.8 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.1224, allocations: 4 kB / 349.8 MB, free: 3.668 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.241e-05/0.1225, allocations: 95.27 kB / 349.9 MB, free: 3.574 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1225, allocations: 0 / 349.9 MB, free: 3.574 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002799/0.1228, allocations: 12 kB / 349.9 MB, free: 3.562 MB / 282.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.0001486/0.1229, allocations: 99.25 kB / 350 MB, free: 3.453 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003109/0.1233, allocations: 68.09 kB / 350.1 MB, free: 3.387 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1233, allocations: 0 / 350.1 MB, free: 3.387 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.095e-05/0.1234, allocations: 11.98 kB / 350.1 MB, free: 3.375 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008387/0.1242, allocations: 0.7213 MB / 350.8 MB, free: 2.633 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005493/0.1248, allocations: 219.4 kB / 351.1 MB, free: 2.383 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.1251, allocations: 0.6965 MB / 351.7 MB, free: 1.66 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.1251, allocations: 11.44 kB / 351.8 MB, free: 1.648 MB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1252, allocations: 0 / 351.8 MB, free: 1.648 MB / 282.7 MB Notification: Performance of Templates: time 0.003303/0.1285, allocations: 0.9292 MB / 352.7 MB, free: 0.7227 MB / 282.7 MB