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.792/1.792, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.293e-05/2.306e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2568, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1275/0.3844, allocations: 73.01 MB / 331.3 MB, free: 4.82 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.3847, allocations: 67.97 kB / 331.4 MB, free: 4.754 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3885/0.7732, allocations: 54.76 MB / 386.2 MB, free: 87.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.7732, allocations: 0 / 386.2 MB, free: 87.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.953e-05/0.7733, allocations: 15.44 kB / 386.2 MB, free: 87.27 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.001655/0.775, allocations: 0.9692 MB / 387.1 MB, free: 86.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.775, allocations: 13.91 kB / 387.1 MB, free: 86.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002786/0.7753, allocations: 76.12 kB / 387.2 MB, free: 86.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009726/0.7763, allocations: 469.6 kB / 387.7 MB, free: 86.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.642e-05/0.7764, allocations: 20.72 kB / 387.7 MB, free: 86.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.7766, allocations: 37.67 kB / 387.7 MB, free: 86.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001418/0.778, allocations: 0.575 MB / 388.3 MB, free: 85.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.7796, allocations: 0.7331 MB / 389 MB, free: 85.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.7797, allocations: 4 kB / 389.1 MB, free: 85.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001557/0.7798, allocations: 6.781 kB / 389.1 MB, free: 85.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.7799, allocations: 13.97 kB / 389.1 MB, free: 85.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003879/0.7837, allocations: 1.567 MB / 390.6 MB, free: 84.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.7848, allocations: 0.5426 MB / 391.2 MB, free: 83.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005254/0.7854, allocations: 270.5 kB / 391.4 MB, free: 83.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002699/0.7857, allocations: 4.562 kB / 391.4 MB, free: 83.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009221/0.7866, allocations: 0.5322 MB / 392 MB, free: 83.03 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 3.096e-06/0.7866, allocations: 0 / 392 MB, free: 83.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.001884/0.7885, allocations: 0.8109 MB / 392.8 MB, free: 82.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.7886, allocations: 204.3 kB / 393 MB, free: 81.97 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005026/0.7891, allocations: 345.9 kB / 393.3 MB, free: 81.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001442/0.7893, allocations: 41.7 kB / 393.4 MB, free: 81.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.7894, allocations: 286.9 kB / 393.6 MB, free: 81.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.7897, allocations: 122.3 kB / 393.8 MB, free: 81.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.7898, allocations: 4 kB / 393.8 MB, free: 81.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.7899, allocations: 334.8 kB / 394.1 MB, free: 80.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000588/0.7905, allocations: 269.5 kB / 394.4 MB, free: 80.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/0.7911, allocations: 348 kB / 394.7 MB, free: 80.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006608/0.7918, allocations: 303.6 kB / 395 MB, free: 79.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.7918, allocations: 0 / 395 MB, free: 79.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001945/0.7938, allocations: 0.8827 MB / 395.9 MB, free: 79.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.066e-05/0.7939, allocations: 144.5 kB / 396 MB, free: 78.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.7939, allocations: 7.922 kB / 396 MB, free: 78.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.562e-05/0.7939, allocations: 7.953 kB / 396 MB, free: 78.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.7943, allocations: 107.7 kB / 396.1 MB, free: 78.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.7943, allocations: 8 kB / 396.2 MB, free: 78.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007986/0.7951, allocations: 67.61 kB / 396.2 MB, free: 78.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005883/0.7957, allocations: 0.5574 MB / 396.8 MB, free: 78.16 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.0004259/0.7962, allocations: 312.9 kB / 397.1 MB, free: 77.83 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001776/0.798, allocations: 0.8185 MB / 397.9 MB, free: 77.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.7982, allocations: 51.39 kB / 397.9 MB, free: 76.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.7983, allocations: 44.55 kB / 398 MB, free: 76.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.7983, allocations: 4 kB / 398 MB, free: 76.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.7983, allocations: 4 kB / 398 MB, free: 76.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.7984, allocations: 7.984 kB / 398 MB, free: 76.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.7995, allocations: 0.5666 MB / 398.6 MB, free: 76.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.7995, allocations: 0 / 398.6 MB, free: 76.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.7997, allocations: 87.8 kB / 398.7 MB, free: 76.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.7998, allocations: 4 kB / 398.7 MB, free: 76.22 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/0.8, allocations: 87.94 kB / 398.8 MB, free: 76.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.8, allocations: 7.953 kB / 398.8 MB, free: 76.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.8, allocations: 0 / 398.8 MB, free: 76.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.8017, allocations: 0.8597 MB / 399.6 MB, free: 75.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005916/0.8024, allocations: 256.5 kB / 399.9 MB, free: 74.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.8027, allocations: 19.81 kB / 399.9 MB, free: 74.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006028/0.8033, allocations: 51.86 kB / 399.9 MB, free: 74.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004772/0.8038, allocations: 160.2 kB / 400.1 MB, free: 74.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005856/0.8044, allocations: 0.5618 MB / 400.7 MB, free: 74.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003131/0.8047, allocations: 240.5 kB / 400.9 MB, free: 73.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8047, allocations: 0 / 400.9 MB, free: 73.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001011/0.8057, allocations: 124 kB / 401 MB, free: 73.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.002331/0.8081, allocations: 1.458 MB / 402.5 MB, free: 72.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.8098, allocations: 0.9605 MB / 403.4 MB, free: 71.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.8098, allocations: 0.5625 kB / 403.4 MB, free: 71.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009605/0.8108, allocations: 0.6509 MB / 404.1 MB, free: 70.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003328/0.8141, allocations: 477 kB / 404.5 MB, free: 70.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003121/0.8173, allocations: 0.9896 MB / 405.5 MB, free: 69.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/0.8178, allocations: 0.9061 MB / 406.4 MB, free: 68.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003391/0.8212, allocations: 0.8141 MB / 407.3 MB, free: 67.4 MB / 314.7 MB Notification: Performance of SimCode: time 1.744e-06/0.8213, allocations: 0 / 407.3 MB, free: 67.4 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.679/3.5, allocations: 16.82 MB / 424.1 MB, free: 49.91 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