Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.664/1.664, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.43e-05/3.439e-05, allocations: 4 kB / 225.1 MB, free: 2.133 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2803, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4107, allocations: 72.98 MB / 336.8 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.411, allocations: 67.97 kB / 336.9 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.365/0.776, allocations: 42.81 MB / 379.7 MB, free: 89.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7761, allocations: 4 kB / 379.7 MB, free: 89.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.944e-05/0.7761, allocations: 6.781 kB / 379.7 MB, free: 89.77 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001321/0.7775, allocations: 0.6899 MB / 380.4 MB, free: 89.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.7775, allocations: 15.88 kB / 380.4 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001944/0.7777, allocations: 69.8 kB / 380.5 MB, free: 89.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.7779, allocations: 51.16 kB / 380.5 MB, free: 89.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007273/0.7787, allocations: 345.6 kB / 380.9 MB, free: 89.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.7788, allocations: 28.83 kB / 380.9 MB, free: 89.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.7789, allocations: 29.69 kB / 380.9 MB, free: 89.03 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.7801, allocations: 469.8 kB / 381.4 MB, free: 88.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.7802, allocations: 0 / 381.4 MB, free: 88.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-05/0.7803, allocations: 18.98 kB / 381.4 MB, free: 88.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.7803, allocations: 6.812 kB / 381.4 MB, free: 88.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009693/0.7813, allocations: 350.1 kB / 381.8 MB, free: 88.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002758/0.7841, allocations: 1.067 MB / 382.8 MB, free: 88.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.7855, allocations: 406.9 kB / 383.2 MB, free: 88.12 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004431/0.786, allocations: 160.1 kB / 383.4 MB, free: 88.08 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/0.7861, allocations: 3.938 kB / 383.4 MB, free: 88.08 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006733/0.7868, allocations: 319.2 kB / 383.7 MB, free: 87.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.027e-06/0.7869, allocations: 0 / 383.7 MB, free: 87.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001406/0.7883, allocations: 0.5184 MB / 384.2 MB, free: 87.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/0.7884, allocations: 118 kB / 384.3 MB, free: 87.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004562/0.7889, allocations: 274.1 kB / 384.6 MB, free: 87.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.789, allocations: 39.77 kB / 384.6 MB, free: 87.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.7892, allocations: 176.3 kB / 384.8 MB, free: 87.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.7893, allocations: 74.81 kB / 384.9 MB, free: 87.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/0.7894, allocations: 8 kB / 384.9 MB, free: 87.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.296e-05/0.7895, allocations: 342.8 kB / 385.2 MB, free: 86.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/0.79, allocations: 160.7 kB / 385.4 MB, free: 86.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004673/0.7905, allocations: 213.3 kB / 385.6 MB, free: 86.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005154/0.791, allocations: 224.9 kB / 385.8 MB, free: 86.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.791, allocations: 0 / 385.8 MB, free: 86.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001451/0.7925, allocations: 0.594 MB / 386.4 MB, free: 85.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.768e-05/0.7926, allocations: 67.33 kB / 386.5 MB, free: 85.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.7926, allocations: 4 kB / 386.5 MB, free: 85.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.7927, allocations: 4.031 kB / 386.5 MB, free: 85.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.7929, allocations: 55.81 kB / 386.5 MB, free: 85.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.7929, allocations: 7.75 kB / 386.5 MB, free: 85.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005796/0.7935, allocations: 51.7 kB / 386.6 MB, free: 85.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003159/0.7938, allocations: 282.8 kB / 386.9 MB, free: 85.02 MB / 314.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 (46): * Single equations (assignments): 44 * 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.0003326/0.7942, allocations: 212.1 kB / 387.1 MB, free: 84.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.7944, allocations: 31.62 kB / 387.1 MB, free: 84.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.7945, allocations: 39.08 kB / 387.1 MB, free: 84.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.7945, allocations: 4 kB / 387.1 MB, free: 84.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.7945, allocations: 0 / 387.1 MB, free: 84.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.7946, allocations: 3.938 kB / 387.1 MB, free: 84.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008452/0.7954, allocations: 456.1 kB / 387.6 MB, free: 84.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.7955, allocations: 0 / 387.6 MB, free: 84.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.7956, allocations: 55.81 kB / 387.6 MB, free: 84.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.7956, allocations: 4 kB / 387.6 MB, free: 84.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.7958, allocations: 43.97 kB / 387.7 MB, free: 84.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.7958, allocations: 7.5 kB / 387.7 MB, free: 84.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.7958, allocations: 0 / 387.7 MB, free: 84.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.7971, allocations: 0.5547 MB / 388.3 MB, free: 83.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004442/0.7976, allocations: 196.6 kB / 388.4 MB, free: 83.35 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.7978, allocations: 16 kB / 388.5 MB, free: 83.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/0.7982, allocations: 43.88 kB / 388.5 MB, free: 83.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/0.7985, allocations: 83.91 kB / 388.6 MB, free: 83.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002987/0.7988, allocations: 275.7 kB / 388.9 MB, free: 82.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002876/0.7991, allocations: 199.1 kB / 389 MB, free: 82.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7991, allocations: 0 / 389 MB, free: 82.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006833/0.7998, allocations: 84 kB / 389.1 MB, free: 82.66 MB / 314.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 (33): * Single equations (assignments): 30 * 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.001687/0.8015, allocations: 1.137 MB / 390.3 MB, free: 81.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.8028, allocations: 0.5019 MB / 390.8 MB, free: 80.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.8028, allocations: 3.938 kB / 390.8 MB, free: 80.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006218/0.8035, allocations: 335 kB / 391.1 MB, free: 80.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.8055, allocations: 279.8 kB / 391.4 MB, free: 80.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.8076, allocations: 0.6008 MB / 392 MB, free: 79.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.808, allocations: 0.8113 MB / 392.8 MB, free: 78.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001794/0.8098, allocations: 0.7471 MB / 393.5 MB, free: 78.13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/0.8111, allocations: 326.8 kB / 393.9 MB, free: 77.81 MB / 314.7 MB Notification: Performance of SimCode: time 2.785e-06/0.8111, allocations: 0 / 393.9 MB, free: 77.81 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04356/0.8547, allocations: 12.65 MB / 406.5 MB, free: 65.07 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.8549, allocations: 155.1 kB / 406.7 MB, free: 64.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.517/3.372, allocations: 0 / 406.7 MB, free: 64.84 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat