Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.136/2.136, allocations: 225.8 MB / 239.4 MB, free: 1.254 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.424e-05/3.452e-05, allocations: 0 / 292.7 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1171, allocations: 50.41 MB / 343.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4463/0.5635, allocations: 83.36 MB / 426.5 MB, free: 8.379 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.5638, allocations: 70.36 kB / 426.6 MB, free: 8.379 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1397/0.7035, allocations: 43.39 MB / 470 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.7036, allocations: 0 / 470 MB, free: 2.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.405e-05/0.7036, allocations: 8 kB / 470 MB, free: 2.961 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.00151/0.7051, allocations: 0.6974 MB / 470.7 MB, free: 2.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.7052, allocations: 12.03 kB / 470.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001846/0.7054, allocations: 74.53 kB / 470.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.7056, allocations: 43.53 kB / 470.8 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007725/0.7064, allocations: 350.1 kB / 471.1 MB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.7064, allocations: 28.72 kB / 471.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/0.7066, allocations: 39.98 kB / 471.2 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.708, allocations: 469.8 kB / 471.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.708, allocations: 3.953 kB / 471.7 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.7081, allocations: 12 kB / 471.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.7082, allocations: 8 kB / 471.7 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.7092, allocations: 357.4 kB / 472 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003026/0.7123, allocations: 1.066 MB / 473.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.7138, allocations: 399.4 kB / 473.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004866/0.7143, allocations: 165.3 kB / 473.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001318/0.7145, allocations: 4.281 kB / 473.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007682/0.7152, allocations: 327.1 kB / 474 MB, free: 14.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=35): time 3.536e-06/0.7153, allocations: 0 / 474 MB, free: 14.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.001568/0.7168, allocations: 0.5239 MB / 474.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.271e-05/0.717, allocations: 114.7 kB / 474.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005168/0.7175, allocations: 274.8 kB / 474.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.7176, allocations: 37.7 kB / 474.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.7178, allocations: 168.7 kB / 475.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.718, allocations: 82.75 kB / 475.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.171e-05/0.7181, allocations: 12 kB / 475.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.7183, allocations: 342.8 kB / 475.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004902/0.7188, allocations: 160.8 kB / 475.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000541/0.7193, allocations: 211.7 kB / 475.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005891/0.7199, allocations: 231.3 kB / 476.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.72, allocations: 4 kB / 476.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001656/0.7216, allocations: 0.6083 MB / 476.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.902e-05/0.7217, allocations: 59.41 kB / 476.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.7217, allocations: 0 / 476.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.7218, allocations: 4 kB / 476.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.722, allocations: 63.89 kB / 476.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.7221, allocations: 0 / 476.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005753/0.7227, allocations: 55.72 kB / 476.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004506/0.7231, allocations: 279.7 kB / 477.2 MB, free: 11.48 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.0003619/0.7235, allocations: 216.3 kB / 477.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.7237, allocations: 35.66 kB / 477.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.7238, allocations: 31.09 kB / 477.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.7238, allocations: 4 kB / 477.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.7238, allocations: 7.984 kB / 477.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.7239, allocations: 4 kB / 477.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.7249, allocations: 468.2 kB / 477.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.725, allocations: 0 / 477.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.7252, allocations: 51.84 kB / 478 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-05/0.7252, allocations: 4 kB / 478 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/0.7254, allocations: 51.92 kB / 478 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.7254, allocations: 4 kB / 478 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7254, allocations: 0 / 478 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.727, allocations: 0.5663 MB / 478.6 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004757/0.7275, allocations: 188.7 kB / 478.8 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.7276, allocations: 23.98 kB / 478.8 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.7281, allocations: 43.83 kB / 478.8 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003081/0.7285, allocations: 87.84 kB / 478.9 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000419/0.7289, allocations: 283.7 kB / 479.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003211/0.7292, allocations: 199.1 kB / 479.4 MB, free: 9.137 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7292, allocations: 0 / 479.4 MB, free: 9.137 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006499/0.7299, allocations: 92 kB / 479.5 MB, free: 9.047 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.00194/0.7319, allocations: 1.137 MB / 480.6 MB, free: 7.871 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.7332, allocations: 0.5102 MB / 481.1 MB, free: 7.336 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.7332, allocations: 0 / 481.1 MB, free: 7.336 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.7339, allocations: 331.2 kB / 481.5 MB, free: 6.988 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/0.736, allocations: 287.7 kB / 481.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.738, allocations: 0.6039 MB / 482.3 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.7386, allocations: 0.8199 MB / 483.2 MB, free: 5.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002048/0.7406, allocations: 0.7431 MB / 483.9 MB, free: 4.484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/0.742, allocations: 330.8 kB / 484.2 MB, free: 4.16 MB / 362.7 MB Notification: Performance of SimCode: time 1.452e-06/0.742, allocations: 0 / 484.2 MB, free: 4.16 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05942/0.8014, allocations: 12.76 MB / 497 MB, free: 7.316 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003057/0.8018, allocations: 149.9 kB / 497.1 MB, free: 7.094 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.657/3.459, allocations: 0 / 497.1 MB, free: 7.094 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat