Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 171.3 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.813e-05/2.822e-05, allocations: 4 kB / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2633, allocations: 38.76 MB / 258.3 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.3914, allocations: 71.57 MB / 329.9 MB, free: 6.211 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.3918, allocations: 67.97 kB / 330 MB, free: 6.145 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1006/0.4924, allocations: 28.07 MB / 358 MB, free: 10.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.539e-06/0.4925, allocations: 4 kB / 358.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.4925, allocations: 4 kB / 358.1 MB, free: 10.14 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009207/0.4934, allocations: 0.6737 MB / 358.7 MB, free: 9.391 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.4935, allocations: 11.97 kB / 358.7 MB, free: 9.379 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.4936, allocations: 51.44 kB / 358.8 MB, free: 9.328 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005484/0.4942, allocations: 271.5 kB / 359.1 MB, free: 9.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.241e-05/0.4943, allocations: 4 kB / 359.1 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.4943, allocations: 12 kB / 359.1 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002622/0.4946, allocations: 79.97 kB / 359.2 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004051/0.495, allocations: 157.5 kB / 359.3 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.4951, allocations: 0 / 359.3 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.511e-05/0.4951, allocations: 4 kB / 359.3 MB, free: 8.762 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.4951, allocations: 0 / 359.3 MB, free: 8.762 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.4964, allocations: 473.1 kB / 359.8 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.4967, allocations: 122.5 kB / 359.9 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.497, allocations: 96.89 kB / 360 MB, free: 8.035 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.497, allocations: 7.984 kB / 360 MB, free: 8.027 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004474/0.4975, allocations: 234.7 kB / 360.2 MB, free: 7.773 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.216e-06/0.4975, allocations: 0 / 360.2 MB, free: 7.773 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001064/0.4986, allocations: 368.9 kB / 360.6 MB, free: 7.406 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.4987, allocations: 187.9 kB / 360.8 MB, free: 7.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.4998, allocations: 488.9 kB / 361.2 MB, free: 6.691 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.4998, allocations: 29.7 kB / 361.3 MB, free: 6.656 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.4999, allocations: 113.4 kB / 361.4 MB, free: 6.543 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.923e-05/0.5, allocations: 35.77 kB / 361.4 MB, free: 6.508 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.558e-05/0.5001, allocations: 7.984 kB / 361.4 MB, free: 6.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.5003, allocations: 330.8 kB / 361.7 MB, free: 6.168 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.5005, allocations: 71.92 kB / 361.8 MB, free: 6.098 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.5007, allocations: 83.91 kB / 361.9 MB, free: 6.016 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.5009, allocations: 64.05 kB / 362 MB, free: 5.953 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5009, allocations: 3.938 kB / 362 MB, free: 5.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008393/0.5017, allocations: 329.2 kB / 362.3 MB, free: 5.621 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.5019, allocations: 148.5 kB / 362.4 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.5019, allocations: 7.984 kB / 362.4 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.5019, allocations: 0 / 362.4 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.557e-05/0.502, allocations: 176 / 362.4 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.502, allocations: 7.938 kB / 362.4 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.5023, allocations: 12 kB / 362.5 MB, free: 5.418 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/0.5025, allocations: 93.3 kB / 362.6 MB, free: 5.324 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * 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.000278/0.5028, allocations: 279.1 kB / 362.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009271/0.5037, allocations: 377 kB / 363.2 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.873e-05/0.5038, allocations: 47.53 kB / 363.2 MB, free: 4.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/0.504, allocations: 75.73 kB / 363.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.5041, allocations: 0 / 363.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.5041, allocations: 0 / 363.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.5041, allocations: 0 / 363.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.5055, allocations: 0.7408 MB / 364.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.5055, allocations: 0 / 364.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-05/0.5056, allocations: 3.938 kB / 364.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.5056, allocations: 0 / 364.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.089e-05/0.5056, allocations: 23.98 kB / 364.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.5057, allocations: 4 kB / 364.1 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5057, allocations: 0 / 364.1 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009908/0.5067, allocations: 478.9 kB / 364.6 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005438/0.5072, allocations: 260.3 kB / 364.8 MB, free: 2.941 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.5074, allocations: 12 kB / 364.8 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.5077, allocations: 15.98 kB / 364.8 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.5079, allocations: 59.92 kB / 364.9 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001668/0.5081, allocations: 101.2 kB / 365 MB, free: 2.758 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007301/0.5088, allocations: 402.6 kB / 365.4 MB, free: 2.367 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5089, allocations: 0 / 365.4 MB, free: 2.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004839/0.5093, allocations: 51.95 kB / 365.4 MB, free: 2.316 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.001394/0.5108, allocations: 1.028 MB / 366.5 MB, free: 1.258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007641/0.5115, allocations: 0.5126 MB / 367 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5116, allocations: 0 / 367 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.5121, allocations: 452.9 kB / 367.4 MB, free: 184 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.5132, allocations: 154 kB / 367.6 MB, free: 32 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2103/0.7235, allocations: 0.6804 MB / 368.3 MB, free: 92.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005521/0.7241, allocations: 0.8278 MB / 369.1 MB, free: 91.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.7243, allocations: 12.61 kB / 369.1 MB, free: 91.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.277e-05/0.7244, allocations: 42.22 kB / 369.1 MB, free: 91.4 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7244, allocations: 0 / 369.1 MB, free: 91.4 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04721/0.7716, allocations: 7.784 MB / 376.9 MB, free: 90.7 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.7719, allocations: 133 kB / 377 MB, free: 90.5 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/3.168, allocations: 0 / 377 MB, free: 90.5 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat