Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.398e-05/4.409e-05, allocations: 7.984 kB / 269.4 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1312, allocations: 47.57 MB / 317 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3999/0.5312, allocations: 82.48 MB / 399.5 MB, free: 5.152 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.5315, allocations: 67.28 kB / 399.6 MB, free: 5.117 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1596/0.6911, allocations: 42.86 MB / 442.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6912, allocations: 0 / 442.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.527e-05/0.6913, allocations: 12 kB / 442.4 MB, free: 2.117 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001388/0.6927, allocations: 0.6935 MB / 443.1 MB, free: 1.363 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.6927, allocations: 8.031 kB / 443.1 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001686/0.6929, allocations: 74.53 kB / 443.2 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.6931, allocations: 47.53 kB / 443.3 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007432/0.6938, allocations: 343.2 kB / 443.6 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.624e-05/0.6939, allocations: 24.78 kB / 443.6 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.6941, allocations: 39.98 kB / 443.7 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.6954, allocations: 469.8 kB / 444.1 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.6954, allocations: 0 / 444.1 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.6955, allocations: 16 kB / 444.1 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.6955, allocations: 8 kB / 444.1 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.6966, allocations: 345.4 kB / 444.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002982/0.6996, allocations: 1.082 MB / 445.6 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.7011, allocations: 415.3 kB / 446 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004792/0.7016, allocations: 153.4 kB / 446.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.7018, allocations: 16.19 kB / 446.1 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007619/0.7026, allocations: 319.1 kB / 446.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=35): time 4.238e-06/0.7026, allocations: 0 / 446.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.001553/0.7041, allocations: 0.5277 MB / 447 MB, free: 13.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.178e-05/0.7043, allocations: 118.7 kB / 447.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005013/0.7048, allocations: 274.8 kB / 447.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.7049, allocations: 37.7 kB / 447.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.7051, allocations: 172.3 kB / 447.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.7053, allocations: 79.05 kB / 447.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-05/0.7053, allocations: 12 kB / 447.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.7055, allocations: 342.8 kB / 448 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.706, allocations: 164.8 kB / 448.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005427/0.7066, allocations: 211.7 kB / 448.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005867/0.7072, allocations: 231.2 kB / 448.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.7072, allocations: 4 kB / 448.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001664/0.7089, allocations: 0.5942 MB / 449.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.455e-05/0.709, allocations: 59.41 kB / 449.2 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.709, allocations: 4.031 kB / 449.2 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.526e-05/0.7091, allocations: 7.938 kB / 449.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.7093, allocations: 67.83 kB / 449.3 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.7094, allocations: 0 / 449.3 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005907/0.71, allocations: 51.78 kB / 449.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004055/0.7104, allocations: 279.7 kB / 449.6 MB, free: 10.6 MB / 362.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.0003537/0.7108, allocations: 226.9 kB / 449.9 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.7109, allocations: 27.72 kB / 449.9 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.7111, allocations: 35.08 kB / 449.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.7111, allocations: 4 kB / 449.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.7111, allocations: 0 / 449.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.7111, allocations: 3.984 kB / 449.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009439/0.7121, allocations: 469.3 kB / 450.4 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.7121, allocations: 0 / 450.4 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.7123, allocations: 55.91 kB / 450.4 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.03e-05/0.7123, allocations: 4 kB / 450.4 MB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.7124, allocations: 43.97 kB / 450.5 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.7124, allocations: 4 kB / 450.5 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.7125, allocations: 0 / 450.5 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.7139, allocations: 0.5662 MB / 451.1 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004427/0.7144, allocations: 192.6 kB / 451.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.7146, allocations: 20 kB / 451.3 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.715, allocations: 47.81 kB / 451.3 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003142/0.7154, allocations: 83.91 kB / 451.4 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004048/0.7158, allocations: 283.7 kB / 451.7 MB, free: 8.453 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003193/0.7161, allocations: 195.1 kB / 451.9 MB, free: 8.258 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7161, allocations: 0 / 451.9 MB, free: 8.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006477/0.7168, allocations: 84 kB / 451.9 MB, free: 8.176 MB / 362.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.001921/0.7187, allocations: 1.145 MB / 453.1 MB, free: 6.988 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.7201, allocations: 0.514 MB / 453.6 MB, free: 6.449 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.7202, allocations: 4.062 kB / 453.6 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006949/0.7209, allocations: 331.2 kB / 453.9 MB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.7229, allocations: 281.1 kB / 454.2 MB, free: 5.828 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.7252, allocations: 0.6144 MB / 454.8 MB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/0.7258, allocations: 0.8195 MB / 455.6 MB, free: 4.332 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002015/0.7278, allocations: 0.747 MB / 456.4 MB, free: 3.582 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001309/0.7291, allocations: 330.8 kB / 456.7 MB, free: 3.258 MB / 362.7 MB Notification: Performance of SimCode: time 1.323e-06/0.7292, allocations: 0 / 456.7 MB, free: 3.258 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.7757, allocations: 12.75 MB / 469.5 MB, free: 6.355 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003771/0.7762, allocations: 142.2 kB / 469.6 MB, free: 6.133 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.338, allocations: 0 / 469.6 MB, free: 6.133 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat