Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.668/1.668, allocations: 171.3 MB / 178.4 MB, free: 148 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.262e-05/2.271e-05, allocations: 4 kB / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2536, allocations: 38.76 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.3817, allocations: 72.31 MB / 330.6 MB, free: 5.473 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.382, allocations: 63.97 kB / 330.7 MB, free: 5.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.354/0.736, allocations: 42.52 MB / 373.2 MB, free: 91.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.736, allocations: 0 / 373.2 MB, free: 91.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.7361, allocations: 8.625 kB / 373.2 MB, free: 91.05 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.001141/0.7372, allocations: 0.6882 MB / 373.9 MB, free: 90.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.7373, allocations: 9.438 kB / 373.9 MB, free: 90.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.7375, allocations: 47.72 kB / 374 MB, free: 90.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006523/0.7381, allocations: 340.4 kB / 374.3 MB, free: 90.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.7382, allocations: 16.94 kB / 374.3 MB, free: 90.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.7384, allocations: 26.45 kB / 374.4 MB, free: 90.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009056/0.7393, allocations: 332.2 kB / 374.7 MB, free: 90.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009182/0.7402, allocations: 427.8 kB / 375.1 MB, free: 90.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.7402, allocations: 0 / 375.1 MB, free: 90.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-05/0.7403, allocations: 3.969 kB / 375.1 MB, free: 90.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.7404, allocations: 7.906 kB / 375.1 MB, free: 90.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.7426, allocations: 1.001 MB / 376.1 MB, free: 90.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.7437, allocations: 390.4 kB / 376.5 MB, free: 90.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.744, allocations: 144.2 kB / 376.6 MB, free: 90.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.7442, allocations: 7.594 kB / 376.6 MB, free: 90.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005342/0.7447, allocations: 300.9 kB / 376.9 MB, free: 89.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.815e-06/0.7448, allocations: 3.062 kB / 376.9 MB, free: 89.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001086/0.7459, allocations: 462.9 kB / 377.4 MB, free: 89.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.7459, allocations: 113.2 kB / 377.5 MB, free: 89.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003628/0.7463, allocations: 266.5 kB / 377.8 MB, free: 89.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.318e-05/0.7464, allocations: 33.11 kB / 377.8 MB, free: 89.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.7465, allocations: 167 kB / 378 MB, free: 89.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.7467, allocations: 76.72 kB / 378 MB, free: 89.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.708e-05/0.7468, allocations: 0 / 378 MB, free: 89.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.7469, allocations: 339 kB / 378.4 MB, free: 89.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005415/0.7475, allocations: 147.7 kB / 378.5 MB, free: 89.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.7479, allocations: 199 kB / 378.7 MB, free: 89.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000387/0.7483, allocations: 177.8 kB / 378.9 MB, free: 89.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.7483, allocations: 0 / 378.9 MB, free: 89.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001435/0.7497, allocations: 0.5119 MB / 379.4 MB, free: 89.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.394e-05/0.7498, allocations: 65.22 kB / 379.4 MB, free: 89.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.7498, allocations: 0 / 379.4 MB, free: 89.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.7499, allocations: 3.938 kB / 379.4 MB, free: 89.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.7501, allocations: 52.81 kB / 379.5 MB, free: 89.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.7501, allocations: 10.95 kB / 379.5 MB, free: 89.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.7507, allocations: 42.88 kB / 379.6 MB, free: 89.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003028/0.751, allocations: 278.4 kB / 379.8 MB, free: 89.02 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.0003006/0.7513, allocations: 199.8 kB / 380 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001024/0.7523, allocations: 463.8 kB / 380.5 MB, free: 88.78 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.7525, allocations: 32.59 kB / 380.5 MB, free: 88.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.7526, allocations: 27.36 kB / 380.5 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.7526, allocations: 3.781 kB / 380.5 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.7526, allocations: 0 / 380.5 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.7526, allocations: 0 / 380.5 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007016/0.7533, allocations: 402.2 kB / 380.9 MB, free: 88.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.7534, allocations: 3.938 kB / 380.9 MB, free: 88.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.7535, allocations: 49.09 kB / 381 MB, free: 88.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.7535, allocations: 7.906 kB / 381 MB, free: 88.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.431e-05/0.7536, allocations: 41.88 kB / 381 MB, free: 88.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.7536, allocations: 3.375 kB / 381 MB, free: 88.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.7537, allocations: 0 / 381 MB, free: 88.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.7547, allocations: 488.6 kB / 381.5 MB, free: 88.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.7551, allocations: 189.8 kB / 381.7 MB, free: 88.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/0.7553, allocations: 18.16 kB / 381.7 MB, free: 88.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004205/0.7557, allocations: 47.42 kB / 381.8 MB, free: 88.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/0.756, allocations: 75.5 kB / 381.8 MB, free: 88.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003064/0.7563, allocations: 282.8 kB / 382.1 MB, free: 88.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002369/0.7566, allocations: 189 kB / 382.3 MB, free: 88.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.7566, allocations: 0 / 382.3 MB, free: 88.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006385/0.7573, allocations: 71.03 kB / 382.4 MB, free: 88.29 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.00134/0.7586, allocations: 1.067 MB / 383.4 MB, free: 87.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009628/0.7596, allocations: 0.4957 MB / 383.9 MB, free: 87.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7596, allocations: 0 / 383.9 MB, free: 87.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004859/0.7601, allocations: 318.6 kB / 384.2 MB, free: 87.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.7619, allocations: 267.2 kB / 384.5 MB, free: 87.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.7637, allocations: 0.5722 MB / 385.1 MB, free: 87.1 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.7641, allocations: 0.8207 MB / 385.9 MB, free: 86.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001719/0.7658, allocations: 0.7498 MB / 386.6 MB, free: 85.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.7669, allocations: 327 kB / 387 MB, free: 85.7 MB / 314.7 MB Notification: Performance of SimCode: time 9.41e-07/0.767, allocations: 3.938 kB / 387 MB, free: 85.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05359/0.8206, allocations: 12.14 MB / 399.1 MB, free: 74.75 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/0.8208, allocations: 129.9 kB / 399.2 MB, free: 74.56 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.479/3.299, allocations: 4 kB / 399.2 MB, free: 74.56 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat