Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.679/1.679, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.95e-05/2.96e-05, allocations: 0 / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2561, allocations: 38.77 MB / 263.8 MB, free: 9.746 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1311/0.3873, allocations: 72.97 MB / 336.8 MB, free: 0.668 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.3876, allocations: 71.95 kB / 336.9 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3635/0.7512, allocations: 42.81 MB / 379.7 MB, free: 89.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.7513, allocations: 0 / 379.7 MB, free: 89.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.791e-05/0.7513, allocations: 10.16 kB / 379.7 MB, free: 89.86 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.0012/0.7525, allocations: 0.6865 MB / 380.4 MB, free: 89.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.7526, allocations: 12.88 kB / 380.4 MB, free: 89.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001609/0.7527, allocations: 72.78 kB / 380.5 MB, free: 89.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.7529, allocations: 52.28 kB / 380.5 MB, free: 89.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006899/0.7536, allocations: 343 kB / 380.8 MB, free: 89.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.626e-05/0.7537, allocations: 28.23 kB / 380.9 MB, free: 89.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.7538, allocations: 37.47 kB / 380.9 MB, free: 89.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.755, allocations: 463.4 kB / 381.4 MB, free: 89.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.755, allocations: 0 / 381.4 MB, free: 89.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.507e-05/0.7551, allocations: 18.91 kB / 381.4 MB, free: 89.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.7551, allocations: 7.844 kB / 381.4 MB, free: 89.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009098/0.7561, allocations: 347.9 kB / 381.7 MB, free: 88.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.7586, allocations: 1.068 MB / 382.8 MB, free: 88.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.7599, allocations: 415.8 kB / 383.2 MB, free: 88.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004289/0.7604, allocations: 156.1 kB / 383.4 MB, free: 88.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.7605, allocations: 3.969 kB / 383.4 MB, free: 88.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006731/0.7612, allocations: 321.2 kB / 383.7 MB, free: 88.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.787e-06/0.7612, allocations: 4 kB / 383.7 MB, free: 88.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001329/0.7626, allocations: 0.5209 MB / 384.2 MB, free: 87.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.7627, allocations: 114.8 kB / 384.3 MB, free: 87.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004127/0.7631, allocations: 266.9 kB / 384.6 MB, free: 87.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.7632, allocations: 45.69 kB / 384.6 MB, free: 87.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.7633, allocations: 227 kB / 384.8 MB, free: 87.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.7635, allocations: 70.92 kB / 384.9 MB, free: 87.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.7636, allocations: 12 kB / 384.9 MB, free: 87.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.7636, allocations: 330.8 kB / 385.2 MB, free: 86.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.7641, allocations: 160.7 kB / 385.4 MB, free: 86.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004563/0.7646, allocations: 205.5 kB / 385.6 MB, free: 86.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005018/0.7651, allocations: 236.2 kB / 385.8 MB, free: 86.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.7651, allocations: 0 / 385.8 MB, free: 86.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001337/0.7664, allocations: 0.5784 MB / 386.4 MB, free: 85.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.486e-05/0.7665, allocations: 75.36 kB / 386.5 MB, free: 85.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.7665, allocations: 0 / 386.5 MB, free: 85.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.7666, allocations: 4 kB / 386.5 MB, free: 85.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.7668, allocations: 51.81 kB / 386.5 MB, free: 85.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.7668, allocations: 0 / 386.5 MB, free: 85.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005438/0.7674, allocations: 51.72 kB / 386.6 MB, free: 85.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003096/0.7677, allocations: 286.8 kB / 386.9 MB, free: 85.04 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.0002941/0.768, allocations: 216 kB / 387.1 MB, free: 84.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.7682, allocations: 27.62 kB / 387.1 MB, free: 84.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.7683, allocations: 43.08 kB / 387.1 MB, free: 84.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.7683, allocations: 0 / 387.1 MB, free: 84.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.7683, allocations: 4 kB / 387.1 MB, free: 84.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.7683, allocations: 0 / 387.1 MB, free: 84.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007465/0.7691, allocations: 455.9 kB / 387.6 MB, free: 84.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.7691, allocations: 4 kB / 387.6 MB, free: 84.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.7693, allocations: 51.81 kB / 387.6 MB, free: 84.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.7693, allocations: 0 / 387.6 MB, free: 84.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.7694, allocations: 47.97 kB / 387.7 MB, free: 84.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.7694, allocations: 0 / 387.7 MB, free: 84.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.7694, allocations: 0 / 387.7 MB, free: 84.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.7707, allocations: 0.5585 MB / 388.3 MB, free: 83.58 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004052/0.7711, allocations: 188.7 kB / 388.4 MB, free: 83.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.7713, allocations: 23.98 kB / 388.5 MB, free: 83.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004304/0.7717, allocations: 43.81 kB / 388.5 MB, free: 83.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002833/0.772, allocations: 79.92 kB / 388.6 MB, free: 83.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003239/0.7723, allocations: 279.1 kB / 388.9 MB, free: 82.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002657/0.7726, allocations: 203.1 kB / 389.1 MB, free: 82.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.673e-06/0.7726, allocations: 0 / 389.1 MB, free: 82.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005919/0.7732, allocations: 98.53 kB / 389.1 MB, free: 82.67 MB / 314.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.001569/0.7748, allocations: 1.133 MB / 390.3 MB, free: 81.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.776, allocations: 0.5057 MB / 390.8 MB, free: 80.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.776, allocations: 3.938 kB / 390.8 MB, free: 80.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000578/0.7766, allocations: 331.1 kB / 391.1 MB, free: 80.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.7785, allocations: 283.6 kB / 391.4 MB, free: 80.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.7804, allocations: 0.6453 MB / 392 MB, free: 79.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.7808, allocations: 0.8152 MB / 392.9 MB, free: 78.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00159/0.7824, allocations: 422.5 kB / 393.3 MB, free: 78.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.7824, allocations: 0 / 393.3 MB, free: 78.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.767/3.549, allocations: 9.575 MB / 402.8 MB, free: 68.55 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat