Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.07/2.07, allocations: 194.9 MB / 208.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.144e-05/3.146e-05, allocations: 4 kB / 255.4 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09232/0.09238, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4054/0.4978, allocations: 78.26 MB / 378.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.4981, allocations: 70.3 kB / 378.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1341/0.6322, allocations: 42.79 MB / 421.1 MB, free: 4.164 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6323, allocations: 4 kB / 421.1 MB, free: 4.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.6323, allocations: 11.62 kB / 421.1 MB, free: 4.156 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.001155/0.6335, allocations: 0.679 MB / 421.8 MB, free: 3.547 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.6335, allocations: 11.66 kB / 421.8 MB, free: 3.547 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.6337, allocations: 68.72 kB / 421.8 MB, free: 3.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.6339, allocations: 49.31 kB / 421.9 MB, free: 3.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006349/0.6345, allocations: 354.5 kB / 422.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.6346, allocations: 27.33 kB / 422.3 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.6347, allocations: 33.88 kB / 422.3 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.6358, allocations: 462.4 kB / 422.8 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.6358, allocations: 0 / 422.8 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.657e-05/0.6359, allocations: 14.81 kB / 422.8 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.636, allocations: 11.55 kB / 422.8 MB, free: 3.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009124/0.6369, allocations: 344.5 kB / 423.1 MB, free: 3.043 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.6395, allocations: 1.067 MB / 424.2 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.6408, allocations: 404.6 kB / 424.6 MB, free: 2.461 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.6412, allocations: 157.6 kB / 424.7 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00012/0.6413, allocations: 3.625 kB / 424.7 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006266/0.642, allocations: 317.2 kB / 425 MB, free: 2.301 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.487e-06/0.642, allocations: 0 / 425 MB, free: 2.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001291/0.6433, allocations: 0.5198 MB / 425.6 MB, free: 2.133 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.6434, allocations: 117.5 kB / 425.7 MB, free: 2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.6438, allocations: 271 kB / 425.9 MB, free: 1.863 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9e-05/0.6439, allocations: 44.38 kB / 426 MB, free: 1.828 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.644, allocations: 222.5 kB / 426.2 MB, free: 1.648 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.6442, allocations: 77.39 kB / 426.3 MB, free: 1.605 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-05/0.6443, allocations: 8.75 kB / 426.3 MB, free: 1.605 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.988e-05/0.6443, allocations: 332.5 kB / 426.6 MB, free: 1.281 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.6448, allocations: 157.3 kB / 426.8 MB, free: 1.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.6453, allocations: 211.4 kB / 427 MB, free: 1.199 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004946/0.6458, allocations: 238.8 kB / 427.2 MB, free: 1.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.6458, allocations: 3.938 kB / 427.2 MB, free: 1.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001318/0.6471, allocations: 0.5718 MB / 427.8 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/0.6472, allocations: 65.77 kB / 427.8 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.6472, allocations: 0 / 427.8 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/0.6473, allocations: 7.906 kB / 427.9 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.6475, allocations: 57.06 kB / 427.9 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.6475, allocations: 3.953 kB / 427.9 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005663/0.6481, allocations: 51.12 kB / 428 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003107/0.6484, allocations: 285.7 kB / 428.2 MB, free: 0.8086 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.0002805/0.6487, allocations: 213.7 kB / 428.5 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.6488, allocations: 30.88 kB / 428.5 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.6489, allocations: 37.98 kB / 428.5 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.649, allocations: 7.188 kB / 428.5 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.649, allocations: 0 / 428.5 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.649, allocations: 3.953 kB / 428.5 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007699/0.6498, allocations: 458.6 kB / 429 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.6498, allocations: 0 / 429 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.6499, allocations: 46.28 kB / 429 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.6499, allocations: 7.875 kB / 429 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.847e-05/0.6501, allocations: 47.41 kB / 429.1 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.6501, allocations: 0 / 429.1 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6501, allocations: 0 / 429.1 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.6513, allocations: 0.5614 MB / 429.6 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004045/0.6517, allocations: 196.9 kB / 429.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.6519, allocations: 17.8 kB / 429.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004257/0.6523, allocations: 39.12 kB / 429.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/0.6526, allocations: 84.06 kB / 430 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003098/0.6529, allocations: 275.5 kB / 430.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002782/0.6532, allocations: 200 kB / 430.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6532, allocations: 0 / 430.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000619/0.6539, allocations: 86.75 kB / 430.5 MB, free: 15.8 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.00172/0.6556, allocations: 1.136 MB / 431.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.6568, allocations: 0.5019 MB / 432.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.6568, allocations: 0 / 432.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.6574, allocations: 332.7 kB / 432.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.6593, allocations: 282.9 kB / 432.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.6614, allocations: 0.6514 MB / 433.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004829/0.6619, allocations: 0.812 MB / 434.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001818/0.6637, allocations: 430.9 kB / 434.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of SimCode: time 1.753e-06/0.6638, allocations: 3.938 kB / 434.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.859/3.523, allocations: 9.535 MB / 444.2 MB, free: 3.617 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat