Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.117/2.117, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.337e-05/3.345e-05, allocations: 4.688 kB / 292.2 MB, free: 8.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1247, allocations: 50.41 MB / 342.6 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.5804, allocations: 76.35 MB / 419 MB, free: 1.449 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.5807, allocations: 75.2 kB / 419.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003442/0.5842, allocations: 0.886 MB / 420 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5842, allocations: 1.094 kB / 420 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.5842, allocations: 0 / 420 MB, free: 0.6172 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.0004398/0.5847, allocations: 334 kB / 420.3 MB, free: 256 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.5848, allocations: 8.031 kB / 420.3 MB, free: 248 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.222e-05/0.5848, allocations: 34 kB / 420.3 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/0.5849, allocations: 11.86 kB / 420.3 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.5851, allocations: 172.2 kB / 420.5 MB, free: 15.98 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.0001386/0.5853, allocations: 44.77 kB / 420.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.5853, allocations: 4 kB / 420.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003543/0.5857, allocations: 119.1 kB / 420.7 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.5857, allocations: 0 / 420.7 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.5857, allocations: 3.812 kB / 420.7 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.5857, allocations: 7.953 kB / 420.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.991e-05/0.5858, allocations: 23.3 kB / 420.7 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000227/0.5861, allocations: 160.3 kB / 420.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.5863, allocations: 138.3 kB / 421 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.145e-05/0.5864, allocations: 27.92 kB / 421 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.5865, allocations: 0 / 421 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.5865, allocations: 34.56 kB / 421.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.823e-06/0.5865, allocations: 0 / 421.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002147/0.5867, allocations: 67.84 kB / 421.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.5868, allocations: 59.34 kB / 421.2 MB, free: 15.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.735e-05/0.5869, allocations: 99.56 kB / 421.3 MB, free: 15.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.587, allocations: 29.7 kB / 421.3 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.587, allocations: 87.64 kB / 421.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.587, allocations: 7.891 kB / 421.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.5871, allocations: 0 / 421.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.5872, allocations: 314.1 kB / 421.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.581e-05/0.5872, allocations: 10.31 kB / 421.7 MB, free: 14.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.794e-05/0.5873, allocations: 31.61 kB / 421.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.27e-05/0.5874, allocations: 23.17 kB / 421.8 MB, free: 14.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5874, allocations: 0 / 421.8 MB, free: 14.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001457/0.5875, allocations: 64.06 kB / 421.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.5876, allocations: 8 kB / 421.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.5876, allocations: 4.156 kB / 421.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.5876, allocations: 4 kB / 421.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.708e-05/0.5877, allocations: 4 kB / 421.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.5877, allocations: 3.938 kB / 421.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.092e-05/0.5878, allocations: 7.953 kB / 421.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.5878, allocations: 3.984 kB / 421.9 MB, free: 14.54 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.0001016/0.5879, allocations: 116.1 kB / 422 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.588, allocations: 58.3 kB / 422 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.5881, allocations: 11.14 kB / 422 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.5881, allocations: 4 kB / 422 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.5881, allocations: 4 kB / 422.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.5881, allocations: 0 / 422.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001398/0.5883, allocations: 163.9 kB / 422.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5883, allocations: 0 / 422.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.578e-06/0.5883, allocations: 0 / 422.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.5883, allocations: 0 / 422.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.5883, allocations: 256 / 422.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.5883, allocations: 4 kB / 422.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.5884, allocations: 4 kB / 422.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/0.5886, allocations: 98.12 kB / 422.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.319e-05/0.5886, allocations: 77.11 kB / 422.4 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.5887, allocations: 7.938 kB / 422.4 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-05/0.5888, allocations: 4 kB / 422.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.078e-06/0.5888, allocations: 0 / 422.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.5888, allocations: 3.5 kB / 422.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.473e-05/0.5889, allocations: 87.27 kB / 422.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5889, allocations: 0 / 422.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002755/0.5892, allocations: 11.19 kB / 422.5 MB, free: 13.85 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.0006163/0.5898, allocations: 0.6489 MB / 423.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001767/0.59, allocations: 30.36 kB / 423.2 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.59, allocations: 384 / 423.2 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.312e-06/0.5901, allocations: 4 kB / 423.2 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008175/0.5909, allocations: 0.7182 MB / 423.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000424/0.5913, allocations: 115.8 kB / 424 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.5917, allocations: 0.6848 MB / 424.7 MB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.732e-05/0.5917, allocations: 4.188 kB / 424.7 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.5918, allocations: 22.61 kB / 424.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5918, allocations: 0 / 424.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01986/0.6117, allocations: 1.411 MB / 426.1 MB, free: 10.22 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000354/0.6121, allocations: 176.3 kB / 426.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.363/2.975, allocations: 0 / 426.3 MB, free: 9.992 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat