Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_Multiplexer",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.664/1.664, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2493/1.913, allocations: 46.82 MB / 249.4 MB, free: 5.371 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08751/2.001, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2807/2.282, allocations: 78.22 MB / 372.1 MB, free: 7.055 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/2.282, allocations: 65.59 kB / 372.2 MB, free: 7.055 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.1784/2.46, allocations: 55.07 MB / 427.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/2.46, allocations: 12 kB / 427.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003335/2.461, allocations: 75.16 kB / 427.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/2.462, allocations: 468.8 kB / 427.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/2.462, allocations: 20 kB / 427.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002397/2.462, allocations: 40 kB / 427.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00194/2.464, allocations: 0.5883 MB / 428.5 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/2.466, allocations: 0.7454 MB / 429.2 MB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/2.466, allocations: 3.906 kB / 429.2 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001794/2.467, allocations: 4 kB / 429.2 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.47e-05/2.467, allocations: 12 kB / 429.2 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004797/2.471, allocations: 1.588 MB / 430.8 MB, free: 7.297 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/2.473, allocations: 0.5072 MB / 431.3 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007462/2.474, allocations: 274.2 kB / 431.6 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001608/2.474, allocations: 4.5 kB / 431.6 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/2.475, allocations: 0.532 MB / 432.1 MB, free: 5.965 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 3.396e-06/2.475, allocations: 0 / 432.1 MB, free: 5.965 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.002343/2.477, allocations: 0.7576 MB / 432.9 MB, free: 5.199 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/2.478, allocations: 192.4 kB / 433.1 MB, free: 4.965 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00071/2.478, allocations: 349.6 kB / 433.4 MB, free: 4.617 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001742/2.478, allocations: 41.69 kB / 433.4 MB, free: 4.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/2.479, allocations: 192.9 kB / 433.6 MB, free: 4.375 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/2.479, allocations: 126.5 kB / 433.8 MB, free: 4.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/2.479, allocations: 12 kB / 433.8 MB, free: 4.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/2.479, allocations: 350.8 kB / 434.1 MB, free: 3.887 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008104/2.48, allocations: 277.2 kB / 434.4 MB, free: 3.617 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008888/2.481, allocations: 347.1 kB / 434.7 MB, free: 3.258 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008952/2.482, allocations: 307.7 kB / 435 MB, free: 2.957 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/2.482, allocations: 0 / 435 MB, free: 2.957 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002533/2.485, allocations: 0.8591 MB / 435.9 MB, free: 2.094 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/2.485, allocations: 4 kB / 435.9 MB, free: 2.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/2.485, allocations: 4 kB / 435.9 MB, free: 2.086 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/2.485, allocations: 7.906 kB / 435.9 MB, free: 2.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003965/2.485, allocations: 103.8 kB / 436 MB, free: 1.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/2.485, allocations: 4 kB / 436 MB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008882/2.486, allocations: 79.69 kB / 436.1 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008776/2.487, allocations: 0.5618 MB / 436.6 MB, free: 1.332 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,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,CLK.y,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,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,Enable.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 5 * 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.0006036/2.487, allocations: 313.1 kB / 436.9 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002533/2.488, allocations: 47.44 kB / 437 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000198/2.488, allocations: 48.55 kB / 437 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/2.488, allocations: 4 kB / 437 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/2.488, allocations: 0 / 437 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/2.488, allocations: 3.984 kB / 437 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/2.489, allocations: 0.5742 MB / 437.6 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/2.489, allocations: 8 kB / 437.6 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003053/2.49, allocations: 95.88 kB / 437.7 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/2.49, allocations: 0 / 437.7 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002479/2.49, allocations: 87.95 kB / 437.8 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/2.49, allocations: 0 / 437.8 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/2.49, allocations: 0 / 437.8 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002323/2.492, allocations: 0.8102 MB / 438.6 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002399/2.495, allocations: 1.186 MB / 439.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007605/2.496, allocations: 256.5 kB / 440.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000344/2.496, allocations: 16 kB / 440.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006952/2.497, allocations: 59.7 kB / 440.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005154/2.497, allocations: 156.3 kB / 440.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008351/2.498, allocations: 0.5541 MB / 440.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000421/2.499, allocations: 236.6 kB / 441.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001836/2.5, allocations: 120 kB / 441.2 MB, free: 12.67 MB / 346.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: 56 ($whenCondition1,CLK.y,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,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,Enable.y) * Number of discrete states: 23 (Enable.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,D3.y,D2.y,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,D1.y,D0.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 5 * 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.0003934/2.501, allocations: 160.8 kB / 441.3 MB, free: 12.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00216/2.503, allocations: 0.8387 MB / 442.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/2.503, allocations: 0 / 442.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/2.504, allocations: 0.5334 MB / 442.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003779/2.508, allocations: 472.1 kB / 443.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/2.512, allocations: 0.8627 MB / 444 MB, free: 9.727 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005664/2.517, allocations: 2.18 MB / 446.2 MB, free: 7.516 MB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/2.517, allocations: 0 / 446.2 MB, free: 7.516 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat