Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.335e-05, allocations: 8 kB / 255.4 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09295, allocations: 44.51 MB / 300 MB, free: 6.078 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4004/0.4934, allocations: 78.25 MB / 378.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.4938, allocations: 71.02 kB / 378.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1313/0.6251, allocations: 42.8 MB / 421.1 MB, free: 3.969 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6251, allocations: 0 / 421.1 MB, free: 3.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.6252, allocations: 11.75 kB / 421.1 MB, free: 3.965 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.001217/0.6264, allocations: 0.6865 MB / 421.8 MB, free: 3.352 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.6265, allocations: 11.62 kB / 421.8 MB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001699/0.6266, allocations: 67.22 kB / 421.9 MB, free: 3.305 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.6268, allocations: 46.78 kB / 421.9 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000658/0.6275, allocations: 348.4 kB / 422.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.6275, allocations: 30 kB / 422.3 MB, free: 3.031 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.6277, allocations: 33.09 kB / 422.3 MB, free: 3.031 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.6288, allocations: 466.5 kB / 422.8 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.6289, allocations: 3.875 kB / 422.8 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.193e-05/0.629, allocations: 13.44 kB / 422.8 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.629, allocations: 11.75 kB / 422.8 MB, free: 2.883 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009239/0.6299, allocations: 354.8 kB / 423.1 MB, free: 2.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002442/0.6324, allocations: 1.068 MB / 424.2 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.6337, allocations: 401.7 kB / 424.6 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003954/0.6341, allocations: 155.9 kB / 424.7 MB, free: 2.238 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.6343, allocations: 3.219 kB / 424.7 MB, free: 2.238 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006352/0.6349, allocations: 326.2 kB / 425.1 MB, free: 2.094 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.677e-06/0.6349, allocations: 3.938 kB / 425.1 MB, free: 2.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001319/0.6363, allocations: 0.5191 MB / 425.6 MB, free: 1.926 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.6363, allocations: 114.3 kB / 425.7 MB, free: 1.797 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004283/0.6368, allocations: 274.3 kB / 426 MB, free: 1.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-05/0.6369, allocations: 41.88 kB / 426 MB, free: 1.625 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.637, allocations: 166 kB / 426.2 MB, free: 1.508 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.6372, allocations: 78.81 kB / 426.2 MB, free: 1.461 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.6373, allocations: 10.22 kB / 426.3 MB, free: 1.461 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.913e-05/0.6374, allocations: 341 kB / 426.6 MB, free: 1.137 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004714/0.6378, allocations: 159.4 kB / 426.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.6383, allocations: 207.6 kB / 426.9 MB, free: 1.059 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.6388, allocations: 236.7 kB / 427.2 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.6389, allocations: 3.938 kB / 427.2 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001361/0.6402, allocations: 0.5869 MB / 427.8 MB, free: 0.793 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.554e-05/0.6403, allocations: 61.95 kB / 427.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.6403, allocations: 3.625 kB / 427.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.6404, allocations: 3.625 kB / 427.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.6406, allocations: 52.47 kB / 427.9 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.6406, allocations: 11.52 kB / 427.9 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005512/0.6412, allocations: 47.78 kB / 427.9 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003168/0.6415, allocations: 286.6 kB / 428.2 MB, free: 0.6641 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.0003038/0.6418, allocations: 211.3 kB / 428.4 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.642, allocations: 31.12 kB / 428.5 MB, free: 476 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.6421, allocations: 40.47 kB / 428.5 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.6421, allocations: 11.86 kB / 428.5 MB, free: 452 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.6421, allocations: 0 / 428.5 MB, free: 452 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.6421, allocations: 3.953 kB / 428.5 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007748/0.6429, allocations: 457.8 kB / 429 MB, free: 176 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.643, allocations: 0 / 429 MB, free: 176 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/0.6431, allocations: 42.47 kB / 429 MB, free: 168 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.6431, allocations: 0 / 429 MB, free: 168 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.6432, allocations: 48.72 kB / 429.1 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.6432, allocations: 4 kB / 429.1 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.6433, allocations: 3.938 kB / 429.1 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.6446, allocations: 0.5561 MB / 429.6 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004517/0.6451, allocations: 194.8 kB / 429.8 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.6452, allocations: 13.62 kB / 429.8 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/0.6457, allocations: 43.67 kB / 429.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/0.646, allocations: 84.89 kB / 429.9 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003177/0.6464, allocations: 280.9 kB / 430.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002882/0.6467, allocations: 202 kB / 430.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6467, allocations: 4 kB / 430.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006328/0.6473, allocations: 87.34 kB / 430.5 MB, free: 15.64 MB / 330.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.001878/0.6492, allocations: 1.148 MB / 431.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.6506, allocations: 0.4961 MB / 432.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.6507, allocations: 0 / 432.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000692/0.6514, allocations: 333 kB / 432.5 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/0.6534, allocations: 290.1 kB / 432.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.6556, allocations: 0.6024 MB / 433.4 MB, free: 13.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/0.6562, allocations: 0.8127 MB / 434.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001971/0.6582, allocations: 0.7357 MB / 434.9 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/0.6595, allocations: 327.9 kB / 435.2 MB, free: 12.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6595, allocations: 0 / 435.2 MB, free: 12.48 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05212/0.7116, allocations: 12.66 MB / 447.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002712/0.712, allocations: 151.5 kB / 448 MB, free: 15.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.65/3.362, allocations: 0 / 448 MB, free: 15.54 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat