Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.562/2.562, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.912e-05, allocations: 3.281 kB / 249.7 MB, free: 5.301 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5897/0.6982, allocations: 77.6 MB / 371.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00036/0.6987, allocations: 68.5 kB / 371.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2552/0.9539, allocations: 42.53 MB / 414.5 MB, free: 7.316 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.954, allocations: 0 / 414.5 MB, free: 7.316 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.221e-05/0.9541, allocations: 11.94 kB / 414.5 MB, free: 7.305 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.00232/0.9564, allocations: 0.6823 MB / 415.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.432e-05/0.9565, allocations: 12.03 kB / 415.2 MB, free: 6.551 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002767/0.9568, allocations: 58.53 kB / 415.2 MB, free: 6.484 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003118/0.9572, allocations: 47.44 kB / 415.3 MB, free: 6.438 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.9584, allocations: 350.1 kB / 415.6 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.367e-05/0.9585, allocations: 12.78 kB / 415.6 MB, free: 6.055 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002437/0.9587, allocations: 20 kB / 415.6 MB, free: 6.035 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001868/0.9606, allocations: 337.4 kB / 416 MB, free: 5.707 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.9627, allocations: 425.9 kB / 416.4 MB, free: 5.281 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.9628, allocations: 0 / 416.4 MB, free: 5.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.963, allocations: 4 kB / 416.4 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.596e-05/0.963, allocations: 8 kB / 416.4 MB, free: 5.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005003/0.968, allocations: 1.004 MB / 417.4 MB, free: 4.242 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/0.9703, allocations: 391.9 kB / 417.8 MB, free: 3.852 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006405/0.971, allocations: 144.8 kB / 417.9 MB, free: 3.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001635/0.9711, allocations: 4 kB / 417.9 MB, free: 3.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.9723, allocations: 305 kB / 418.2 MB, free: 3.391 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 5.019e-06/0.9724, allocations: 0 / 418.2 MB, free: 3.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002223/0.9746, allocations: 463 kB / 418.7 MB, free: 2.934 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.9747, allocations: 110.8 kB / 418.8 MB, free: 2.801 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007634/0.9755, allocations: 262 kB / 419 MB, free: 2.539 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001853/0.9757, allocations: 33.7 kB / 419.1 MB, free: 2.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/0.976, allocations: 168.8 kB / 419.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/0.9763, allocations: 75.16 kB / 419.3 MB, free: 2.254 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.9765, allocations: 4 kB / 419.3 MB, free: 2.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002351/0.9767, allocations: 342.8 kB / 419.7 MB, free: 1.906 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007025/0.9774, allocations: 144.7 kB / 419.8 MB, free: 1.762 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000791/0.9783, allocations: 205 kB / 420 MB, free: 1.547 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.9791, allocations: 171.5 kB / 420.2 MB, free: 1.383 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.9791, allocations: 0 / 420.2 MB, free: 1.383 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002475/0.9816, allocations: 0.5072 MB / 420.7 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.9818, allocations: 59.41 kB / 420.7 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.9818, allocations: 3.938 kB / 420.7 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.713e-05/0.9819, allocations: 7.984 kB / 420.7 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003788/0.9823, allocations: 55.91 kB / 420.8 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.092e-05/0.9823, allocations: 4 kB / 420.8 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.9834, allocations: 43.84 kB / 420.8 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007311/0.9842, allocations: 291.6 kB / 421.1 MB, free: 412 kB / 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.0005719/0.9848, allocations: 197.3 kB / 421.3 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/0.9851, allocations: 35.61 kB / 421.4 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001957/0.9853, allocations: 31.34 kB / 421.4 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.9853, allocations: 8 kB / 421.4 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.9854, allocations: 0 / 421.4 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.9854, allocations: 3.984 kB / 421.4 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.987, allocations: 408.9 kB / 421.8 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.987, allocations: 0 / 421.8 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.9873, allocations: 51.91 kB / 421.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.298e-05/0.9874, allocations: 0 / 421.8 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002234/0.9876, allocations: 47.97 kB / 421.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.9876, allocations: 0 / 421.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.9876, allocations: 0 / 421.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.9899, allocations: 496.4 kB / 422.4 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007945/0.9907, allocations: 192.6 kB / 422.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003066/0.9911, allocations: 12 kB / 422.6 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009027/0.992, allocations: 35.88 kB / 422.6 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005329/0.9926, allocations: 83.91 kB / 422.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007237/0.9933, allocations: 275.7 kB / 423 MB, free: 14.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005407/0.9939, allocations: 190 kB / 423.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.9939, allocations: 0 / 423.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001294/0.9952, allocations: 72 kB / 423.2 MB, free: 14.22 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.003167/0.9984, allocations: 1.071 MB / 424.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002046/1.001, allocations: 494.5 kB / 424.8 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.001, allocations: 0 / 424.8 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/1.002, allocations: 318.6 kB / 425.1 MB, free: 12.28 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003638/1.005, allocations: 284.2 kB / 425.4 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003886/1.009, allocations: 0.5731 MB / 425.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008656/1.01, allocations: 0.8113 MB / 426.7 MB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.003979/1.014, allocations: 0.7473 MB / 427.5 MB, free: 9.805 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002621/1.017, allocations: 326.8 kB / 427.8 MB, free: 9.484 MB / 330.7 MB Notification: Performance of SimCode: time 2.184e-06/1.017, allocations: 0 / 427.8 MB, free: 9.484 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1217/1.139, allocations: 12.43 MB / 440.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004373/1.139, allocations: 136.2 kB / 440.4 MB, free: 12.69 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.446/4.586, allocations: 0 / 440.4 MB, free: 12.69 MB / 346.7 MB "" Variables in the reference:time,FF.RS1.TD1.x,FF.RS2.TD1.x Variables in the result:CLK.period,CLK.startTime,CLK.t_i,CLK.t_width,CLK.width,CLK.y,FF.And1.auxiliary[1],FF.And1.auxiliary[2],FF.And1.auxiliary[3],FF.And1.auxiliary_n,FF.And1.n,FF.And1.x[1],FF.And1.x[2],FF.And1.x[3],FF.And1.y,FF.And2.auxiliary[1],FF.And2.auxiliary[2],FF.And2.auxiliary[3],FF.And2.auxiliary_n,FF.And2.n,FF.And2.x[1],FF.And2.x[2],FF.And2.x[3],FF.And2.y,FF.And3.auxiliary[1],FF.And3.auxiliary[2],FF.And3.auxiliary_n,FF.And3.n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And4.auxiliary[1],FF.And4.auxiliary[2],FF.And4.auxiliary_n,FF.And4.n,FF.And4.x[1],FF.And4.x[2],FF.And4.y,FF.Not1.auxiliary,FF.Not1.x,FF.Not1.y,FF.RS1.Nor1.auxiliary[1],FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.n,FF.RS1.Nor1.x[1],FF.RS1.Nor1.x[2],FF.RS1.Nor1.y,FF.RS1.Nor2.auxiliary[1],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.y,FF.RS1.TD1.delayTime,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS1.TD1.y,FF.RS1.TD1.y0,FF.RS1.delayTime,FF.RS1.q,FF.RS1.q0,FF.RS1.qn,FF.RS1.r,FF.RS1.s,FF.RS2.Nor1.auxiliary[1],FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.n,FF.RS2.Nor1.x[1],FF.RS2.Nor1.x[2],FF.RS2.Nor1.y,FF.RS2.Nor2.auxiliary[1],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.n,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.y,FF.RS2.TD1.delayTime,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.RS2.TD1.y,FF.RS2.TD1.y0,FF.RS2.delayTime,FF.RS2.q,FF.RS2.q0,FF.RS2.qn,FF.RS2.r,FF.RS2.s,FF.clk,FF.delayTime,FF.j,FF.k,FF.q,FF.q0,FF.qn,J.n,J.t[1],J.t[2],J.t[3],J.t[4],J.x[1],J.x[2],J.x[3],J.x[4],J.y,J.y0,K.n,K.t[1],K.t[2],K.t[3],K.t[4],K.x[1],K.x[2],K.x[3],K.x[4],K.y,K.y0,_D_whenCondition1,time