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.966/1.966, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.194e-05, allocations: 3.984 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2974, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1968/0.4942, allocations: 77.6 MB / 371.8 MB, free: 4.246 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.4946, allocations: 67.97 kB / 371.9 MB, free: 4.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1476/0.6422, allocations: 42.49 MB / 414.4 MB, free: 9.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.6422, allocations: 0 / 414.4 MB, free: 9.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.069e-05/0.6423, allocations: 15.88 kB / 414.4 MB, free: 9.734 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.001295/0.6436, allocations: 0.6823 MB / 415.1 MB, free: 8.992 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.6437, allocations: 8.031 kB / 415.1 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.6438, allocations: 51.44 kB / 415.1 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007145/0.6446, allocations: 347.2 kB / 415.5 MB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.6446, allocations: 12 kB / 415.5 MB, free: 8.543 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.6448, allocations: 20 kB / 415.5 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009587/0.6457, allocations: 337.4 kB / 415.8 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.6468, allocations: 421.9 kB / 416.2 MB, free: 7.773 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.6468, allocations: 0 / 416.2 MB, free: 7.773 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.889e-05/0.6469, allocations: 8 kB / 416.2 MB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.647, allocations: 8 kB / 416.3 MB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002626/0.6496, allocations: 1.007 MB / 417.3 MB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.6508, allocations: 386.7 kB / 417.6 MB, free: 6.328 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003516/0.6512, allocations: 148.8 kB / 417.8 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.6514, allocations: 0 / 417.8 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006514/0.652, allocations: 309.1 kB / 418.1 MB, free: 5.863 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/0.652, allocations: 0 / 418.1 MB, free: 5.863 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001267/0.6533, allocations: 459 kB / 418.5 MB, free: 5.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/0.6534, allocations: 110.8 kB / 418.6 MB, free: 5.277 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.6538, allocations: 266 kB / 418.9 MB, free: 5.012 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.569e-05/0.6539, allocations: 33.7 kB / 418.9 MB, free: 4.973 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.6541, allocations: 168.8 kB / 419.1 MB, free: 4.801 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.6543, allocations: 71.16 kB / 419.2 MB, free: 4.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.306e-05/0.6544, allocations: 8 kB / 419.2 MB, free: 4.723 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.6545, allocations: 342.8 kB / 419.5 MB, free: 4.379 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000386/0.6549, allocations: 144.7 kB / 419.7 MB, free: 4.234 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.6554, allocations: 193.1 kB / 419.8 MB, free: 4.031 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/0.6558, allocations: 175.8 kB / 420 MB, free: 3.859 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.6559, allocations: 0 / 420 MB, free: 3.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001349/0.6572, allocations: 0.5127 MB / 420.5 MB, free: 3.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.924e-05/0.6573, allocations: 59.41 kB / 420.6 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.6573, allocations: 0 / 420.6 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.6574, allocations: 4 kB / 420.6 MB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.6576, allocations: 55.91 kB / 420.6 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.6576, allocations: 7.984 kB / 420.7 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005091/0.6581, allocations: 39.81 kB / 420.7 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004171/0.6586, allocations: 279.7 kB / 421 MB, free: 2.891 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.0003136/0.6589, allocations: 213.3 kB / 421.2 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001134/0.66, allocations: 465.2 kB / 421.6 MB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.6602, allocations: 27.72 kB / 421.7 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.6603, allocations: 39.27 kB / 421.7 MB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.6603, allocations: 4 kB / 421.7 MB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.6603, allocations: 4 kB / 421.7 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.6603, allocations: 7.938 kB / 421.7 MB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007772/0.6611, allocations: 397.9 kB / 422.1 MB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.6611, allocations: 0 / 422.1 MB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.6613, allocations: 51.91 kB / 422.1 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.6613, allocations: 0 / 422.1 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.6614, allocations: 39.98 kB / 422.2 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.6614, allocations: 0 / 422.2 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.6615, allocations: 3.984 kB / 422.2 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.6626, allocations: 492.5 kB / 422.7 MB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004074/0.663, allocations: 196.6 kB / 422.9 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.6632, allocations: 12 kB / 422.9 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003949/0.6636, allocations: 35.81 kB / 422.9 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003203/0.664, allocations: 83.91 kB / 423 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004275/0.6644, allocations: 279.7 kB / 423.3 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002665/0.6647, allocations: 186 kB / 423.4 MB, free: 320 kB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6647, allocations: 4 kB / 423.5 MB, free: 316 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005635/0.6653, allocations: 72 kB / 423.5 MB, free: 244 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.2385/0.9038, allocations: 1.055 MB / 424.6 MB, free: 104.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.9051, allocations: 497 kB / 425.1 MB, free: 104.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.9051, allocations: 0.5625 kB / 425.1 MB, free: 104.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005814/0.9057, allocations: 320.4 kB / 425.4 MB, free: 104 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.9077, allocations: 280.7 kB / 425.6 MB, free: 104 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.9095, allocations: 0.5812 MB / 426.2 MB, free: 103.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.9099, allocations: 0.8099 MB / 427 MB, free: 103.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001862/0.9117, allocations: 0.7487 MB / 427.8 MB, free: 102.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.9129, allocations: 325.1 kB / 428.1 MB, free: 102.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.913, allocations: 0 / 428.1 MB, free: 102.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05301/0.966, allocations: 12.14 MB / 440.2 MB, free: 100.7 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001849/0.9662, allocations: 144.4 kB / 440.4 MB, free: 100.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.591/3.557, allocations: 3.938 kB / 440.4 MB, free: 100.5 MB / 362.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