Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.705/1.705, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.253e-05/4.284e-05, allocations: 7.438 kB / 225.1 MB, free: 2.738 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2587, allocations: 38.77 MB / 263.9 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.3899, allocations: 73.68 MB / 337.5 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.3902, allocations: 67.97 kB / 337.6 MB, free: 16 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3952/0.7855, allocations: 55.16 MB / 392.8 MB, free: 80.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.7855, allocations: 1.969 kB / 392.8 MB, free: 80.76 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.947e-05/0.7856, allocations: 19.56 kB / 392.8 MB, free: 80.74 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001742/0.7873, allocations: 0.9605 MB / 393.7 MB, free: 79.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.7874, allocations: 16.03 kB / 393.8 MB, free: 79.76 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002649/0.7877, allocations: 98.52 kB / 393.9 MB, free: 79.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002627/0.788, allocations: 75.16 kB / 393.9 MB, free: 79.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.789, allocations: 467.6 kB / 394.4 MB, free: 79.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.845e-05/0.7891, allocations: 48.58 kB / 394.4 MB, free: 79.06 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002419/0.7893, allocations: 60 kB / 394.5 MB, free: 79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.7913, allocations: 0.8002 MB / 395.3 MB, free: 78.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.7913, allocations: 0 / 395.3 MB, free: 78.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001684/0.7915, allocations: 24 kB / 395.3 MB, free: 78.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.7915, allocations: 12 kB / 395.3 MB, free: 78.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.7932, allocations: 0.6039 MB / 395.9 MB, free: 77.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004507/0.7978, allocations: 1.673 MB / 397.6 MB, free: 75.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.7992, allocations: 0.5587 MB / 398.2 MB, free: 75.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000694/0.7999, allocations: 282.5 kB / 398.4 MB, free: 75.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002336/0.8002, allocations: 16.52 kB / 398.5 MB, free: 75.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.8013, allocations: 0.5406 MB / 399 MB, free: 74.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 4.459e-06/0.8013, allocations: 3.938 kB / 399 MB, free: 74.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002506/0.8038, allocations: 0.9792 MB / 400 MB, free: 73.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.804, allocations: 196.5 kB / 400.2 MB, free: 73.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005761/0.8045, allocations: 367.1 kB / 400.5 MB, free: 72.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001742/0.8047, allocations: 45.7 kB / 400.6 MB, free: 72.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.8049, allocations: 283 kB / 400.8 MB, free: 72.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.8052, allocations: 128.6 kB / 401 MB, free: 72.42 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.8053, allocations: 23.83 kB / 401 MB, free: 72.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.769e-05/0.8054, allocations: 330.8 kB / 401.3 MB, free: 72.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007398/0.8062, allocations: 285.5 kB / 401.6 MB, free: 71.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007734/0.8069, allocations: 356.1 kB / 401.9 MB, free: 71.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008681/0.8078, allocations: 461.3 kB / 402.4 MB, free: 70.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.8079, allocations: 0 / 402.4 MB, free: 70.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002399/0.8103, allocations: 1.071 MB / 403.5 MB, free: 69.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.74e-05/0.8104, allocations: 150.2 kB / 403.6 MB, free: 69.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.8104, allocations: 4 kB / 403.6 MB, free: 69.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.8105, allocations: 4 kB / 403.6 MB, free: 69.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.8108, allocations: 107.6 kB / 403.7 MB, free: 69.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.8108, allocations: 8.062 kB / 403.7 MB, free: 69.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008501/0.8117, allocations: 83.59 kB / 403.8 MB, free: 69.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005981/0.8123, allocations: 0.5649 MB / 404.4 MB, free: 68.91 MB / 314.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.0004665/0.8128, allocations: 336.9 kB / 404.7 MB, free: 68.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/0.813, allocations: 47.53 kB / 404.8 MB, free: 68.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001746/0.8132, allocations: 56.5 kB / 404.8 MB, free: 68.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.8132, allocations: 7.984 kB / 404.8 MB, free: 68.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.8132, allocations: 0 / 404.8 MB, free: 68.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.8133, allocations: 0 / 404.8 MB, free: 68.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.8146, allocations: 0.6544 MB / 405.5 MB, free: 67.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.8146, allocations: 4 kB / 405.5 MB, free: 67.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.8148, allocations: 87.8 kB / 405.6 MB, free: 67.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.055e-05/0.8148, allocations: 4 kB / 405.6 MB, free: 67.67 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.815, allocations: 91.94 kB / 405.7 MB, free: 67.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.8151, allocations: 3.953 kB / 405.7 MB, free: 67.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.8151, allocations: 0 / 405.7 MB, free: 67.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.8173, allocations: 1.028 MB / 406.7 MB, free: 66.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006547/0.818, allocations: 252.5 kB / 406.9 MB, free: 66.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/0.8183, allocations: 31.84 kB / 407 MB, free: 66.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006467/0.8189, allocations: 59.86 kB / 407 MB, free: 66.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004474/0.8194, allocations: 163.5 kB / 407.2 MB, free: 65.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005954/0.82, allocations: 0.5619 MB / 407.7 MB, free: 65.43 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003946/0.8204, allocations: 246.1 kB / 408 MB, free: 65.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8204, allocations: 3.844 kB / 408 MB, free: 65.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001064/0.8215, allocations: 147.9 kB / 408.1 MB, free: 65.04 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: 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.002709/0.8242, allocations: 1.637 MB / 409.8 MB, free: 63.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.8263, allocations: 0.9878 MB / 410.8 MB, free: 62.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.8264, allocations: 0.5625 kB / 410.8 MB, free: 62.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.8275, allocations: 0.6588 MB / 411.4 MB, free: 61.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003197/0.8307, allocations: 488.3 kB / 411.9 MB, free: 61.13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003003/0.8337, allocations: 1.045 MB / 412.9 MB, free: 60.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.8342, allocations: 0.8987 MB / 413.8 MB, free: 59.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00322/0.8374, allocations: 0.8102 MB / 414.6 MB, free: 58.3 MB / 314.7 MB Notification: Performance of SimCode: time 1.864e-06/0.8375, allocations: 0 / 414.6 MB, free: 58.3 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.757/3.595, allocations: 16.83 MB / 431.5 MB, free: 40.8 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat