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.989/1.989, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.314e-05/2.322e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2969, allocations: 44.49 MB / 294.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.4339, allocations: 78.29 MB / 372.5 MB, free: 3.672 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.4342, allocations: 71.95 kB / 372.6 MB, free: 3.602 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4135/0.8478, allocations: 54.72 MB / 427.3 MB, free: 101.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.8478, allocations: 0 / 427.3 MB, free: 101.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.583e-05/0.8479, allocations: 18.38 kB / 427.3 MB, free: 101.5 MB / 362.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.001689/0.8496, allocations: 0.9712 MB / 428.3 MB, free: 101 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.8497, allocations: 8.938 kB / 428.3 MB, free: 101 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003068/0.85, allocations: 75.09 kB / 428.4 MB, free: 101 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.851, allocations: 467.1 kB / 428.8 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.416e-05/0.8511, allocations: 21.38 kB / 428.8 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/0.8513, allocations: 35.34 kB / 428.9 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001561/0.8529, allocations: 0.5801 MB / 429.4 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.8547, allocations: 0.7347 MB / 430.2 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.8548, allocations: 3.5 kB / 430.2 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/0.8549, allocations: 3.656 kB / 430.2 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.855, allocations: 13.38 kB / 430.2 MB, free: 100.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004251/0.8592, allocations: 1.569 MB / 431.8 MB, free: 100.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.8605, allocations: 0.5429 MB / 432.3 MB, free: 100.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005985/0.8611, allocations: 270.5 kB / 432.6 MB, free: 100.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002795/0.8614, allocations: 5.844 kB / 432.6 MB, free: 100.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.8624, allocations: 0.522 MB / 433.1 MB, free: 100.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.567e-06/0.8624, allocations: 0 / 433.1 MB, free: 100.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.002149/0.8646, allocations: 0.83 MB / 433.9 MB, free: 100.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/0.8647, allocations: 196.9 kB / 434.1 MB, free: 100 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005377/0.8653, allocations: 346.1 kB / 434.5 MB, free: 99.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.8654, allocations: 37.67 kB / 434.5 MB, free: 99.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.8656, allocations: 285.3 kB / 434.8 MB, free: 99.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/0.8658, allocations: 123.5 kB / 434.9 MB, free: 99.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.866, allocations: 3.438 kB / 434.9 MB, free: 99.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.8661, allocations: 338 kB / 435.2 MB, free: 99.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005826/0.8667, allocations: 276.7 kB / 435.5 MB, free: 99.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000623/0.8673, allocations: 335.9 kB / 435.8 MB, free: 99.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006641/0.868, allocations: 288.4 kB / 436.1 MB, free: 99.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.868, allocations: 3.875 kB / 436.1 MB, free: 99.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001926/0.8699, allocations: 0.8924 MB / 437 MB, free: 99.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.219e-05/0.87, allocations: 147 kB / 437.2 MB, free: 99.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.8701, allocations: 3.953 kB / 437.2 MB, free: 99.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.8701, allocations: 3.875 kB / 437.2 MB, free: 99.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.8704, allocations: 102.5 kB / 437.3 MB, free: 99.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.8705, allocations: 3.438 kB / 437.3 MB, free: 99.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000838/0.8713, allocations: 77.59 kB / 437.3 MB, free: 99.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006019/0.8719, allocations: 0.5631 MB / 437.9 MB, free: 99.01 MB / 362.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.0004328/0.8724, allocations: 323.5 kB / 438.2 MB, free: 98.73 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001809/0.8742, allocations: 0.816 MB / 439 MB, free: 98.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.8744, allocations: 48.48 kB / 439.1 MB, free: 98.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.8745, allocations: 52.8 kB / 439.1 MB, free: 98.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.8746, allocations: 7.938 kB / 439.1 MB, free: 98.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.8746, allocations: 0 / 439.1 MB, free: 98.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.8746, allocations: 0 / 439.1 MB, free: 98.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.8757, allocations: 0.57 MB / 439.7 MB, free: 98.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.8757, allocations: 0 / 439.7 MB, free: 98.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.876, allocations: 92.34 kB / 439.8 MB, free: 98.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.876, allocations: 0 / 439.8 MB, free: 98.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/0.8762, allocations: 96.64 kB / 439.9 MB, free: 98.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.8762, allocations: 3.938 kB / 439.9 MB, free: 98.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.8762, allocations: 3.844 kB / 439.9 MB, free: 98.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.878, allocations: 0.8541 MB / 440.8 MB, free: 98.35 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006095/0.8786, allocations: 254.5 kB / 441 MB, free: 98.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002978/0.879, allocations: 13.94 kB / 441 MB, free: 98.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.8796, allocations: 69.17 kB / 441.1 MB, free: 98.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004732/0.8801, allocations: 151.8 kB / 441.2 MB, free: 98.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005989/0.8807, allocations: 0.5558 MB / 441.8 MB, free: 98.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002908/0.881, allocations: 233.2 kB / 442 MB, free: 98.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.881, allocations: 0 / 442 MB, free: 98.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000875/0.8819, allocations: 123.2 kB / 442.1 MB, free: 98.11 MB / 362.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.002225/0.8841, allocations: 1.472 MB / 443.6 MB, free: 97.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.8858, allocations: 0.9625 MB / 444.6 MB, free: 97.13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.8858, allocations: 0.5625 kB / 444.6 MB, free: 97.13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008988/0.8867, allocations: 0.6548 MB / 445.2 MB, free: 96.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002947/0.8897, allocations: 477.2 kB / 445.7 MB, free: 96.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.8925, allocations: 1.005 MB / 446.7 MB, free: 96.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.8929, allocations: 0.8961 MB / 447.6 MB, free: 95.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003211/0.8962, allocations: 0.8204 MB / 448.4 MB, free: 95.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.342e-06/0.8962, allocations: 0 / 448.4 MB, free: 95.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.863/3.759, allocations: 16.82 MB / 465.2 MB, free: 81.39 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