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.896/1.896, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.066e-05/3.084e-05, allocations: 4 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.09196, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3969/0.4889, allocations: 78.25 MB / 378.2 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.4892, allocations: 68.55 kB / 378.2 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1271/0.6162, allocations: 42.79 MB / 421 MB, free: 4.461 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6163, allocations: 0 / 421 MB, free: 4.461 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.6163, allocations: 11.62 kB / 421 MB, free: 4.457 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.001134/0.6175, allocations: 0.6846 MB / 421.7 MB, free: 3.848 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.6175, allocations: 7.781 kB / 421.7 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001438/0.6177, allocations: 73.53 kB / 421.8 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.6178, allocations: 51.38 kB / 421.9 MB, free: 3.773 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006555/0.6185, allocations: 352.9 kB / 422.2 MB, free: 3.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.6186, allocations: 31.34 kB / 422.2 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.6187, allocations: 32.84 kB / 422.3 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.6198, allocations: 469.4 kB / 422.7 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.6198, allocations: 0 / 422.7 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.394e-05/0.6199, allocations: 18.73 kB / 422.7 MB, free: 3.367 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.62, allocations: 7.75 kB / 422.8 MB, free: 3.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008855/0.6209, allocations: 343.4 kB / 423.1 MB, free: 3.336 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002402/0.6233, allocations: 1.069 MB / 424.2 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.6246, allocations: 406 kB / 424.6 MB, free: 2.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004068/0.625, allocations: 156 kB / 424.7 MB, free: 2.727 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/0.6252, allocations: 3.844 kB / 424.7 MB, free: 2.727 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006328/0.6258, allocations: 325.2 kB / 425 MB, free: 2.582 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.256e-06/0.6258, allocations: 0 / 425 MB, free: 2.582 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001289/0.6271, allocations: 0.5193 MB / 425.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.6272, allocations: 114.6 kB / 425.7 MB, free: 2.289 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006287/0.6278, allocations: 272.6 kB / 425.9 MB, free: 2.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001592/0.628, allocations: 47.5 kB / 426 MB, free: 2.117 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.6282, allocations: 220.4 kB / 426.2 MB, free: 1.938 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.6284, allocations: 75.03 kB / 426.3 MB, free: 1.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.611e-05/0.6285, allocations: 8.625 kB / 426.3 MB, free: 1.895 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.881e-05/0.6285, allocations: 333.2 kB / 426.6 MB, free: 1.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.629, allocations: 159.2 kB / 426.8 MB, free: 1.555 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.6295, allocations: 208.9 kB / 427 MB, free: 1.492 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.63, allocations: 235.6 kB / 427.2 MB, free: 1.398 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.63, allocations: 3.938 kB / 427.2 MB, free: 1.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001327/0.6313, allocations: 0.5812 MB / 427.8 MB, free: 1.227 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.582e-05/0.6314, allocations: 64.64 kB / 427.8 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.6314, allocations: 3.875 kB / 427.8 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.6315, allocations: 0 / 427.8 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.6317, allocations: 62.03 kB / 427.9 MB, free: 1.145 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.6317, allocations: 7.891 kB / 427.9 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000568/0.6323, allocations: 46.47 kB / 428 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.6326, allocations: 284.3 kB / 428.2 MB, free: 1.098 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.0003118/0.633, allocations: 214.6 kB / 428.4 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.6331, allocations: 30.88 kB / 428.5 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.6333, allocations: 42.89 kB / 428.5 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.6333, allocations: 3.875 kB / 428.5 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.6333, allocations: 0 / 428.5 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.6333, allocations: 3.953 kB / 428.5 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008303/0.6342, allocations: 461.8 kB / 429 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.6342, allocations: 0 / 429 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.6343, allocations: 42.59 kB / 429 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.828e-06/0.6344, allocations: 3.875 kB / 429 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.6345, allocations: 47.03 kB / 429.1 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.6345, allocations: 0 / 429.1 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.6345, allocations: 7.922 kB / 429.1 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.6358, allocations: 0.5555 MB / 429.6 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004241/0.6363, allocations: 201.6 kB / 429.8 MB, free: 172 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.6364, allocations: 19.45 kB / 429.8 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000424/0.6369, allocations: 34.38 kB / 429.9 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/0.6372, allocations: 91.06 kB / 430 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003129/0.6375, allocations: 273.7 kB / 430.2 MB, free: 84 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003369/0.6378, allocations: 202.8 kB / 430.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6379, allocations: 0 / 430.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006159/0.6385, allocations: 80.47 kB / 430.5 MB, free: 15.95 MB / 330.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.001851/0.6403, allocations: 1.145 MB / 431.7 MB, free: 15.1 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.6416, allocations: 0.5098 MB / 432.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6416, allocations: 0 / 432.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005978/0.6422, allocations: 325.9 kB / 432.5 MB, free: 14.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.6441, allocations: 282.2 kB / 432.8 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.646, allocations: 0.6514 MB / 433.4 MB, free: 14.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.6465, allocations: 0.8124 MB / 434.2 MB, free: 13.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/0.6482, allocations: 425.9 kB / 434.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of SimCode: time 1.183e-06/0.6482, allocations: 0 / 434.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.196/3.844, allocations: 9.573 MB / 444.2 MB, free: 3.73 MB / 330.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