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.664/1.664, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.3e-05/3.317e-05, allocations: 4 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2531, allocations: 38.76 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.381, allocations: 73.68 MB / 337.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.3813, allocations: 71.89 kB / 337.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3915/0.7728, allocations: 55.15 MB / 392.7 MB, free: 80.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.7729, allocations: 1.969 kB / 392.7 MB, free: 80.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.329e-05/0.7729, allocations: 19.44 kB / 392.7 MB, free: 80.55 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.001861/0.7748, allocations: 0.9719 MB / 393.7 MB, free: 79.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.7749, allocations: 8.031 kB / 393.7 MB, free: 79.57 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003291/0.7752, allocations: 102.5 kB / 393.8 MB, free: 79.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.7755, allocations: 79.14 kB / 393.9 MB, free: 79.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.7766, allocations: 466.7 kB / 394.4 MB, free: 78.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.516e-05/0.7767, allocations: 48.58 kB / 394.4 MB, free: 78.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002244/0.7769, allocations: 56 kB / 394.5 MB, free: 78.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002054/0.779, allocations: 0.8066 MB / 395.3 MB, free: 78 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.111e-05/0.7791, allocations: 7.984 kB / 395.3 MB, free: 77.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001746/0.7793, allocations: 24 kB / 395.3 MB, free: 77.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.7793, allocations: 16 kB / 395.3 MB, free: 77.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.781, allocations: 0.6102 MB / 395.9 MB, free: 77.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004177/0.7852, allocations: 1.666 MB / 397.6 MB, free: 75.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.7866, allocations: 0.5755 MB / 398.2 MB, free: 75.08 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006998/0.7874, allocations: 286.5 kB / 398.4 MB, free: 74.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002276/0.7876, allocations: 8.516 kB / 398.5 MB, free: 74.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/0.7887, allocations: 0.5455 MB / 399 MB, free: 74.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 3.858e-06/0.7887, allocations: 0 / 399 MB, free: 74.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.0023/0.791, allocations: 0.9831 MB / 400 MB, free: 73.22 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/0.7911, allocations: 192.5 kB / 400.2 MB, free: 72.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005581/0.7917, allocations: 371.1 kB / 400.5 MB, free: 72.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000169/0.7919, allocations: 45.7 kB / 400.6 MB, free: 72.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.7921, allocations: 279 kB / 400.8 MB, free: 72.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.7923, allocations: 133.1 kB / 401 MB, free: 72.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.7924, allocations: 16 kB / 401 MB, free: 72.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.719e-05/0.7925, allocations: 334.8 kB / 401.3 MB, free: 71.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007501/0.7933, allocations: 281.5 kB / 401.6 MB, free: 71.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007908/0.7941, allocations: 365.7 kB / 402 MB, free: 71.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009013/0.795, allocations: 446.9 kB / 402.4 MB, free: 70.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.795, allocations: 4 kB / 402.4 MB, free: 70.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0024/0.7974, allocations: 1.082 MB / 403.5 MB, free: 69.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.8e-05/0.7976, allocations: 148.5 kB / 403.6 MB, free: 69.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.7976, allocations: 8.062 kB / 403.6 MB, free: 69.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.7976, allocations: 4 kB / 403.6 MB, free: 69.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/0.798, allocations: 103.6 kB / 403.7 MB, free: 69.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.798, allocations: 4 kB / 403.7 MB, free: 69.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009014/0.7989, allocations: 79.59 kB / 403.8 MB, free: 69.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000607/0.7996, allocations: 0.5649 MB / 404.4 MB, free: 68.69 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.0005079/0.8001, allocations: 333.1 kB / 404.7 MB, free: 68.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/0.8003, allocations: 47.53 kB / 404.8 MB, free: 68.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.8005, allocations: 56.48 kB / 404.8 MB, free: 68.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.8005, allocations: 4 kB / 404.8 MB, free: 68.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.8005, allocations: 4 kB / 404.8 MB, free: 68.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.8006, allocations: 0 / 404.8 MB, free: 68.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.8018, allocations: 0.6548 MB / 405.5 MB, free: 67.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.8019, allocations: 0 / 405.5 MB, free: 67.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.8021, allocations: 95.27 kB / 405.6 MB, free: 67.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.8021, allocations: 0 / 405.6 MB, free: 67.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001966/0.8023, allocations: 95.94 kB / 405.7 MB, free: 67.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.8024, allocations: 3.953 kB / 405.7 MB, free: 67.35 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8024, allocations: 0 / 405.7 MB, free: 67.35 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.8047, allocations: 1.032 MB / 406.7 MB, free: 66.27 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000679/0.8054, allocations: 252.5 kB / 406.9 MB, free: 66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002626/0.8057, allocations: 24 kB / 407 MB, free: 65.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006633/0.8064, allocations: 67.69 kB / 407 MB, free: 65.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004624/0.8068, allocations: 160.4 kB / 407.2 MB, free: 65.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005921/0.8074, allocations: 0.5579 MB / 407.7 MB, free: 65.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003766/0.8078, allocations: 250.1 kB / 408 MB, free: 64.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8078, allocations: 7.938 kB / 408 MB, free: 64.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008963/0.8087, allocations: 140 kB / 408.1 MB, free: 64.81 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.002712/0.8115, allocations: 1.637 MB / 409.8 MB, free: 63.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002049/0.8136, allocations: 0.989 MB / 410.8 MB, free: 62.08 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.8136, allocations: 0.5625 kB / 410.8 MB, free: 62.08 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.8148, allocations: 0.6672 MB / 411.4 MB, free: 61.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.8182, allocations: 492.6 kB / 411.9 MB, free: 60.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.8218, allocations: 1.046 MB / 413 MB, free: 59.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/0.8223, allocations: 0.8987 MB / 413.9 MB, free: 58.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003425/0.8257, allocations: 0.8063 MB / 414.7 MB, free: 58.07 MB / 314.7 MB Notification: Performance of SimCode: time 2.245e-06/0.8258, allocations: 0 / 414.7 MB, free: 58.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.906/3.731, allocations: 16.87 MB / 431.5 MB, free: 40.52 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