Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.216/1.913, allocations: 46.82 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0875/2.001, allocations: 44.52 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2793/2.28, allocations: 77.52 MB / 371.4 MB, free: 7.109 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/2.28, allocations: 68.12 kB / 371.5 MB, free: 7.109 MB / 298.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.133/2.413, allocations: 42.58 MB / 414.1 MB, free: 7.379 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/2.413, allocations: 8 kB / 414.1 MB, free: 7.371 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/2.414, allocations: 51.44 kB / 414.1 MB, free: 7.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007787/2.414, allocations: 350.4 kB / 414.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.005e-05/2.414, allocations: 12 kB / 414.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/2.415, allocations: 24 kB / 414.5 MB, free: 6.914 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001087/2.416, allocations: 337.2 kB / 414.9 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/2.417, allocations: 432.5 kB / 415.3 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/2.417, allocations: 3.984 kB / 415.3 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.725e-05/2.417, allocations: 0 / 415.3 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/2.417, allocations: 8 kB / 415.3 MB, free: 6.145 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/2.42, allocations: 0.9968 MB / 416.3 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/2.421, allocations: 394.6 kB / 416.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004181/2.422, allocations: 148.8 kB / 416.8 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.773e-05/2.422, allocations: 7.906 kB / 416.8 MB, free: 4.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006843/2.423, allocations: 301.1 kB / 417.1 MB, free: 4.262 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.617e-06/2.423, allocations: 3.938 kB / 417.1 MB, free: 4.258 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001319/2.424, allocations: 435 kB / 417.5 MB, free: 3.828 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/2.424, allocations: 106.8 kB / 417.6 MB, free: 3.699 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004718/2.425, allocations: 260.9 kB / 417.9 MB, free: 3.438 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/2.425, allocations: 41.7 kB / 417.9 MB, free: 3.391 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/2.425, allocations: 144.7 kB / 418.1 MB, free: 3.246 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/2.425, allocations: 75.09 kB / 418.2 MB, free: 3.172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.426e-05/2.425, allocations: 4 kB / 418.2 MB, free: 3.168 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/2.425, allocations: 342.8 kB / 418.5 MB, free: 2.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004606/2.426, allocations: 144.7 kB / 418.6 MB, free: 2.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005058/2.426, allocations: 212.8 kB / 418.8 MB, free: 2.461 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005106/2.427, allocations: 163.8 kB / 419 MB, free: 2.301 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/2.427, allocations: 0 / 419 MB, free: 2.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001396/2.428, allocations: 493 kB / 419.5 MB, free: 1.812 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/2.428, allocations: 4 kB / 419.5 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/2.428, allocations: 3.984 kB / 419.5 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/2.428, allocations: 8 kB / 419.5 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/2.429, allocations: 51.91 kB / 419.6 MB, free: 1.746 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.649e-06/2.429, allocations: 4 kB / 419.6 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005651/2.429, allocations: 51.75 kB / 419.6 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004389/2.43, allocations: 283.7 kB / 419.9 MB, free: 1.414 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.0003595/2.43, allocations: 204.1 kB / 420.1 MB, free: 1.195 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/2.43, allocations: 39.5 kB / 420.1 MB, free: 1.156 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/2.43, allocations: 30.95 kB / 420.2 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/2.43, allocations: 4 kB / 420.2 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/2.43, allocations: 0 / 420.2 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/2.43, allocations: 3.984 kB / 420.2 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008592/2.431, allocations: 405.1 kB / 420.6 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/2.431, allocations: 0 / 420.6 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/2.431, allocations: 47.91 kB / 420.6 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/2.431, allocations: 4 kB / 420.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/2.432, allocations: 47.97 kB / 420.7 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/2.432, allocations: 0 / 420.7 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/2.432, allocations: 3.984 kB / 420.7 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001237/2.433, allocations: 464.4 kB / 421.1 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001438/2.434, allocations: 0.8372 MB / 421.9 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004794/2.435, allocations: 196.6 kB / 422.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/2.435, allocations: 8 kB / 422.1 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/2.435, allocations: 39.86 kB / 422.2 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/2.436, allocations: 75.92 kB / 422.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000437/2.436, allocations: 279.7 kB / 422.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000333/2.437, allocations: 193.2 kB / 422.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001528/2.438, allocations: 75.91 kB / 422.8 MB, free: 14.39 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.0002845/2.438, allocations: 133.8 kB / 422.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00119/2.44, allocations: 453.9 kB / 423.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/2.44, allocations: 4.062 kB / 423.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006385/2.44, allocations: 275.2 kB / 423.6 MB, free: 13.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/2.442, allocations: 267.2 kB / 423.9 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/2.445, allocations: 0.5105 MB / 424.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003088/2.448, allocations: 1.471 MB / 425.9 MB, free: 11.23 MB / 330.7 MB Notification: Performance of SimCode: time 3.366e-06/2.448, allocations: 0 / 425.9 MB, free: 11.23 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat