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.666/1.666, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.961e-05/2.971e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2518, allocations: 38.77 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.3806, allocations: 72.98 MB / 336.9 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.3809, allocations: 63.97 kB / 336.9 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3521/0.733, allocations: 42.81 MB / 379.7 MB, free: 89.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.7331, allocations: 4 kB / 379.7 MB, free: 89.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.619e-05/0.7331, allocations: 7.875 kB / 379.7 MB, free: 89.71 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.001138/0.7343, allocations: 0.6927 MB / 380.4 MB, free: 89.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.7343, allocations: 6.812 kB / 380.4 MB, free: 89.28 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.7345, allocations: 73.64 kB / 380.5 MB, free: 89.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.7347, allocations: 49.03 kB / 380.6 MB, free: 89.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.7353, allocations: 332.5 kB / 380.9 MB, free: 89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/0.7353, allocations: 37.73 kB / 380.9 MB, free: 89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.7355, allocations: 32.25 kB / 381 MB, free: 89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.7365, allocations: 465.7 kB / 381.4 MB, free: 88.87 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.7366, allocations: 0 / 381.4 MB, free: 88.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.654e-05/0.7367, allocations: 11.94 kB / 381.4 MB, free: 88.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.7367, allocations: 11.72 kB / 381.4 MB, free: 88.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008753/0.7376, allocations: 346.9 kB / 381.8 MB, free: 88.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.7399, allocations: 1.066 MB / 382.8 MB, free: 88.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.7412, allocations: 402 kB / 383.2 MB, free: 88.12 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.7416, allocations: 157.2 kB / 383.4 MB, free: 88.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.7417, allocations: 7.516 kB / 383.4 MB, free: 88.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006137/0.7423, allocations: 313.8 kB / 383.7 MB, free: 87.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.337e-06/0.7423, allocations: 0 / 383.7 MB, free: 87.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001227/0.7436, allocations: 0.5269 MB / 384.2 MB, free: 87.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.7436, allocations: 114.8 kB / 384.3 MB, free: 87.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003406/0.744, allocations: 272 kB / 384.6 MB, free: 87.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.547e-05/0.7441, allocations: 45.55 kB / 384.6 MB, free: 87.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.7442, allocations: 164.5 kB / 384.8 MB, free: 87.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.7443, allocations: 81.97 kB / 384.9 MB, free: 87.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-05/0.7444, allocations: 8 kB / 384.9 MB, free: 87.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.574e-05/0.7445, allocations: 338.8 kB / 385.2 MB, free: 86.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.7449, allocations: 160.7 kB / 385.4 MB, free: 86.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004423/0.7454, allocations: 209.2 kB / 385.6 MB, free: 86.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.7459, allocations: 224.5 kB / 385.8 MB, free: 86.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.7459, allocations: 0 / 385.8 MB, free: 86.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001278/0.7472, allocations: 0.5974 MB / 386.4 MB, free: 85.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.7473, allocations: 63.39 kB / 386.5 MB, free: 85.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.7473, allocations: 0 / 386.5 MB, free: 85.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.7473, allocations: 4 kB / 386.5 MB, free: 85.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.7475, allocations: 63.69 kB / 386.5 MB, free: 85.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.7475, allocations: 4 kB / 386.5 MB, free: 85.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004944/0.748, allocations: 51.86 kB / 386.6 MB, free: 85.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002956/0.7484, allocations: 278.8 kB / 386.9 MB, free: 85.06 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.0002479/0.7486, allocations: 220 kB / 387.1 MB, free: 84.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.7487, allocations: 31.62 kB / 387.1 MB, free: 84.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.951e-05/0.7488, allocations: 35.08 kB / 387.1 MB, free: 84.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.7488, allocations: 4 kB / 387.1 MB, free: 84.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.7488, allocations: 0 / 387.1 MB, free: 84.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.7489, allocations: 0 / 387.1 MB, free: 84.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006823/0.7496, allocations: 460 kB / 387.6 MB, free: 84.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.7496, allocations: 0 / 387.6 MB, free: 84.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.7497, allocations: 47.81 kB / 387.6 MB, free: 84.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/0.7497, allocations: 8 kB / 387.6 MB, free: 84.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.947e-05/0.7498, allocations: 43.97 kB / 387.7 MB, free: 84.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.7498, allocations: 0 / 387.7 MB, free: 84.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.7498, allocations: 4 kB / 387.7 MB, free: 84.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.751, allocations: 0.5509 MB / 388.2 MB, free: 83.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.7513, allocations: 200.6 kB / 388.4 MB, free: 83.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.7515, allocations: 15.69 kB / 388.5 MB, free: 83.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.7519, allocations: 47.72 kB / 388.5 MB, free: 83.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002603/0.7522, allocations: 83.91 kB / 388.6 MB, free: 83.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002824/0.7525, allocations: 283.7 kB / 388.9 MB, free: 82.97 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002201/0.7527, allocations: 195.1 kB / 389.1 MB, free: 82.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7527, allocations: 0 / 389.1 MB, free: 82.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005331/0.7533, allocations: 84 kB / 389.1 MB, free: 82.7 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.001449/0.7547, allocations: 1.133 MB / 390.3 MB, free: 81.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.7557, allocations: 0.5018 MB / 390.8 MB, free: 81.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.7558, allocations: 3.938 kB / 390.8 MB, free: 81 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005391/0.7563, allocations: 322.6 kB / 391.1 MB, free: 80.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.7581, allocations: 283.7 kB / 391.4 MB, free: 80.4 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.7597, allocations: 0.6118 MB / 392 MB, free: 79.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.76, allocations: 0.8074 MB / 392.8 MB, free: 78.92 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001583/0.7616, allocations: 0.7471 MB / 393.5 MB, free: 78.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/0.7627, allocations: 334.7 kB / 393.9 MB, free: 77.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7627, allocations: 0 / 393.9 MB, free: 77.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04217/0.8049, allocations: 12.63 MB / 406.5 MB, free: 65.12 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.8052, allocations: 141.9 kB / 406.6 MB, free: 64.9 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.465/3.27, allocations: 0 / 406.6 MB, free: 64.9 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