Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.138e-05/3.15e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2531, allocations: 38.76 MB / 263.9 MB, free: 9.719 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.3854, allocations: 73.69 MB / 337.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.3857, allocations: 71.95 kB / 337.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4038/0.7895, allocations: 55.16 MB / 392.8 MB, free: 80.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7896, allocations: 0 / 392.8 MB, free: 80.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.419e-05/0.7896, allocations: 19.56 kB / 392.8 MB, free: 80.54 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.001992/0.7917, allocations: 0.9676 MB / 393.8 MB, free: 79.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.7917, allocations: 8.031 kB / 393.8 MB, free: 79.55 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003474/0.7921, allocations: 98.52 kB / 393.9 MB, free: 79.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002843/0.7924, allocations: 79.16 kB / 394 MB, free: 79.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.7936, allocations: 471.9 kB / 394.4 MB, free: 78.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.014e-05/0.7937, allocations: 48.58 kB / 394.5 MB, free: 78.85 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.7939, allocations: 56 kB / 394.5 MB, free: 78.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.796, allocations: 0.8002 MB / 395.3 MB, free: 77.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.7961, allocations: 0 / 395.3 MB, free: 77.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/0.7963, allocations: 24 kB / 395.3 MB, free: 77.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.7963, allocations: 16 kB / 395.4 MB, free: 77.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.798, allocations: 0.5998 MB / 396 MB, free: 77.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004683/0.8028, allocations: 1.669 MB / 397.6 MB, free: 75.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.8043, allocations: 0.5664 MB / 398.2 MB, free: 75.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007731/0.8051, allocations: 282.5 kB / 398.5 MB, free: 74.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002363/0.8054, allocations: 8.516 kB / 398.5 MB, free: 74.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.8065, allocations: 0.5484 MB / 399 MB, free: 74.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 4.118e-06/0.8065, allocations: 0 / 399 MB, free: 74.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002404/0.809, allocations: 0.9831 MB / 400 MB, free: 73.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.7e-05/0.8091, allocations: 196.5 kB / 400.2 MB, free: 73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006307/0.8097, allocations: 359.1 kB / 400.6 MB, free: 72.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002318/0.81, allocations: 49.7 kB / 400.6 MB, free: 72.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.8102, allocations: 236.4 kB / 400.8 MB, free: 72.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.8105, allocations: 124.4 kB / 401 MB, free: 72.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.8106, allocations: 20 kB / 401 MB, free: 72.24 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.8107, allocations: 358.8 kB / 401.3 MB, free: 71.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008156/0.8116, allocations: 285.3 kB / 401.6 MB, free: 71.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008057/0.8124, allocations: 360.1 kB / 402 MB, free: 71.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000939/0.8134, allocations: 452.3 kB / 402.4 MB, free: 70.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.8134, allocations: 0 / 402.4 MB, free: 70.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002574/0.816, allocations: 1.09 MB / 403.5 MB, free: 69.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.376e-05/0.8161, allocations: 152.5 kB / 403.6 MB, free: 69.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.8161, allocations: 0 / 403.6 MB, free: 69.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.048e-05/0.8162, allocations: 4 kB / 403.6 MB, free: 69.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.8165, allocations: 103.6 kB / 403.7 MB, free: 69.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.8166, allocations: 4 kB / 403.7 MB, free: 69.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009203/0.8175, allocations: 87.66 kB / 403.8 MB, free: 69.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006267/0.8181, allocations: 0.5688 MB / 404.4 MB, free: 68.71 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.00051/0.8187, allocations: 337.1 kB / 404.7 MB, free: 68.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.8189, allocations: 47.44 kB / 404.8 MB, free: 68.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001589/0.8191, allocations: 56.5 kB / 404.8 MB, free: 68.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.8191, allocations: 8 kB / 404.8 MB, free: 68.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.8192, allocations: 3.844 kB / 404.8 MB, free: 68.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.8192, allocations: 3.984 kB / 404.8 MB, free: 68.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.8205, allocations: 0.6523 MB / 405.5 MB, free: 67.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.303e-06/0.8206, allocations: 0 / 405.5 MB, free: 67.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002368/0.8208, allocations: 83.8 kB / 405.6 MB, free: 67.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/0.8209, allocations: 11.98 kB / 405.6 MB, free: 67.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002083/0.8211, allocations: 87.95 kB / 405.7 MB, free: 67.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/0.8211, allocations: 7.953 kB / 405.7 MB, free: 67.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.8211, allocations: 0 / 405.7 MB, free: 67.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.8235, allocations: 1.024 MB / 406.7 MB, free: 66.29 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007102/0.8242, allocations: 252.5 kB / 407 MB, free: 66.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002872/0.8246, allocations: 24 kB / 407 MB, free: 66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000704/0.8253, allocations: 75.69 kB / 407.1 MB, free: 65.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004598/0.8257, allocations: 152.4 kB / 407.2 MB, free: 65.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006008/0.8264, allocations: 0.5618 MB / 407.8 MB, free: 65.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004147/0.8268, allocations: 246.1 kB / 408 MB, free: 64.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8268, allocations: 0 / 408 MB, free: 64.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001093/0.8279, allocations: 140 kB / 408.1 MB, free: 64.84 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.002823/0.8308, allocations: 1.637 MB / 409.8 MB, free: 63.15 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.8329, allocations: 0.9884 MB / 410.8 MB, free: 62.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.81e-06/0.833, allocations: 4 kB / 410.8 MB, free: 62.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.8342, allocations: 0.6626 MB / 411.4 MB, free: 61.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003292/0.8375, allocations: 487.7 kB / 411.9 MB, free: 60.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.8409, allocations: 0.9955 MB / 412.9 MB, free: 59.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.8414, allocations: 0.9025 MB / 413.8 MB, free: 58.97 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.003552/0.8449, allocations: 1.496 MB / 415.3 MB, free: 57.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002477/0.8475, allocations: 0.6076 MB / 415.9 MB, free: 56.86 MB / 314.7 MB Notification: Performance of SimCode: time 1.753e-06/0.8475, allocations: 0 / 415.9 MB, free: 56.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06102/0.9085, allocations: 21.87 MB / 437.8 MB, free: 34.64 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002528/0.9089, allocations: 149.2 kB / 437.9 MB, free: 34.42 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.607, allocations: 4 kB / 437.9 MB, free: 34.42 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat