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.638/1.638, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.203e-05/4.209e-05, allocations: 7.984 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2588, allocations: 38.77 MB / 263.9 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.3905, allocations: 72.98 MB / 336.8 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.3909, allocations: 67.97 kB / 336.9 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3598/0.7507, allocations: 42.82 MB / 379.7 MB, free: 89.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.7507, allocations: 3.719 kB / 379.7 MB, free: 89.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.718e-05/0.7508, allocations: 6.969 kB / 379.7 MB, free: 89.77 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.001106/0.7519, allocations: 0.6821 MB / 380.4 MB, free: 89.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.7519, allocations: 10.19 kB / 380.4 MB, free: 89.34 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.7521, allocations: 73.25 kB / 380.5 MB, free: 89.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.7523, allocations: 52.12 kB / 380.5 MB, free: 89.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006138/0.7529, allocations: 338.9 kB / 380.9 MB, free: 89.06 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.753, allocations: 30.27 kB / 380.9 MB, free: 89.06 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.7531, allocations: 33.12 kB / 380.9 MB, free: 89.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.7542, allocations: 467.6 kB / 381.4 MB, free: 88.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.7542, allocations: 0 / 381.4 MB, free: 88.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-05/0.7543, allocations: 19.88 kB / 381.4 MB, free: 88.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.7544, allocations: 3.938 kB / 381.4 MB, free: 88.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008849/0.7552, allocations: 347 kB / 381.8 MB, free: 88.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002347/0.7576, allocations: 1.068 MB / 382.8 MB, free: 88.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.7589, allocations: 401 kB / 383.2 MB, free: 88.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003862/0.7593, allocations: 152.9 kB / 383.4 MB, free: 88.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001191/0.7594, allocations: 3.719 kB / 383.4 MB, free: 88.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006206/0.76, allocations: 318.1 kB / 383.7 MB, free: 88.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.955e-06/0.7601, allocations: 1.594 kB / 383.7 MB, free: 88.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.00126/0.7613, allocations: 0.5286 MB / 384.2 MB, free: 87.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.7614, allocations: 113.7 kB / 384.3 MB, free: 87.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.7618, allocations: 272.8 kB / 384.6 MB, free: 87.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.628e-05/0.7619, allocations: 37.7 kB / 384.6 MB, free: 87.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.762, allocations: 227 kB / 384.8 MB, free: 87.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.7621, allocations: 74.91 kB / 384.9 MB, free: 87.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.469e-05/0.7622, allocations: 8 kB / 384.9 MB, free: 87.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.963e-05/0.7623, allocations: 330.8 kB / 385.2 MB, free: 86.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004251/0.7627, allocations: 160.7 kB / 385.4 MB, free: 86.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004459/0.7632, allocations: 209.3 kB / 385.6 MB, free: 86.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004816/0.7637, allocations: 223.9 kB / 385.8 MB, free: 86.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.7637, allocations: 0 / 385.8 MB, free: 86.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001302/0.765, allocations: 0.586 MB / 386.4 MB, free: 85.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/0.7651, allocations: 55.41 kB / 386.5 MB, free: 85.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.7651, allocations: 11.97 kB / 386.5 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.7651, allocations: 4 kB / 386.5 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.7653, allocations: 56.56 kB / 386.5 MB, free: 85.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.7653, allocations: 0 / 386.5 MB, free: 85.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005005/0.7658, allocations: 51.7 kB / 386.6 MB, free: 85.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003018/0.7661, allocations: 282.8 kB / 386.9 MB, free: 85.09 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.0002534/0.7664, allocations: 216.1 kB / 387.1 MB, free: 84.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.7665, allocations: 31.62 kB / 387.1 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.449e-05/0.7666, allocations: 39.08 kB / 387.1 MB, free: 84.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.7666, allocations: 0 / 387.1 MB, free: 84.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.7667, allocations: 7.938 kB / 387.2 MB, free: 84.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.7667, allocations: 7.234 kB / 387.2 MB, free: 84.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006858/0.7674, allocations: 455.8 kB / 387.6 MB, free: 84.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.7674, allocations: 0 / 387.6 MB, free: 84.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.7675, allocations: 51.81 kB / 387.7 MB, free: 84.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.7675, allocations: 0 / 387.7 MB, free: 84.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.523e-05/0.7676, allocations: 47.97 kB / 387.7 MB, free: 84.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.7677, allocations: 0 / 387.7 MB, free: 84.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7677, allocations: 0 / 387.7 MB, free: 84.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.7688, allocations: 0.5586 MB / 388.3 MB, free: 83.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.7692, allocations: 192.7 kB / 388.4 MB, free: 83.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.7693, allocations: 16 kB / 388.5 MB, free: 83.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003887/0.7697, allocations: 47.72 kB / 388.5 MB, free: 83.35 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/0.77, allocations: 79.91 kB / 388.6 MB, free: 83.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002851/0.7703, allocations: 279.7 kB / 388.9 MB, free: 83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000221/0.7705, allocations: 199.1 kB / 389.1 MB, free: 82.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7706, allocations: 0 / 389.1 MB, free: 82.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005361/0.7711, allocations: 83.62 kB / 389.1 MB, free: 82.72 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.001474/0.7726, allocations: 1.133 MB / 390.3 MB, free: 81.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.7736, allocations: 0.5055 MB / 390.8 MB, free: 81.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.7737, allocations: 4.062 kB / 390.8 MB, free: 81.03 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005447/0.7742, allocations: 330.4 kB / 391.1 MB, free: 80.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.776, allocations: 279.3 kB / 391.4 MB, free: 80.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.7776, allocations: 0.6562 MB / 392 MB, free: 79.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.778, allocations: 0.8152 MB / 392.8 MB, free: 78.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00159/0.7796, allocations: 426.5 kB / 393.3 MB, free: 78.47 MB / 314.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7796, allocations: 0 / 393.3 MB, free: 78.47 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.754/3.534, allocations: 9.544 MB / 402.8 MB, free: 68.62 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