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.812/1.812, allocations: 194.9 MB / 208 MB, free: 3.27 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.066e-05/3.083e-05, allocations: 0 / 255.5 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.5343, allocations: 78.26 MB / 378.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.5346, allocations: 69.72 kB / 378.3 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1279/0.6625, allocations: 42.8 MB / 421.1 MB, free: 3.934 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.6626, allocations: 3.938 kB / 421.1 MB, free: 3.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.038e-05/0.6626, allocations: 11.66 kB / 421.1 MB, free: 3.926 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.002065/0.6647, allocations: 0.6742 MB / 421.8 MB, free: 3.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.6648, allocations: 11.69 kB / 421.8 MB, free: 3.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001532/0.6649, allocations: 71.62 kB / 421.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.6651, allocations: 46.59 kB / 421.9 MB, free: 3.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006375/0.6658, allocations: 352 kB / 422.3 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.6658, allocations: 26.12 kB / 422.3 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.666, allocations: 33.16 kB / 422.3 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.6671, allocations: 469.3 kB / 422.8 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.6671, allocations: 0 / 422.8 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.687e-05/0.6672, allocations: 14.75 kB / 422.8 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.6673, allocations: 7.75 kB / 422.8 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008857/0.6682, allocations: 345 kB / 423.1 MB, free: 2.816 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002522/0.6707, allocations: 1.067 MB / 424.2 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.672, allocations: 410.8 kB / 424.6 MB, free: 2.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.6724, allocations: 154.5 kB / 424.8 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.6725, allocations: 3.875 kB / 424.8 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006314/0.6732, allocations: 313.3 kB / 425.1 MB, free: 2.074 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.417e-06/0.6732, allocations: 0 / 425.1 MB, free: 2.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001298/0.6745, allocations: 0.5286 MB / 425.6 MB, free: 1.898 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.6746, allocations: 113.5 kB / 425.7 MB, free: 1.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003931/0.675, allocations: 273.2 kB / 426 MB, free: 1.633 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.231e-05/0.6751, allocations: 39.3 kB / 426 MB, free: 1.602 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.6752, allocations: 164.6 kB / 426.2 MB, free: 1.484 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.6754, allocations: 82.75 kB / 426.3 MB, free: 1.438 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/0.6755, allocations: 7 kB / 426.3 MB, free: 1.438 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.167e-05/0.6756, allocations: 337.7 kB / 426.6 MB, free: 1.117 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004357/0.676, allocations: 161.4 kB / 426.8 MB, free: 1.098 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004551/0.6765, allocations: 211.8 kB / 427 MB, free: 1.031 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004941/0.677, allocations: 229.6 kB / 427.2 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.677, allocations: 0 / 427.2 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001367/0.6784, allocations: 0.5953 MB / 427.8 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.6784, allocations: 59.66 kB / 427.8 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.6785, allocations: 7.875 kB / 427.8 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/0.6785, allocations: 0 / 427.8 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.6787, allocations: 56.66 kB / 427.9 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.6787, allocations: 7.828 kB / 427.9 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.6793, allocations: 52.92 kB / 428 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003101/0.6796, allocations: 282.7 kB / 428.2 MB, free: 0.6406 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.000276/0.6799, allocations: 209.7 kB / 428.4 MB, free: 464 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.68, allocations: 37.59 kB / 428.5 MB, free: 444 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.6802, allocations: 41.39 kB / 428.5 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.6802, allocations: 3.75 kB / 428.5 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.6802, allocations: 0 / 428.5 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.6802, allocations: 7.938 kB / 428.5 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007663/0.681, allocations: 449.4 kB / 429 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.681, allocations: 0 / 429 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.6812, allocations: 53.12 kB / 429 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.6812, allocations: 3.188 kB / 429 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.6813, allocations: 48.91 kB / 429.1 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.6813, allocations: 3.188 kB / 429.1 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6813, allocations: 0 / 429.1 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.6828, allocations: 0.5613 MB / 429.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004507/0.6832, allocations: 192 kB / 429.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.6834, allocations: 14.34 kB / 429.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.6839, allocations: 47.56 kB / 429.9 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002988/0.6842, allocations: 85.83 kB / 430 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003206/0.6845, allocations: 281.7 kB / 430.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003203/0.6848, allocations: 195.9 kB / 430.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6849, allocations: 0 / 430.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006623/0.6855, allocations: 83.66 kB / 430.5 MB, free: 15.64 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.00181/0.6874, allocations: 1.141 MB / 431.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.6886, allocations: 0.5033 MB / 432.2 MB, free: 14.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.6886, allocations: 4.062 kB / 432.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006178/0.6892, allocations: 331.1 kB / 432.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/0.6911, allocations: 282.3 kB / 432.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.6931, allocations: 0.6019 MB / 433.4 MB, free: 13.97 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.6936, allocations: 0.8167 MB / 434.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001938/0.6956, allocations: 0.7444 MB / 434.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.6968, allocations: 324.4 kB / 435.2 MB, free: 12.47 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6969, allocations: 0 / 435.2 MB, free: 12.47 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04296/0.7398, allocations: 12.63 MB / 447.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003099/0.7402, allocations: 150.1 kB / 448 MB, free: 15.56 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.832/3.572, allocations: 0 / 448 MB, free: 15.56 MB / 346.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