Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.Multiplexer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_Multiplexer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 225.8 MB / 239.3 MB, free: 1.281 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.398e-05/3.435e-05, allocations: 4 kB / 292.7 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 50.4 MB / 343.1 MB, free: 9.016 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4723/0.5841, allocations: 84.07 MB / 427.2 MB, free: 8.273 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.5844, allocations: 74.19 kB / 427.3 MB, free: 8.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1799/0.7643, allocations: 55.85 MB / 483.1 MB, free: 5.941 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7644, allocations: 3.938 kB / 483.1 MB, free: 5.938 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.134e-05/0.7644, allocations: 16 kB / 483.2 MB, free: 5.922 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001941/0.7664, allocations: 0.9737 MB / 484.1 MB, free: 4.871 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.7664, allocations: 8.031 kB / 484.1 MB, free: 4.863 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000261/0.7667, allocations: 98.52 kB / 484.2 MB, free: 4.758 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.767, allocations: 79.16 kB / 484.3 MB, free: 4.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.7682, allocations: 461 kB / 484.8 MB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.902e-05/0.7682, allocations: 49.31 kB / 484.8 MB, free: 4.137 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/0.7685, allocations: 60 kB / 484.9 MB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002202/0.7707, allocations: 0.808 MB / 485.7 MB, free: 3.262 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.7708, allocations: 7.891 kB / 485.7 MB, free: 3.254 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001757/0.771, allocations: 24 kB / 485.7 MB, free: 3.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.771, allocations: 20 kB / 485.7 MB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.7729, allocations: 0.6038 MB / 486.3 MB, free: 2.605 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004833/0.7777, allocations: 1.69 MB / 488 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.7794, allocations: 0.5626 MB / 488.6 MB, free: 292 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008345/0.7802, allocations: 282.5 kB / 488.9 MB, free: 8 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002575/0.7805, allocations: 12.61 kB / 488.9 MB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.7818, allocations: 0.5405 MB / 489.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.777e-06/0.7818, allocations: 0 / 489.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.002675/0.7845, allocations: 0.9987 MB / 490.4 MB, free: 14.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.7847, allocations: 196.5 kB / 490.6 MB, free: 14.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006821/0.7854, allocations: 371 kB / 491 MB, free: 13.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001629/0.7855, allocations: 45.7 kB / 491 MB, free: 13.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.7858, allocations: 232.9 kB / 491.2 MB, free: 13.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/0.7861, allocations: 130.5 kB / 491.4 MB, free: 13.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.7862, allocations: 16 kB / 491.4 MB, free: 13.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.7864, allocations: 358.8 kB / 491.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008681/0.7873, allocations: 289.5 kB / 492 MB, free: 12.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000951/0.7882, allocations: 364.1 kB / 492.4 MB, free: 12.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.7893, allocations: 456.7 kB / 492.8 MB, free: 11.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.7893, allocations: 0 / 492.8 MB, free: 11.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002803/0.7921, allocations: 1.102 MB / 493.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.7923, allocations: 140.5 kB / 494 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.7923, allocations: 4 kB / 494.1 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.7923, allocations: 4 kB / 494.1 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004007/0.7927, allocations: 107.8 kB / 494.2 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.7928, allocations: 12.09 kB / 494.2 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008502/0.7936, allocations: 83.62 kB / 494.3 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007888/0.7944, allocations: 0.5736 MB / 494.8 MB, free: 9.793 MB / 378.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 (78): * Single equations (assignments): 73 * 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.0005099/0.795, allocations: 329.3 kB / 495.2 MB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.7952, allocations: 51.44 kB / 495.2 MB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/0.7953, allocations: 60.75 kB / 495.3 MB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.7954, allocations: 4 kB / 495.3 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.7954, allocations: 0 / 495.3 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.7954, allocations: 3.984 kB / 495.3 MB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.7968, allocations: 0.6618 MB / 495.9 MB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.7968, allocations: 0 / 495.9 MB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000288/0.7971, allocations: 95.83 kB / 496 MB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.779e-06/0.7972, allocations: 4 kB / 496 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/0.7974, allocations: 91.94 kB / 496.1 MB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.7974, allocations: 0 / 496.1 MB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7974, allocations: 8 kB / 496.1 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002534/0.8, allocations: 1.036 MB / 497.2 MB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006366/0.8006, allocations: 256.5 kB / 497.4 MB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002594/0.8009, allocations: 24 kB / 497.4 MB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006305/0.8015, allocations: 63.8 kB / 497.5 MB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004911/0.802, allocations: 164.4 kB / 497.7 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007806/0.8028, allocations: 0.5541 MB / 498.2 MB, free: 6.254 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003888/0.8032, allocations: 250.1 kB / 498.5 MB, free: 6.012 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8032, allocations: 0 / 498.5 MB, free: 6.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008747/0.8041, allocations: 144 kB / 498.6 MB, free: 5.871 MB / 378.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 (58): * Single equations (assignments): 52 * 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.003116/0.8073, allocations: 1.653 MB / 0.4885 GB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.8095, allocations: 0.9961 MB / 0.4895 GB, free: 3.102 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.8096, allocations: 4.062 kB / 0.4895 GB, free: 3.098 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.8108, allocations: 0.6709 MB / 0.4902 GB, free: 2.367 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003162/0.814, allocations: 480 kB / 0.4906 GB, free: 1.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003051/0.8171, allocations: 1.004 MB / 0.4916 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006533/0.8177, allocations: 0.9026 MB / 0.4925 GB, free: 15.94 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00433/0.8221, allocations: 1.504 MB / 0.4939 GB, free: 14.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002581/0.8247, allocations: 0.6115 MB / 0.4945 GB, free: 13.81 MB / 394.7 MB Notification: Performance of SimCode: time 1.533e-06/0.8247, allocations: 0 / 0.4945 GB, free: 13.81 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06172/0.8865, allocations: 21.98 MB / 0.516 GB, free: 7.559 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000262/0.8868, allocations: 157.5 kB / 0.5162 GB, free: 7.328 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.018/3.904, allocations: 3.938 kB / 0.5162 GB, free: 7.324 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat does not exist to compare? outputFormat=mat