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 1.917/1.917, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.428e-05/3.448e-05, allocations: 4 kB / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09434, allocations: 44.51 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4161/0.5105, allocations: 78.95 MB / 378.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5108, allocations: 71.91 kB / 379 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.172/0.6828, allocations: 55.14 MB / 434.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6829, allocations: 0 / 434.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.131e-05/0.6829, allocations: 16.75 kB / 434.1 MB, free: 14.94 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.002604/0.6856, allocations: 0.967 MB / 435.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.6856, allocations: 9.562 kB / 435.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004613/0.6861, allocations: 100.9 kB / 435.2 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003245/0.6864, allocations: 73.56 kB / 435.3 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.6878, allocations: 473.4 kB / 435.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.72e-05/0.688, allocations: 44.16 kB / 435.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/0.6883, allocations: 58.28 kB / 435.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/0.6909, allocations: 0.8141 MB / 436.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.6909, allocations: 0 / 436.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000182/0.6911, allocations: 24 kB / 436.7 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.6912, allocations: 16 kB / 436.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.6935, allocations: 0.6025 MB / 437.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005838/0.6994, allocations: 1.682 MB / 439 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/0.7013, allocations: 0.5607 MB / 439.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.7024, allocations: 286.4 kB / 439.8 MB, free: 9.727 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002429/0.7026, allocations: 4.562 kB / 439.8 MB, free: 9.723 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001492/0.7041, allocations: 0.5417 MB / 440.3 MB, free: 9.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 4.458e-06/0.7042, allocations: 0 / 440.3 MB, free: 9.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.002895/0.7071, allocations: 0.9871 MB / 441.3 MB, free: 8.145 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.7073, allocations: 200.1 kB / 441.5 MB, free: 7.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007957/0.7081, allocations: 359.2 kB / 441.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002969/0.7084, allocations: 49.69 kB / 441.9 MB, free: 7.488 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.7087, allocations: 279.4 kB / 442.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003602/0.7091, allocations: 130.2 kB / 442.3 MB, free: 7.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.7093, allocations: 20 kB / 442.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.7094, allocations: 330.8 kB / 442.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009427/0.7104, allocations: 285.5 kB / 442.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.7114, allocations: 365.7 kB / 443.3 MB, free: 6.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.7127, allocations: 452.2 kB / 443.7 MB, free: 5.613 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.628e-05/0.7127, allocations: 4 kB / 443.7 MB, free: 5.609 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00318/0.7159, allocations: 1.071 MB / 444.8 MB, free: 4.504 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.7161, allocations: 144.5 kB / 445 MB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.7161, allocations: 4 kB / 445 MB, free: 4.328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.7162, allocations: 4 kB / 445 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/0.7167, allocations: 103.8 kB / 445.1 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.7167, allocations: 7.984 kB / 445.1 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.7177, allocations: 83.7 kB / 445.2 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008988/0.7186, allocations: 0.5697 MB / 445.7 MB, free: 3.562 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.0006487/0.7193, allocations: 336.4 kB / 446.1 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002828/0.7196, allocations: 55.39 kB / 446.1 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002058/0.7198, allocations: 52.55 kB / 446.2 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.7198, allocations: 7.938 kB / 446.2 MB, free: 3.086 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.7199, allocations: 0 / 446.2 MB, free: 3.086 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.7199, allocations: 3.984 kB / 446.2 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.7216, allocations: 0.6522 MB / 446.8 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.7216, allocations: 3.938 kB / 446.8 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003076/0.7219, allocations: 95.88 kB / 446.9 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.405e-05/0.722, allocations: 3.953 kB / 446.9 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002538/0.7222, allocations: 91.95 kB / 447 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.7222, allocations: 0 / 447 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.7223, allocations: 0 / 447 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/0.7252, allocations: 1.025 MB / 448 MB, free: 1.129 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00091/0.7261, allocations: 260.5 kB / 448.3 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003455/0.7265, allocations: 23.95 kB / 448.3 MB, free: 0.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008386/0.7273, allocations: 71.8 kB / 448.4 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005749/0.7279, allocations: 152.4 kB / 448.5 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008595/0.7288, allocations: 0.5541 MB / 449.1 MB, free: 60 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005285/0.7294, allocations: 250.1 kB / 449.3 MB, free: 15.81 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7294, allocations: 3.938 kB / 449.3 MB, free: 15.81 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001159/0.7306, allocations: 144 kB / 449.5 MB, free: 15.67 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.00354/0.7341, allocations: 1.649 MB / 451.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002707/0.7369, allocations: 0.9935 MB / 452.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.7369, allocations: 0.5625 kB / 452.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.7385, allocations: 0.6641 MB / 452.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/0.7421, allocations: 484.2 kB / 453.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004134/0.7463, allocations: 1.05 MB / 454.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007306/0.7471, allocations: 0.9025 MB / 455.2 MB, free: 9.684 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00379/0.7509, allocations: 0.8063 MB / 456 MB, free: 8.875 MB / 346.7 MB Notification: Performance of SimCode: time 2.124e-06/0.7509, allocations: 0 / 456 MB, free: 8.875 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.606, allocations: 16.87 MB / 472.9 MB, free: 7.277 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