Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.73/1.73, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.716e-05/2.732e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2554, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.3787, allocations: 71.57 MB / 329.9 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.379, allocations: 67.97 kB / 330 MB, free: 6.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09899/0.478, allocations: 28.06 MB / 358 MB, free: 10.19 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4781, allocations: 3.938 kB / 358 MB, free: 10.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.4781, allocations: 4 kB / 358 MB, free: 10.18 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.0008532/0.479, allocations: 0.6737 MB / 358.7 MB, free: 9.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.479, allocations: 16.03 kB / 358.7 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.4792, allocations: 43.44 kB / 358.8 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000488/0.4797, allocations: 279.5 kB / 359 MB, free: 9.055 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.4797, allocations: 4 kB / 359 MB, free: 9.051 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.4798, allocations: 8 kB / 359 MB, free: 9.043 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002463/0.48, allocations: 79.91 kB / 359.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.4804, allocations: 153.6 kB / 359.3 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.4804, allocations: 0 / 359.3 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.4805, allocations: 4 kB / 359.3 MB, free: 8.805 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.4805, allocations: 0 / 359.3 MB, free: 8.805 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.4816, allocations: 489 kB / 359.8 MB, free: 8.289 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.4819, allocations: 114.5 kB / 359.9 MB, free: 8.168 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.4822, allocations: 100.9 kB / 360 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.098e-06/0.4822, allocations: 4 kB / 360 MB, free: 8.062 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004405/0.4826, allocations: 234.7 kB / 360.2 MB, free: 7.809 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.436e-06/0.4827, allocations: 0 / 360.2 MB, free: 7.809 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001012/0.4837, allocations: 360.9 kB / 360.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.4838, allocations: 191.9 kB / 360.7 MB, free: 7.219 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009805/0.4848, allocations: 488.9 kB / 361.2 MB, free: 6.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.829e-05/0.4849, allocations: 29.7 kB / 361.2 MB, free: 6.695 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.485, allocations: 175.9 kB / 361.4 MB, free: 6.523 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.257e-05/0.4851, allocations: 27.62 kB / 361.4 MB, free: 6.496 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.4852, allocations: 7.938 kB / 361.4 MB, free: 6.488 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.4853, allocations: 326.8 kB / 361.8 MB, free: 6.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.4855, allocations: 68.12 kB / 361.8 MB, free: 6.094 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.4857, allocations: 83.91 kB / 361.9 MB, free: 6.012 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.4859, allocations: 60.05 kB / 362 MB, free: 5.953 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4859, allocations: 4 kB / 362 MB, free: 5.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008323/0.4868, allocations: 313.4 kB / 362.3 MB, free: 5.637 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.4869, allocations: 152.5 kB / 362.4 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.487, allocations: 3.984 kB / 362.4 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.487, allocations: 0 / 362.4 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.96e-05/0.487, allocations: 8.172 kB / 362.4 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.487, allocations: 3.938 kB / 362.5 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.4873, allocations: 15.91 kB / 362.5 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/0.4875, allocations: 93.3 kB / 362.6 MB, free: 5.332 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.0002897/0.4878, allocations: 279.1 kB / 362.8 MB, free: 5.02 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009676/0.4888, allocations: 381.1 kB / 363.2 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.865e-05/0.4889, allocations: 47.47 kB / 363.2 MB, free: 4.594 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.4892, allocations: 71.73 kB / 363.3 MB, free: 4.523 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.4892, allocations: 4 kB / 363.3 MB, free: 4.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4892, allocations: 0 / 363.3 MB, free: 4.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.4892, allocations: 0 / 363.3 MB, free: 4.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.4907, allocations: 0.7446 MB / 364.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4908, allocations: 0 / 364.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.407e-05/0.4908, allocations: 0 / 364.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.4908, allocations: 4 kB / 364.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/0.4909, allocations: 23.98 kB / 364.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.4909, allocations: 0 / 364.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.4909, allocations: 0 / 364.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.492, allocations: 486.9 kB / 364.6 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005873/0.4926, allocations: 256.4 kB / 364.8 MB, free: 2.941 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.4927, allocations: 12 kB / 364.8 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.493, allocations: 15.98 kB / 364.8 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/0.4933, allocations: 59.92 kB / 364.9 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/0.4935, allocations: 101.2 kB / 365 MB, free: 2.758 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007862/0.4943, allocations: 402.6 kB / 365.4 MB, free: 2.367 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4943, allocations: 0 / 365.4 MB, free: 2.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005159/0.4948, 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.001477/0.4963, allocations: 1.028 MB / 366.5 MB, free: 1.258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007948/0.4971, allocations: 0.5087 MB / 367 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4972, allocations: 0 / 367 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005179/0.4977, allocations: 453 kB / 367.4 MB, free: 188 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.4989, allocations: 161.9 kB / 367.6 MB, free: 28 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2095/0.7084, allocations: 0.7322 MB / 368.3 MB, free: 91.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005579/0.7091, allocations: 0.8242 MB / 369.1 MB, free: 90.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.7092, allocations: 41.5 kB / 369.2 MB, free: 90.96 MB / 314.7 MB Notification: Performance of SimCode: time 1.403e-06/0.7092, allocations: 0 / 369.2 MB, free: 90.96 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.833/3.543, allocations: 4.987 MB / 374.2 MB, free: 90.49 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat