Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.077/2.077, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.891e-05, allocations: 4 kB / 284.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1058, allocations: 50.36 MB / 334.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.528, allocations: 77.63 MB / 412.4 MB, free: 228 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.5284, allocations: 77.45 kB / 412.5 MB, free: 184 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003355/0.5318, allocations: 0.8673 MB / 413.3 MB, free: 15.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5318, allocations: 0 / 413.3 MB, free: 15.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.5318, allocations: 0 / 413.3 MB, free: 15.4 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004299/0.5323, allocations: 338.6 kB / 413.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.5323, allocations: 12.03 kB / 413.7 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.064e-05/0.5324, allocations: 34.56 kB / 413.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.5325, allocations: 0 / 413.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.5327, allocations: 181.6 kB / 413.9 MB, free: 14.76 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.0001413/0.5329, allocations: 44.64 kB / 413.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.5329, allocations: 4 kB / 413.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003546/0.5333, allocations: 128.8 kB / 414.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.5333, allocations: 4 kB / 414.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.5333, allocations: 0 / 414.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.5333, allocations: 0 / 414.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.506e-05/0.5334, allocations: 13.81 kB / 414.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.5336, allocations: 164.8 kB / 414.2 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.5339, allocations: 140.8 kB / 414.4 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.102e-05/0.534, allocations: 23.23 kB / 414.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.534, allocations: 8 kB / 414.4 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.534, allocations: 30.56 kB / 414.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 4.007e-06/0.5341, allocations: 3.984 kB / 414.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001985/0.5343, allocations: 59.73 kB / 414.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.5343, allocations: 58.91 kB / 414.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.5345, allocations: 99.95 kB / 414.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.5345, allocations: 33.64 kB / 414.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.092e-05/0.5346, allocations: 158.2 kB / 414.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.5346, allocations: 0 / 414.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.5346, allocations: 0 / 414.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.5348, allocations: 314.1 kB / 415.1 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.62e-05/0.5348, allocations: 8 kB / 415.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.987e-05/0.5349, allocations: 39.03 kB / 415.2 MB, free: 13.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.275e-05/0.535, allocations: 12 kB / 415.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.535, allocations: 0 / 415.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000157/0.5351, allocations: 71.64 kB / 415.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.5352, allocations: 8 kB / 415.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5352, allocations: 0 / 415.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.5352, allocations: 8.156 kB / 415.3 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.293e-05/0.5353, allocations: 7.562 kB / 415.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.5353, allocations: 3.984 kB / 415.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.968e-05/0.5354, allocations: 7.938 kB / 415.3 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.5354, allocations: 4 kB / 415.3 MB, free: 13.26 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 0.0001027/0.5355, allocations: 116.9 kB / 415.4 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.5356, allocations: 68.61 kB / 415.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.27e-05/0.5357, allocations: 7.906 kB / 415.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.5357, allocations: 0 / 415.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.5357, allocations: 4 kB / 415.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.5357, allocations: 0 / 415.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.5359, allocations: 161.6 kB / 415.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5359, allocations: 0 / 415.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.137e-06/0.5359, allocations: 0 / 415.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.5359, allocations: 0 / 415.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.536, allocations: 7.641 kB / 415.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.536, allocations: 0 / 415.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.536, allocations: 0 / 415.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/0.5362, allocations: 90.73 kB / 415.8 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.833e-05/0.5362, allocations: 81.02 kB / 415.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.5363, allocations: 7.188 kB / 415.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.8e-05/0.5364, allocations: 11.83 kB / 415.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-06/0.5364, allocations: 4 kB / 415.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.5364, allocations: 3.984 kB / 415.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.828e-05/0.5365, allocations: 86.59 kB / 416 MB, free: 12.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5365, allocations: 0 / 416 MB, free: 12.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002722/0.5368, allocations: 8 kB / 416 MB, free: 12.55 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.0005575/0.5373, allocations: 0.6395 MB / 416.6 MB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001389/0.5375, allocations: 35.11 kB / 416.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5375, allocations: 0 / 416.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.302e-06/0.5375, allocations: 0 / 416.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007751/0.5383, allocations: 0.7166 MB / 417.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004333/0.5388, allocations: 149.6 kB / 417.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.5391, allocations: 0.6848 MB / 418.2 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.232e-05/0.5391, allocations: 15.06 kB / 418.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5392, allocations: 0 / 418.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.366/2.905, allocations: 1.025 MB / 419.2 MB, free: 9.23 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat