Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.2/2.2, allocations: 218.4 MB / 231.1 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.139e-05/4.131e-05, allocations: 4 kB / 284.4 MB, free: 8.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1709, allocations: 50.36 MB / 334.8 MB, free: 5.633 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5055/0.6764, allocations: 77.55 MB / 412.3 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.6768, allocations: 76.89 kB / 412.4 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00335/0.6801, allocations: 0.8593 MB / 413.3 MB, free: 15.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6802, allocations: 0 / 413.3 MB, free: 15.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.6802, allocations: 1.969 kB / 413.3 MB, free: 15.94 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.0004376/0.6807, allocations: 337.4 kB / 413.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.6807, allocations: 16.03 kB / 413.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.614e-05/0.6808, allocations: 33.62 kB / 413.7 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.6808, allocations: 4 kB / 413.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.6811, allocations: 174.2 kB / 413.8 MB, free: 15.3 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.0001444/0.6812, allocations: 49.27 kB / 413.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.6813, allocations: 0 / 413.9 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.6816, allocations: 123.9 kB / 414 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.6817, allocations: 4 kB / 414 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.6817, allocations: 0 / 414 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.6817, allocations: 0 / 414 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.504e-05/0.6818, allocations: 15.12 kB / 414 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001744/0.682, allocations: 164.3 kB / 414.2 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.6822, allocations: 147.9 kB / 414.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.118e-05/0.6823, allocations: 24.36 kB / 414.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.6823, allocations: 4 kB / 414.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.6824, allocations: 30.56 kB / 414.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.914e-06/0.6824, allocations: 0 / 414.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001959/0.6826, allocations: 59.61 kB / 414.4 MB, free: 14.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.6827, allocations: 55.41 kB / 414.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.913e-05/0.6828, allocations: 107.5 kB / 414.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.6828, allocations: 25.7 kB / 414.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.812e-05/0.6829, allocations: 87.02 kB / 414.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.6829, allocations: 7.984 kB / 414.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.6829, allocations: 0 / 414.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.6831, allocations: 317.3 kB / 415 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.669e-05/0.6831, allocations: 11.06 kB / 415 MB, free: 14.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.479e-05/0.6832, allocations: 39.22 kB / 415.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.014e-05/0.6832, allocations: 18.81 kB / 415.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.6832, allocations: 0 / 415.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000148/0.6834, allocations: 71.42 kB / 415.2 MB, free: 13.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.6834, allocations: 8 kB / 415.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.6834, allocations: 0 / 415.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.6835, allocations: 8.141 kB / 415.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.383e-05/0.6835, allocations: 15.31 kB / 415.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.6836, allocations: 0 / 415.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.364e-05/0.6836, allocations: 3.938 kB / 415.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.6836, allocations: 4 kB / 415.2 MB, free: 13.86 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.0001039/0.6837, allocations: 120.1 kB / 415.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.6839, allocations: 64.64 kB / 415.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.122e-05/0.6839, allocations: 6.406 kB / 415.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.6839, allocations: 0 / 415.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.684, allocations: 4 kB / 415.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.684, allocations: 0 / 415.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.6841, allocations: 159.9 kB / 415.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.6842, allocations: 4 kB / 415.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.469e-05/0.6842, allocations: 3.984 kB / 415.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.6842, allocations: 256 / 415.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.6842, allocations: 3.953 kB / 415.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.6843, allocations: 4 kB / 415.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.6843, allocations: 0 / 415.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.6845, allocations: 94.47 kB / 415.7 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.6846, allocations: 77.11 kB / 415.7 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.6846, allocations: 4 kB / 415.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.6848, allocations: 11.31 kB / 415.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-06/0.6848, allocations: 0 / 415.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.6848, allocations: 4 kB / 415.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.423e-05/0.6849, allocations: 79.28 kB / 415.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6849, allocations: 0 / 415.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004454/0.6854, allocations: 11.38 kB / 415.8 MB, free: 13.16 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.0007138/0.6861, allocations: 0.6496 MB / 416.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001699/0.6863, allocations: 30.62 kB / 416.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6863, allocations: 0 / 416.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.633e-06/0.6863, allocations: 0 / 416.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.6874, allocations: 0.7222 MB / 417.2 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005568/0.6879, allocations: 119.4 kB / 417.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.6883, allocations: 0.6887 MB / 418 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.684e-05/0.6884, allocations: 4.188 kB / 418.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.6885, allocations: 11 kB / 418.1 MB, free: 10.87 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6885, allocations: 64 / 418.1 MB, free: 10.87 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07507/0.7635, allocations: 1.428 MB / 419.5 MB, free: 9.504 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003403/0.764, allocations: 179 kB / 419.7 MB, free: 9.281 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/3.016, allocations: 0 / 419.7 MB, free: 9.281 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat