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.609/1.609, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.138e-05/4.153e-05, allocations: 8 kB / 225.1 MB, free: 2.137 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2491, allocations: 38.77 MB / 263.8 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.3773, allocations: 73.68 MB / 337.5 MB, free: 16 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.3777, allocations: 72.05 kB / 337.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4106/0.7883, allocations: 55.15 MB / 392.8 MB, free: 80.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.7884, allocations: 0 / 392.8 MB, free: 80.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.509e-05/0.7884, allocations: 19.56 kB / 392.8 MB, free: 80.7 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.002327/0.7908, allocations: 0.9839 MB / 393.8 MB, free: 79.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.7909, allocations: 8.031 kB / 393.8 MB, free: 79.7 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000336/0.7912, allocations: 98.52 kB / 393.9 MB, free: 79.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003918/0.7916, allocations: 75.16 kB / 393.9 MB, free: 79.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.7931, allocations: 462.5 kB / 394.4 MB, free: 79.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-05/0.7932, allocations: 44.58 kB / 394.4 MB, free: 79.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003398/0.7935, allocations: 56 kB / 394.5 MB, free: 78.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002606/0.7961, allocations: 0.8181 MB / 395.3 MB, free: 78.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.7962, allocations: 0 / 395.3 MB, free: 78.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002277/0.7964, allocations: 28 kB / 395.3 MB, free: 78.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.7965, allocations: 12 kB / 395.3 MB, free: 78.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/0.7987, allocations: 0.6064 MB / 395.9 MB, free: 77.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01395/0.8126, allocations: 1.669 MB / 397.6 MB, free: 75.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.8146, allocations: 0.5676 MB / 398.2 MB, free: 75.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.8156, allocations: 290.4 kB / 398.5 MB, free: 74.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002831/0.8159, allocations: 8.516 kB / 398.5 MB, free: 74.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001472/0.8174, allocations: 0.5378 MB / 399 MB, free: 74.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 4.618e-06/0.8175, allocations: 0 / 399 MB, free: 74.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.006075/0.8235, allocations: 0.9793 MB / 400 MB, free: 73.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/0.8237, allocations: 203.8 kB / 400.2 MB, free: 73.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007223/0.8244, allocations: 355.1 kB / 400.5 MB, free: 72.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002106/0.8246, allocations: 57.69 kB / 400.6 MB, free: 72.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.8249, allocations: 236 kB / 400.8 MB, free: 72.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003031/0.8252, allocations: 129.5 kB / 400.9 MB, free: 72.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.8254, allocations: 12 kB / 401 MB, free: 72.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.8255, allocations: 358.8 kB / 401.3 MB, free: 72.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.8266, allocations: 285.3 kB / 401.6 MB, free: 71.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.8278, allocations: 365.7 kB / 401.9 MB, free: 71.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.829, allocations: 444.3 kB / 402.4 MB, free: 70.9 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.829, allocations: 4 kB / 402.4 MB, free: 70.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003431/0.8325, allocations: 1.098 MB / 403.5 MB, free: 69.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.8326, allocations: 144.5 kB / 403.6 MB, free: 69.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.8326, allocations: 8 kB / 403.6 MB, free: 69.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.763e-05/0.8327, allocations: 8.062 kB / 403.6 MB, free: 69.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.8331, allocations: 103.6 kB / 403.7 MB, free: 69.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.8332, allocations: 7.938 kB / 403.7 MB, free: 69.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.8344, allocations: 87.59 kB / 403.8 MB, free: 69.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008784/0.8353, allocations: 0.561 MB / 404.4 MB, free: 68.84 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.0006044/0.8359, allocations: 333.1 kB / 404.7 MB, free: 68.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.8362, allocations: 51.44 kB / 404.8 MB, free: 68.44 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.8364, allocations: 60.48 kB / 404.8 MB, free: 68.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.8364, allocations: 4 kB / 404.8 MB, free: 68.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.8364, allocations: 0 / 404.8 MB, free: 68.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.8364, allocations: 8 kB / 404.8 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.8381, allocations: 0.6515 MB / 405.5 MB, free: 67.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.8381, allocations: 4 kB / 405.5 MB, free: 67.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.8384, allocations: 87.8 kB / 405.6 MB, free: 67.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.8385, allocations: 4 kB / 405.6 MB, free: 67.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002481/0.8387, allocations: 91.94 kB / 405.7 MB, free: 67.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.8388, allocations: 7.797 kB / 405.7 MB, free: 67.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8388, allocations: 4 kB / 405.7 MB, free: 67.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/0.8419, allocations: 1.024 MB / 406.7 MB, free: 66.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008311/0.8427, allocations: 252.5 kB / 407 MB, free: 66.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000339/0.8431, allocations: 24 kB / 407 MB, free: 66.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000883/0.844, allocations: 63.7 kB / 407 MB, free: 66.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005793/0.8446, allocations: 156.4 kB / 407.2 MB, free: 65.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00084/0.8454, allocations: 0.5657 MB / 407.8 MB, free: 65.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004547/0.8459, allocations: 250.1 kB / 408 MB, free: 65.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8459, allocations: 0 / 408 MB, free: 65.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001184/0.8471, allocations: 144 kB / 408.1 MB, free: 64.96 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.002988/0.8501, allocations: 1.637 MB / 409.8 MB, free: 63.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.8521, allocations: 0.9932 MB / 410.8 MB, free: 62.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8521, allocations: 0 / 410.8 MB, free: 62.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.8532, allocations: 0.6676 MB / 411.4 MB, free: 61.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003214/0.8564, allocations: 491.7 kB / 411.9 MB, free: 61.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/0.8595, allocations: 0.99 MB / 412.9 MB, free: 60.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.86, allocations: 0.8986 MB / 413.8 MB, free: 59.09 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.003292/0.8633, allocations: 1.5 MB / 415.3 MB, free: 57.58 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002259/0.8656, allocations: 0.6076 MB / 415.9 MB, free: 56.97 MB / 314.7 MB Notification: Performance of SimCode: time 1.513e-06/0.8656, allocations: 0 / 415.9 MB, free: 56.97 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05354/0.9191, allocations: 21.91 MB / 437.8 MB, free: 34.72 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002258/0.9194, allocations: 150.3 kB / 438 MB, free: 34.5 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.939/3.858, allocations: 0 / 438 MB, free: 34.5 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