Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.951/1.951, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.448e-05, allocations: 8.516 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1213, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4296/0.5509, allocations: 83.66 MB / 426.3 MB, free: 10.47 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.5512, allocations: 76.38 kB / 426.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1505/0.7017, allocations: 43.39 MB / 469.7 MB, free: 4.051 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.7018, allocations: 0 / 469.7 MB, free: 4.051 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.122e-05/0.7018, allocations: 8 kB / 469.8 MB, free: 4.043 MB / 378.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.001333/0.7032, allocations: 0.6883 MB / 470.4 MB, free: 3.293 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.7032, allocations: 8.031 kB / 470.5 MB, free: 3.285 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.7034, allocations: 74.53 kB / 470.5 MB, free: 3.203 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.7036, allocations: 51.44 kB / 470.6 MB, free: 3.152 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007337/0.7043, allocations: 347.2 kB / 470.9 MB, free: 2.773 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.747e-05/0.7044, allocations: 24.78 kB / 470.9 MB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.7046, allocations: 40 kB / 471 MB, free: 2.711 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.7058, allocations: 465.9 kB / 471.4 MB, free: 2.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.7059, allocations: 11.88 kB / 471.4 MB, free: 2.238 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.706, allocations: 16 kB / 471.5 MB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.706, allocations: 8 kB / 471.5 MB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.7071, allocations: 353.4 kB / 471.8 MB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002832/0.7099, allocations: 1.063 MB / 472.9 MB, free: 0.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.7114, allocations: 415.3 kB / 473.3 MB, free: 344 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000484/0.7119, allocations: 157.3 kB / 473.4 MB, free: 184 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.712, allocations: 4.281 kB / 473.4 MB, free: 180 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007555/0.7128, allocations: 319.3 kB / 473.8 MB, free: 15.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 3.306e-06/0.7128, allocations: 0 / 473.8 MB, free: 15.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.001495/0.7143, allocations: 0.5315 MB / 474.3 MB, free: 15.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.229e-05/0.7144, allocations: 114.8 kB / 474.4 MB, free: 15.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004732/0.7149, allocations: 270.8 kB / 474.7 MB, free: 14.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.715, allocations: 37.7 kB / 474.7 MB, free: 14.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.7152, allocations: 227.2 kB / 474.9 MB, free: 14.63 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.7154, allocations: 79 kB / 475 MB, free: 14.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.209e-05/0.7155, allocations: 12 kB / 475 MB, free: 14.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.7156, allocations: 322.8 kB / 475.3 MB, free: 14.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.7161, allocations: 164.8 kB / 475.5 MB, free: 14.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005481/0.7167, allocations: 215.7 kB / 475.7 MB, free: 13.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005912/0.7173, allocations: 243.2 kB / 475.9 MB, free: 13.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.7173, allocations: 0 / 475.9 MB, free: 13.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001551/0.7189, allocations: 0.5826 MB / 476.5 MB, free: 12.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.23e-05/0.719, allocations: 67.39 kB / 476.6 MB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.719, allocations: 4.031 kB / 476.6 MB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.719, allocations: 4 kB / 476.6 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002481/0.7193, allocations: 51.91 kB / 476.6 MB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.7193, allocations: 4 kB / 476.6 MB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005905/0.7199, allocations: 55.75 kB / 476.7 MB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004176/0.7204, allocations: 283.7 kB / 477 MB, free: 12.51 MB / 394.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.0003414/0.7207, allocations: 218.3 kB / 477.2 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.7209, allocations: 39.58 kB / 477.2 MB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001247/0.721, allocations: 35.08 kB / 477.3 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.721, allocations: 4 kB / 477.3 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.721, allocations: 0 / 477.3 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.7211, allocations: 0 / 477.3 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009115/0.722, allocations: 465.3 kB / 477.7 MB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.722, allocations: 8 kB / 477.7 MB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.7222, allocations: 51.89 kB / 477.8 MB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.7222, allocations: 0 / 477.8 MB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/0.7223, allocations: 47.94 kB / 477.8 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.7223, allocations: 3.984 kB / 477.8 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.7224, allocations: 0 / 477.8 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.7238, allocations: 0.5637 MB / 478.4 MB, free: 11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/0.7242, allocations: 188.7 kB / 478.6 MB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.7244, allocations: 19.98 kB / 478.6 MB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.7249, allocations: 47.83 kB / 478.6 MB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.7252, allocations: 83.91 kB / 478.7 MB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003982/0.7256, allocations: 283.6 kB / 479 MB, free: 10.37 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003379/0.7259, allocations: 203.1 kB / 479.2 MB, free: 10.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.726, allocations: 0 / 479.2 MB, free: 10.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006559/0.7266, allocations: 92 kB / 479.3 MB, free: 10.08 MB / 394.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.001902/0.7285, allocations: 1.145 MB / 480.4 MB, free: 8.895 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.7299, allocations: 0.5024 MB / 480.9 MB, free: 8.367 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.7299, allocations: 4.062 kB / 480.9 MB, free: 8.363 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006723/0.7306, allocations: 335.2 kB / 481.3 MB, free: 8.012 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/0.7325, allocations: 286.6 kB / 481.5 MB, free: 7.738 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.7346, allocations: 0.6474 MB / 482.2 MB, free: 7.047 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005039/0.7351, allocations: 0.8199 MB / 483 MB, free: 6.203 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/0.737, allocations: 430.5 kB / 483.4 MB, free: 5.781 MB / 394.7 MB Notification: Performance of SimCode: time 1.022e-06/0.737, allocations: 0 / 483.4 MB, free: 5.781 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.573/3.31, allocations: 9.644 MB / 493.1 MB, free: 11.78 MB / 410.7 MB