Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.106/2.106, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.052e-05/4.065e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5525, allocations: 76.41 MB / 419 MB, free: 1.348 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.5529, allocations: 74.33 kB / 419.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003564/0.5565, allocations: 0.881 MB / 420 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5565, allocations: 0 / 420 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.5566, allocations: 0 / 420 MB, free: 0.5195 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004527/0.557, allocations: 331 kB / 420.3 MB, free: 160 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.5571, allocations: 12.03 kB / 420.3 MB, free: 148 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.939e-05/0.5572, allocations: 30.56 kB / 420.4 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.5572, allocations: 11.86 kB / 420.4 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.5575, allocations: 179.4 kB / 420.6 MB, free: 15.88 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.5576, allocations: 40.88 kB / 420.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.5577, allocations: 7.938 kB / 420.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.5581, allocations: 118.1 kB / 420.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.5581, allocations: 0 / 420.7 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.5581, allocations: 7.859 kB / 420.7 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.5581, allocations: 11.94 kB / 420.7 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.54e-05/0.5582, allocations: 10.56 kB / 420.7 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.5584, allocations: 159.5 kB / 420.9 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.5587, allocations: 136.4 kB / 421 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.431e-05/0.5588, allocations: 28.23 kB / 421.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.5588, allocations: 0 / 421.1 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.5588, allocations: 38.5 kB / 421.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.994e-06/0.5588, allocations: 0 / 421.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002322/0.5591, allocations: 62.58 kB / 421.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.5592, allocations: 58.67 kB / 421.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.569e-05/0.5593, allocations: 108.5 kB / 421.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.5593, allocations: 25.7 kB / 421.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.265e-05/0.5594, allocations: 156.9 kB / 421.5 MB, free: 14.87 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.5594, allocations: 7.906 kB / 421.5 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-06/0.5594, allocations: 3.125 kB / 421.5 MB, free: 14.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.5596, allocations: 310.8 kB / 421.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.395e-05/0.5596, allocations: 7.062 kB / 421.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.436e-05/0.5597, allocations: 35.73 kB / 421.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.887e-05/0.5597, allocations: 23.11 kB / 421.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5597, allocations: 0 / 421.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001505/0.5599, allocations: 63.81 kB / 421.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.5599, allocations: 4 kB / 421.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.5599, allocations: 4.156 kB / 422 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.56, allocations: 4 kB / 422 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.212e-05/0.5601, allocations: 4 kB / 422 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.5601, allocations: 7.938 kB / 422 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.581e-05/0.5601, allocations: 7.891 kB / 422 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.5602, allocations: 4 kB / 422 MB, free: 14.38 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.739e-05/0.5603, allocations: 116.2 kB / 422.1 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.5604, allocations: 54.77 kB / 422.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.67e-05/0.5605, allocations: 11.14 kB / 422.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.5605, allocations: 4 kB / 422.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5605, allocations: 0 / 422.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.5605, allocations: 0 / 422.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.5606, allocations: 161 kB / 422.3 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5607, allocations: 0 / 422.3 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.691e-05/0.5607, allocations: 11.06 kB / 422.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.5607, allocations: 0 / 422.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.5607, allocations: 0 / 422.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.5607, allocations: 0 / 422.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5607, allocations: 0 / 422.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.5609, allocations: 98.84 kB / 422.4 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.205e-05/0.561, allocations: 77.11 kB / 422.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.561, allocations: 3.625 kB / 422.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.599e-05/0.5611, allocations: 8 kB / 422.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.15e-05/0.5612, allocations: 0 / 422.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.5612, allocations: 4 kB / 422.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.777e-05/0.5612, allocations: 86.33 kB / 422.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5613, allocations: 0 / 422.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002772/0.5615, allocations: 11.25 kB / 422.6 MB, free: 13.69 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.0006231/0.5622, allocations: 0.6516 MB / 423.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.5624, allocations: 38.48 kB / 423.3 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/0.5624, allocations: 0 / 423.3 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.903e-06/0.5624, allocations: 384 / 423.3 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/0.5632, allocations: 0.715 MB / 424 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000468/0.5637, allocations: 139 kB / 424.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.564, allocations: 0.6887 MB / 424.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.642e-05/0.5641, allocations: 15.38 kB / 424.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.283e-06/0.5641, allocations: 0 / 424.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.246/2.811, allocations: 1.017 MB / 425.9 MB, free: 10.37 MB / 346.7 MB