Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.015/2.015, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.018e-05/3.031e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09696/0.09702, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4366/0.5337, allocations: 78.96 MB / 378.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.534, allocations: 71.06 kB / 379 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1664/0.7005, allocations: 55.14 MB / 434.1 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.791e-06/0.7005, allocations: 0 / 434.1 MB, free: 15.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.736e-05/0.7006, allocations: 20.69 kB / 434.1 MB, free: 15.03 MB / 330.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.00234/0.703, allocations: 0.9631 MB / 435.1 MB, free: 14.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.703, allocations: 11.59 kB / 435.1 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003734/0.7034, allocations: 101 kB / 435.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003099/0.7037, allocations: 73.81 kB / 435.3 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.7049, allocations: 471.7 kB / 435.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.714e-05/0.705, allocations: 47.12 kB / 435.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.7053, allocations: 54.53 kB / 435.8 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/0.7076, allocations: 0.8009 MB / 436.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.7077, allocations: 0 / 436.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000182/0.7079, allocations: 27.98 kB / 436.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.655e-05/0.708, allocations: 12 kB / 436.7 MB, free: 13 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002029/0.71, allocations: 0.6038 MB / 437.3 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005331/0.7154, allocations: 1.681 MB / 439 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.7171, allocations: 0.5594 MB / 439.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009058/0.7181, allocations: 286.4 kB / 439.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/0.7183, allocations: 4.562 kB / 439.8 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001356/0.7197, allocations: 0.5406 MB / 440.4 MB, free: 9.277 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 5.511e-06/0.7197, allocations: 0 / 440.4 MB, free: 9.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.002799/0.7225, allocations: 0.987 MB / 441.3 MB, free: 8.254 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.7227, allocations: 196.5 kB / 441.5 MB, free: 8.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007551/0.7235, allocations: 359.2 kB / 441.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000232/0.7237, allocations: 49.69 kB / 441.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.724, allocations: 283.3 kB / 442.2 MB, free: 7.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000291/0.7243, allocations: 126.2 kB / 442.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.7245, allocations: 12 kB / 442.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.7246, allocations: 342.8 kB / 442.7 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008989/0.7255, allocations: 281.5 kB / 443 MB, free: 6.57 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009435/0.7265, allocations: 356.1 kB / 443.3 MB, free: 6.203 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.7276, allocations: 459.9 kB / 443.8 MB, free: 5.727 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.7276, allocations: 0 / 443.8 MB, free: 5.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002976/0.7306, allocations: 1.068 MB / 444.8 MB, free: 4.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/0.7308, allocations: 148.5 kB / 445 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.7308, allocations: 0 / 445 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.7309, allocations: 7.938 kB / 445 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/0.7312, allocations: 103.8 kB / 445.1 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/0.7313, allocations: 4 kB / 445.1 MB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009342/0.7322, allocations: 95.69 kB / 445.2 MB, free: 4.238 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008445/0.7331, allocations: 0.5658 MB / 445.7 MB, free: 3.672 MB / 330.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.0006046/0.7337, allocations: 336.2 kB / 446.1 MB, free: 3.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.734, allocations: 51.39 kB / 446.1 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001843/0.7342, allocations: 52.55 kB / 446.2 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.7342, allocations: 8 kB / 446.2 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.7342, allocations: 0 / 446.2 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.7342, allocations: 3.984 kB / 446.2 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.7358, allocations: 0.6493 MB / 446.8 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.7358, allocations: 0 / 446.8 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000262/0.7361, allocations: 87.88 kB / 446.9 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.579e-05/0.7361, allocations: 7.953 kB / 446.9 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002229/0.7364, allocations: 91.95 kB / 447 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.038e-05/0.7364, allocations: 4 kB / 447 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7364, allocations: 3.938 kB / 447 MB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.7391, allocations: 1.025 MB / 448 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007698/0.7399, allocations: 256.5 kB / 448.3 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002868/0.7402, allocations: 23.95 kB / 448.3 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006963/0.7409, allocations: 71.8 kB / 448.4 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005006/0.7414, allocations: 148.4 kB / 448.5 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008457/0.7423, allocations: 0.5619 MB / 449.1 MB, free: 176 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005002/0.7428, allocations: 250.1 kB / 449.3 MB, free: 15.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7428, allocations: 0 / 449.3 MB, free: 15.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001085/0.7439, allocations: 144 kB / 449.5 MB, free: 15.79 MB / 346.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.003345/0.7473, allocations: 1.641 MB / 451.1 MB, free: 14.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.7498, allocations: 0.9922 MB / 452.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.7499, allocations: 0.5625 kB / 452.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.7513, allocations: 0.6628 MB / 452.8 MB, free: 12.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003521/0.7549, allocations: 483.4 kB / 453.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003799/0.7587, allocations: 1.045 MB / 454.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000688/0.7595, allocations: 0.9064 MB / 455.2 MB, free: 9.824 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003725/0.7632, allocations: 0.8141 MB / 456 MB, free: 9.008 MB / 346.7 MB Notification: Performance of SimCode: time 1.754e-06/0.7633, allocations: 0 / 456 MB, free: 9.008 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.665/3.429, allocations: 16.82 MB / 472.8 MB, free: 7.453 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat