Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.759e-05/3.764e-05, allocations: 4 kB / 292.2 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 50.41 MB / 342.6 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4311/0.5395, allocations: 83.63 MB / 426.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.5398, allocations: 67.78 kB / 426.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1512/0.6911, allocations: 43.4 MB / 469.7 MB, free: 3.691 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.6911, allocations: 0 / 469.7 MB, free: 3.691 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.695e-05/0.6912, allocations: 8 kB / 469.7 MB, free: 3.684 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001295/0.6925, allocations: 0.6935 MB / 470.4 MB, free: 2.926 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.6925, allocations: 8.031 kB / 470.4 MB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.6927, allocations: 70.53 kB / 470.5 MB, free: 2.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.6929, allocations: 51.44 kB / 470.6 MB, free: 2.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007151/0.6936, allocations: 355.2 kB / 470.9 MB, free: 2.402 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.6937, allocations: 20.78 kB / 470.9 MB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/0.6939, allocations: 36 kB / 471 MB, free: 2.348 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.6951, allocations: 473.8 kB / 471.4 MB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.6951, allocations: 3.953 kB / 471.4 MB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.6952, allocations: 12 kB / 471.4 MB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.6953, allocations: 8 kB / 471.5 MB, free: 1.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.6963, allocations: 353.4 kB / 471.8 MB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002765/0.6991, allocations: 1.07 MB / 472.9 MB, free: 396 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.7005, allocations: 399.4 kB / 473.3 MB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.701, allocations: 165.3 kB / 473.4 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001288/0.7012, allocations: 8.281 kB / 473.4 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000758/0.7019, allocations: 315.3 kB / 473.7 MB, free: 15.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 3.577e-06/0.702, allocations: 0 / 473.7 MB, free: 15.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.001517/0.7035, allocations: 0.5354 MB / 474.3 MB, free: 14.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/0.7036, allocations: 106.8 kB / 474.4 MB, free: 14.81 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004594/0.7041, allocations: 274.8 kB / 474.6 MB, free: 14.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.7042, allocations: 41.7 kB / 474.7 MB, free: 14.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.7044, allocations: 168.7 kB / 474.8 MB, free: 14.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.7045, allocations: 82.98 kB / 474.9 MB, free: 14.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.044e-05/0.7046, allocations: 12 kB / 474.9 MB, free: 14.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.7048, allocations: 338.8 kB / 475.3 MB, free: 13.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004915/0.7053, allocations: 160.8 kB / 475.4 MB, free: 13.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/0.7059, allocations: 211.7 kB / 475.6 MB, free: 13.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005901/0.7065, allocations: 241.8 kB / 475.9 MB, free: 13.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.7065, allocations: 0 / 475.9 MB, free: 13.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001596/0.7081, allocations: 0.6019 MB / 476.5 MB, free: 12.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.62e-05/0.7082, allocations: 59.41 kB / 476.5 MB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.7082, allocations: 4.031 kB / 476.5 MB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.7082, allocations: 4 kB / 476.5 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.7085, allocations: 59.89 kB / 476.6 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.7085, allocations: 4 kB / 476.6 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005527/0.7091, allocations: 47.81 kB / 476.6 MB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004019/0.7095, allocations: 287.7 kB / 476.9 MB, free: 12.18 MB / 394.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: 45 ($whenCondition1,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0003299/0.7099, allocations: 212.2 kB / 477.1 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.71, allocations: 39.56 kB / 477.2 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.7101, allocations: 35.09 kB / 477.2 MB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.7101, allocations: 0 / 477.2 MB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.7102, allocations: 7.984 kB / 477.2 MB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.7102, allocations: 0 / 477.2 MB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008874/0.7111, allocations: 465.3 kB / 477.7 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.7111, allocations: 4 kB / 477.7 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.7113, allocations: 51.91 kB / 477.7 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.7113, allocations: 0 / 477.7 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.7114, allocations: 55.92 kB / 477.8 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.7114, allocations: 0 / 477.8 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7115, allocations: 0 / 477.8 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.7129, allocations: 0.5675 MB / 478.3 MB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004418/0.7134, allocations: 188.7 kB / 478.5 MB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001727/0.7136, allocations: 20 kB / 478.6 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004723/0.7141, allocations: 51.81 kB / 478.6 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/0.7144, allocations: 79.86 kB / 478.7 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003991/0.7148, allocations: 283.7 kB / 479 MB, free: 10.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003273/0.7152, allocations: 203.1 kB / 479.2 MB, free: 9.836 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7152, allocations: 0 / 479.2 MB, free: 9.836 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006707/0.7158, allocations: 88 kB / 479.2 MB, free: 9.75 MB / 394.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: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * 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.001885/0.7177, allocations: 1.144 MB / 480.4 MB, free: 8.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.7191, allocations: 0.5063 MB / 480.9 MB, free: 8.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.7191, allocations: 4.062 kB / 480.9 MB, free: 8.035 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006733/0.7198, allocations: 335.2 kB / 481.2 MB, free: 7.684 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.7217, allocations: 282.5 kB / 481.5 MB, free: 7.418 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.7238, allocations: 0.6028 MB / 482.1 MB, free: 6.777 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.7243, allocations: 0.8199 MB / 482.9 MB, free: 5.93 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002033/0.7264, allocations: 0.747 MB / 483.7 MB, free: 5.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/0.7277, allocations: 330.8 kB / 484 MB, free: 4.855 MB / 394.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7277, allocations: 0 / 484 MB, free: 4.855 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04305/0.7708, allocations: 12.75 MB / 496.7 MB, free: 8.02 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003205/0.7711, allocations: 149.9 kB / 496.9 MB, free: 7.797 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/3.463, allocations: 3.938 kB / 496.9 MB, free: 7.793 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat