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.3/2.3, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.148e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4432/0.4433, allocations: 44.5 MB / 294.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1714/0.6147, allocations: 77.6 MB / 371.9 MB, free: 4.211 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.6151, allocations: 67.97 kB / 371.9 MB, free: 4.145 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1822/0.7973, allocations: 42.49 MB / 414.4 MB, free: 9.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.7973, allocations: 0 / 414.4 MB, free: 9.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.712e-05/0.7974, allocations: 8 kB / 414.4 MB, free: 9.699 MB / 362.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.00156/0.7989, allocations: 0.69 MB / 415.1 MB, free: 8.949 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/0.799, allocations: 12.03 kB / 415.1 MB, free: 8.938 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.7993, allocations: 47.44 kB / 415.2 MB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008494/0.8001, allocations: 339.3 kB / 415.5 MB, free: 8.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.245e-05/0.8002, allocations: 12 kB / 415.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.8004, allocations: 24 kB / 415.6 MB, free: 8.484 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001117/0.8015, allocations: 337.4 kB / 415.9 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.8027, allocations: 421.9 kB / 416.3 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.8028, allocations: 3.938 kB / 416.3 MB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.917e-05/0.8029, allocations: 3.938 kB / 416.3 MB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.8029, allocations: 8 kB / 416.3 MB, free: 7.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00307/0.806, allocations: 1.003 MB / 417.3 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.8074, allocations: 394.6 kB / 417.7 MB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004108/0.8079, allocations: 148.8 kB / 417.9 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001649/0.8081, allocations: 8 kB / 417.9 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007508/0.8088, allocations: 309 kB / 418.2 MB, free: 5.812 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.667e-06/0.8088, allocations: 0 / 418.2 MB, free: 5.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001441/0.8103, allocations: 455 kB / 418.6 MB, free: 5.363 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/0.8104, allocations: 114.8 kB / 418.7 MB, free: 5.227 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004864/0.8109, allocations: 258 kB / 419 MB, free: 4.969 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.811, allocations: 41.7 kB / 419 MB, free: 4.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.8112, allocations: 164.8 kB / 419.2 MB, free: 4.754 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.8114, allocations: 75.09 kB / 419.2 MB, free: 4.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.936e-05/0.8115, allocations: 0 / 419.2 MB, free: 4.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.8117, allocations: 342.8 kB / 419.6 MB, free: 4.336 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004473/0.8122, allocations: 148.7 kB / 419.7 MB, free: 4.188 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005027/0.8127, allocations: 201.1 kB / 419.9 MB, free: 3.977 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.8132, allocations: 163.9 kB / 420.1 MB, free: 3.816 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.8132, allocations: 0 / 420.1 MB, free: 3.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001531/0.8148, allocations: 0.5197 MB / 420.6 MB, free: 3.293 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.791e-05/0.8149, allocations: 63.39 kB / 420.7 MB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.8149, allocations: 0 / 420.7 MB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.8149, allocations: 4 kB / 420.7 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.8152, allocations: 55.91 kB / 420.7 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.8152, allocations: 0 / 420.7 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005986/0.8158, allocations: 47.84 kB / 420.8 MB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004718/0.8163, allocations: 287.7 kB / 421 MB, free: 2.832 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 (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.000369/0.8167, allocations: 205.3 kB / 421.2 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001327/0.818, allocations: 461.2 kB / 421.7 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.8182, allocations: 31.72 kB / 421.7 MB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.8183, allocations: 27.41 kB / 421.8 MB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.8183, allocations: 7.984 kB / 421.8 MB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.8184, allocations: 0 / 421.8 MB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.268e-06/0.8184, allocations: 3.953 kB / 421.8 MB, free: 2.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008996/0.8193, allocations: 393.9 kB / 422.2 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.8193, allocations: 0 / 422.2 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.8195, allocations: 51.91 kB / 422.2 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-06/0.8195, allocations: 4 kB / 422.2 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001271/0.8197, allocations: 43.97 kB / 422.3 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.8197, allocations: 11.94 kB / 422.3 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.8197, allocations: 0 / 422.3 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.821, allocations: 492.4 kB / 422.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.8216, allocations: 192.6 kB / 422.9 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.8218, allocations: 8 kB / 422.9 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.8223, allocations: 39.88 kB / 423 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003688/0.8226, allocations: 91.91 kB / 423.1 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004732/0.8231, allocations: 275.7 kB / 423.3 MB, free: 456 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003037/0.8235, allocations: 189.9 kB / 423.5 MB, free: 268 kB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8235, allocations: 0 / 423.5 MB, free: 268 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006762/0.8242, allocations: 72 kB / 423.6 MB, free: 196 kB / 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 (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.3427/1.167, allocations: 1.06 MB / 424.7 MB, free: 104.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00168/1.169, allocations: 498.5 kB / 425.1 MB, free: 103.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/1.169, allocations: 0 / 425.1 MB, free: 103.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007736/1.169, allocations: 322.1 kB / 425.5 MB, free: 103.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/1.172, allocations: 281.5 kB / 425.7 MB, free: 103.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/1.174, allocations: 0.5725 MB / 426.3 MB, free: 103.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/1.175, allocations: 0.8101 MB / 427.1 MB, free: 102.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002387/1.177, allocations: 0.7453 MB / 427.9 MB, free: 102.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/1.179, allocations: 329.2 kB / 428.2 MB, free: 102.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.402e-06/1.179, allocations: 1.125 kB / 428.2 MB, free: 102.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06921/1.248, allocations: 12.15 MB / 440.3 MB, free: 100.5 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002679/1.249, allocations: 136.2 kB / 440.5 MB, free: 100.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.1/4.349, allocations: 3.875 kB / 440.5 MB, free: 100.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat