Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.623e-05/2.651e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3042, allocations: 44.49 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1407/0.4449, allocations: 77.59 MB / 371.8 MB, free: 4.371 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.4453, allocations: 71.95 kB / 371.9 MB, free: 4.301 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1495/0.5948, allocations: 42.49 MB / 414.3 MB, free: 9.871 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.5948, allocations: 0 / 414.3 MB, free: 9.871 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.634e-05/0.5949, allocations: 11.94 kB / 414.4 MB, free: 9.859 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.001568/0.5965, allocations: 0.6823 MB / 415 MB, free: 9.117 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.5965, allocations: 12.03 kB / 415.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002562/0.5968, allocations: 47.44 kB / 415.1 MB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008481/0.5977, allocations: 351.2 kB / 415.4 MB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.5977, allocations: 19.94 kB / 415.5 MB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.5979, allocations: 20 kB / 415.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001027/0.5989, allocations: 337.4 kB / 415.8 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.6001, allocations: 421.9 kB / 416.2 MB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.6002, allocations: 4 kB / 416.2 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.122e-05/0.6003, allocations: 4 kB / 416.2 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.6003, allocations: 8 kB / 416.2 MB, free: 7.871 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.6033, allocations: 1.003 MB / 417.2 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.6047, allocations: 390.6 kB / 417.6 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003983/0.6051, allocations: 140.8 kB / 417.8 MB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001443/0.6053, allocations: 4 kB / 417.8 MB, free: 6.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006875/0.606, allocations: 313 kB / 418.1 MB, free: 5.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.927e-06/0.606, allocations: 0 / 418.1 MB, free: 5.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001331/0.6073, allocations: 455 kB / 418.5 MB, free: 5.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.431e-05/0.6075, allocations: 110.8 kB / 418.6 MB, free: 5.395 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004993/0.608, allocations: 270 kB / 418.9 MB, free: 5.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.6081, allocations: 33.7 kB / 418.9 MB, free: 5.086 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.6084, allocations: 219.3 kB / 419.1 MB, free: 4.867 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.6085, allocations: 75.16 kB / 419.2 MB, free: 4.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.6086, allocations: 4 kB / 419.2 MB, free: 4.789 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.6088, allocations: 326.8 kB / 419.5 MB, free: 4.461 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/0.6092, allocations: 152.7 kB / 419.7 MB, free: 4.309 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004542/0.6097, allocations: 201 kB / 419.9 MB, free: 4.098 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004563/0.6102, allocations: 163.1 kB / 420 MB, free: 3.941 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.6102, allocations: 4 kB / 420 MB, free: 3.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001375/0.6116, allocations: 0.4972 MB / 420.5 MB, free: 3.434 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.224e-05/0.6117, allocations: 59.41 kB / 420.6 MB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.6117, allocations: 3.984 kB / 420.6 MB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.6117, allocations: 4 kB / 420.6 MB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.612, allocations: 55.91 kB / 420.7 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.612, allocations: 3.938 kB / 420.7 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005697/0.6126, allocations: 39.88 kB / 420.7 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004229/0.6131, allocations: 291.7 kB / 421 MB, free: 2.973 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.000373/0.6134, allocations: 205.3 kB / 421.2 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001273/0.6147, allocations: 465.2 kB / 421.6 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.6149, allocations: 31.62 kB / 421.7 MB, free: 2.262 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.6151, allocations: 35.34 kB / 421.7 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.6151, allocations: 7.984 kB / 421.7 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.6151, allocations: 0 / 421.7 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.6151, allocations: 3.953 kB / 421.7 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008777/0.616, allocations: 397.9 kB / 422.1 MB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.616, allocations: 3.938 kB / 422.1 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.6162, allocations: 47.91 kB / 422.2 MB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/0.6162, allocations: 4 kB / 422.2 MB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001319/0.6164, allocations: 43.97 kB / 422.2 MB, free: 1.695 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/0.6164, allocations: 4 kB / 422.2 MB, free: 1.691 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.6164, allocations: 0 / 422.2 MB, free: 1.691 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.6177, allocations: 492.4 kB / 422.7 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005007/0.6183, allocations: 188.7 kB / 422.9 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.6185, allocations: 8 kB / 422.9 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004638/0.619, allocations: 47.81 kB / 422.9 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003482/0.6193, allocations: 79.91 kB / 423 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004111/0.6198, allocations: 279.7 kB / 423.3 MB, free: 0.582 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003208/0.6201, allocations: 190 kB / 423.5 MB, free: 408 kB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6201, allocations: 0 / 423.5 MB, free: 408 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.000755/0.6209, allocations: 72 kB / 423.5 MB, free: 336 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.2461/0.867, allocations: 1.062 MB / 424.6 MB, free: 103.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.8685, allocations: 494 kB / 425.1 MB, free: 103.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/0.8686, allocations: 0 / 425.1 MB, free: 103.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006818/0.8693, allocations: 325.3 kB / 425.4 MB, free: 103.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.8714, allocations: 277.1 kB / 425.7 MB, free: 103.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.8736, allocations: 0.6206 MB / 426.3 MB, free: 103.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.874, allocations: 0.8162 MB / 427.1 MB, free: 102.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001842/0.8759, allocations: 424.8 kB / 427.5 MB, free: 102.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.944e-06/0.8759, allocations: 0 / 427.5 MB, free: 102.6 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.671/3.547, allocations: 9.535 MB / 437 MB, free: 101.5 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat