Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.115/2.115, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.074e-05/4.085e-05, allocations: 4 kB / 292.2 MB, free: 8.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 50.42 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.5619, allocations: 77.38 MB / 420 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.5622, allocations: 78.58 kB / 420.1 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006528/0.5688, allocations: 1.44 MB / 421.5 MB, free: 15.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5688, allocations: 0 / 421.5 MB, free: 15.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.5688, allocations: 4 kB / 421.5 MB, free: 15.49 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.0005197/0.5694, allocations: 354.3 kB / 421.9 MB, free: 15.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.5694, allocations: 12.03 kB / 421.9 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.627e-05/0.5695, allocations: 34.44 kB / 421.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.5695, allocations: 11.86 kB / 421.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.5698, allocations: 186.8 kB / 422.1 MB, free: 14.82 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.000129/0.5699, allocations: 41.62 kB / 422.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.5699, allocations: 7.875 kB / 422.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.5704, allocations: 151.8 kB / 422.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.5704, allocations: 0 / 422.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.5704, allocations: 3.875 kB / 422.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.5704, allocations: 3.953 kB / 422.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.5706, allocations: 27.5 kB / 422.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00021/0.5708, allocations: 182.1 kB / 422.5 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.5711, allocations: 161.4 kB / 422.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.5712, allocations: 37.53 kB / 422.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.5713, allocations: 7.922 kB / 422.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.5713, allocations: 34.56 kB / 422.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.024e-06/0.5713, allocations: 0 / 422.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.00027/0.5716, allocations: 77.11 kB / 422.8 MB, free: 14.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.412e-05/0.5717, allocations: 92.59 kB / 422.9 MB, free: 13.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.5718, allocations: 112.4 kB / 423 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.5718, allocations: 33.64 kB / 423.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.5719, allocations: 154.5 kB / 423.2 MB, free: 13.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.572, allocations: 11.81 kB / 423.2 MB, free: 13.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.572, allocations: 0 / 423.2 MB, free: 13.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.5721, allocations: 314.8 kB / 423.6 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.656e-05/0.5722, allocations: 7.625 kB / 423.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.346e-05/0.5722, allocations: 57.62 kB / 423.6 MB, free: 13.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.06e-05/0.5723, allocations: 19.81 kB / 423.6 MB, free: 13.24 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.5723, allocations: 4 kB / 423.6 MB, free: 13.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002054/0.5725, allocations: 77.42 kB / 423.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.5726, allocations: 8.031 kB / 423.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.5726, allocations: 0 / 423.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.5726, allocations: 7.938 kB / 423.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.5728, allocations: 15.98 kB / 423.7 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.5728, allocations: 7.938 kB / 423.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.461e-05/0.5729, allocations: 11.83 kB / 423.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.5729, allocations: 4 kB / 423.8 MB, free: 13.11 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.463e-05/0.573, allocations: 113.5 kB / 423.9 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.5732, allocations: 77.27 kB / 424 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.981e-05/0.5733, allocations: 8.438 kB / 424 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.5733, allocations: 4 kB / 424 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.5733, allocations: 0 / 424 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.5733, allocations: 0 / 424 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.5735, allocations: 181 kB / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.5735, allocations: 4 kB / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.5736, allocations: 11.98 kB / 424.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.5736, allocations: 0 / 424.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.5737, allocations: 0 / 424.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.5737, allocations: 11.98 kB / 424.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.5737, allocations: 0 / 424.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.574, allocations: 126.9 kB / 424.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.16e-05/0.5741, allocations: 92.81 kB / 424.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.5741, allocations: 0 / 424.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.5742, allocations: 16.05 kB / 424.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.5743, allocations: 4 kB / 424.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.5743, allocations: 3.938 kB / 424.4 MB, free: 12.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.956e-05/0.5744, allocations: 99.58 kB / 424.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5744, allocations: 0 / 424.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002924/0.5747, allocations: 19.89 kB / 424.5 MB, free: 12.29 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.0006926/0.5754, allocations: 0.7554 MB / 425.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001745/0.5756, allocations: 46.42 kB / 425.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5756, allocations: 0 / 425.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.468e-05/0.5756, allocations: 3.25 kB / 425.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007158/0.5764, allocations: 0.7179 MB / 426 MB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005398/0.5769, allocations: 173.7 kB / 426.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.5772, allocations: 0.6926 MB / 426.9 MB, free: 9.848 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.401e-05/0.5773, allocations: 22.05 kB / 426.9 MB, free: 9.836 MB / 346.7 MB Notification: Performance of SimCode: time 7.22e-07/0.5773, allocations: 0 / 426.9 MB, free: 9.836 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.181/2.758, allocations: 1.292 MB / 428.2 MB, free: 8.555 MB / 346.7 MB