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.656/1.656, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.413e-05/3.43e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2522, allocations: 38.76 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.376, allocations: 72.24 MB / 336.1 MB, free: 1.406 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.3763, allocations: 71.89 kB / 336.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1015/0.4779, allocations: 28.26 MB / 364.4 MB, free: 5.125 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4779, allocations: 0 / 364.4 MB, free: 5.125 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.763e-05/0.478, allocations: 4 kB / 364.4 MB, free: 5.121 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.0008104/0.4788, allocations: 0.6776 MB / 365.1 MB, free: 4.367 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.4788, allocations: 16.03 kB / 365.1 MB, free: 4.352 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.985e-05/0.4789, allocations: 42.55 kB / 365.1 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.4791, allocations: 43.44 kB / 365.2 MB, free: 4.258 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.4795, allocations: 273.3 kB / 365.4 MB, free: 3.949 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.4796, allocations: 4 kB / 365.4 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.558e-05/0.4796, allocations: 16 kB / 365.5 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004638/0.4801, allocations: 161.6 kB / 365.6 MB, free: 3.766 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.4801, allocations: 0 / 365.6 MB, free: 3.766 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.4802, allocations: 4 kB / 365.6 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.4802, allocations: 4 kB / 365.6 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.4805, allocations: 83.97 kB / 365.7 MB, free: 3.676 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.4816, allocations: 0.4965 MB / 366.2 MB, free: 3.129 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000307/0.482, allocations: 120.4 kB / 366.3 MB, free: 3.004 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.4822, allocations: 112.9 kB / 366.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.4823, allocations: 0 / 366.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004622/0.4827, allocations: 242.7 kB / 366.7 MB, free: 2.629 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.234e-06/0.4828, allocations: 4 kB / 366.7 MB, free: 2.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001173/0.4839, allocations: 0.5015 MB / 367.2 MB, free: 2.086 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.4841, allocations: 199.8 kB / 367.4 MB, free: 1.848 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.4852, allocations: 498.8 kB / 367.9 MB, free: 1.355 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.742e-05/0.4853, allocations: 37.7 kB / 367.9 MB, free: 1.312 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.4854, allocations: 171.6 kB / 368.1 MB, free: 1.145 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.757e-05/0.4855, allocations: 35.73 kB / 368.1 MB, free: 1.109 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.4856, allocations: 4 kB / 368.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4857, allocations: 314.8 kB / 368.4 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.4859, allocations: 87.91 kB / 368.5 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002236/0.4862, allocations: 75.98 kB / 368.6 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.4865, allocations: 216.5 kB / 368.8 MB, free: 396 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4865, allocations: 4 kB / 368.8 MB, free: 392 kB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.2147/0.7012, allocations: 467.1 kB / 369.2 MB, free: 89.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.7014, allocations: 151.2 kB / 369.4 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.7014, allocations: 1.516 kB / 369.4 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.7015, allocations: 1 kB / 369.4 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.811e-05/0.7015, allocations: 1.109 kB / 369.4 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.7015, allocations: 2 kB / 369.4 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.7018, allocations: 22.92 kB / 369.4 MB, free: 89.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/0.7021, allocations: 94.81 kB / 369.5 MB, free: 89.64 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.0002758/0.7024, allocations: 274.2 kB / 369.8 MB, free: 89.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.7025, allocations: 44.34 kB / 369.8 MB, free: 89.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.7028, allocations: 70.86 kB / 369.9 MB, free: 89.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.7028, allocations: 1.391 kB / 369.9 MB, free: 89.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.7028, allocations: 4.625 kB / 369.9 MB, free: 89.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.7028, allocations: 3.875 kB / 369.9 MB, free: 89.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.7047, allocations: 0.9282 MB / 370.8 MB, free: 88.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.7047, allocations: 4.219 kB / 370.8 MB, free: 88.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.705e-05/0.7048, allocations: 2.078 kB / 370.8 MB, free: 88.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.7048, allocations: 0.5 kB / 370.8 MB, free: 88.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.267e-05/0.7049, allocations: 25.14 kB / 370.9 MB, free: 88.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.7049, allocations: 0.5625 kB / 370.9 MB, free: 88.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7049, allocations: 5.234 kB / 370.9 MB, free: 88.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.7061, allocations: 0.6337 MB / 371.5 MB, free: 88.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005543/0.7067, allocations: 259.9 kB / 371.8 MB, free: 88.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.7069, allocations: 11.27 kB / 371.8 MB, free: 88.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/0.7072, allocations: 16.19 kB / 371.8 MB, free: 88.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.7074, allocations: 54.16 kB / 371.8 MB, free: 88.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.7075, allocations: 102.2 kB / 371.9 MB, free: 88.43 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007548/0.7083, allocations: 416.3 kB / 372.3 MB, free: 88.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.183e-06/0.7083, allocations: 0 / 372.3 MB, free: 88.29 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004733/0.7088, allocations: 55.8 kB / 372.4 MB, free: 88.29 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.001291/0.7101, allocations: 1.186 MB / 373.6 MB, free: 87.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007173/0.7109, allocations: 0.5323 MB / 374.1 MB, free: 87.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.7109, allocations: 0 / 374.1 MB, free: 87.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.7113, allocations: 458.3 kB / 374.6 MB, free: 86.83 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.7125, allocations: 159 kB / 374.7 MB, free: 86.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.7144, allocations: 0.7398 MB / 375.5 MB, free: 86.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/0.7148, allocations: 0.8353 MB / 376.3 MB, free: 85.79 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.311e-05/0.7149, allocations: 44.86 kB / 376.3 MB, free: 85.79 MB / 314.7 MB Notification: Performance of SimCode: time 1.322e-06/0.7149, allocations: 0 / 376.3 MB, free: 85.79 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.655/3.37, allocations: 4.988 MB / 381.3 MB, free: 85.29 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