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.69/1.69, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.327e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2544, allocations: 38.77 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.381, allocations: 72.25 MB / 336.1 MB, free: 1.422 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.3813, allocations: 71.95 kB / 336.2 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1059/0.4873, allocations: 28.26 MB / 364.4 MB, free: 5.145 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4873, allocations: 0 / 364.4 MB, free: 5.145 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.4873, allocations: 4 kB / 364.4 MB, free: 5.141 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.0008396/0.4882, allocations: 0.6737 MB / 365.1 MB, free: 4.391 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.4882, allocations: 11.97 kB / 365.1 MB, free: 4.379 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.533e-05/0.4883, allocations: 42.56 kB / 365.2 MB, free: 4.328 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.4884, allocations: 51.42 kB / 365.2 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.4889, allocations: 273.3 kB / 365.5 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.4889, allocations: 4 kB / 365.5 MB, free: 3.965 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.489, allocations: 12 kB / 365.5 MB, free: 3.953 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.4895, allocations: 165.6 kB / 365.6 MB, free: 3.785 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.4895, allocations: 0 / 365.6 MB, free: 3.785 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.4895, allocations: 4 kB / 365.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.4895, allocations: 0 / 365.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.4898, allocations: 83.91 kB / 365.7 MB, free: 3.699 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.4909, allocations: 0.5005 MB / 366.2 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.4912, allocations: 120.4 kB / 366.4 MB, free: 3.023 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.4915, allocations: 112.9 kB / 366.5 MB, free: 2.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/0.4915, allocations: 0 / 366.5 MB, free: 2.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004812/0.492, allocations: 250.7 kB / 366.7 MB, free: 2.641 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.492, allocations: 0 / 366.7 MB, free: 2.641 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001226/0.4932, allocations: 0.4976 MB / 367.2 MB, free: 2.105 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.4934, allocations: 195.9 kB / 367.4 MB, free: 1.871 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.4945, allocations: 0.4949 MB / 367.9 MB, free: 1.371 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/0.4945, allocations: 33.7 kB / 367.9 MB, free: 1.332 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.4947, allocations: 171.6 kB / 368.1 MB, free: 1.164 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.337e-05/0.4947, allocations: 39.73 kB / 368.1 MB, free: 1.125 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.4948, allocations: 4 kB / 368.1 MB, free: 1.121 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.495, allocations: 314.8 kB / 368.4 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.4952, allocations: 83.91 kB / 368.5 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.4954, allocations: 79.98 kB / 368.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.4958, allocations: 212.5 kB / 368.8 MB, free: 416 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4958, allocations: 3.938 kB / 368.8 MB, free: 412 kB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.2115/0.7073, allocations: 465.5 kB / 369.3 MB, free: 89.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/0.7074, allocations: 151.8 kB / 369.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.7075, allocations: 3.938 kB / 369.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.7075, allocations: 1.594 kB / 369.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-05/0.7075, allocations: 1.797 kB / 369.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.7075, allocations: 0.7188 kB / 369.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.7079, allocations: 22.72 kB / 369.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002341/0.7081, allocations: 95.25 kB / 369.5 MB, free: 89.61 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.0002303/0.7084, allocations: 273.6 kB / 369.8 MB, free: 89.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.7085, allocations: 42.84 kB / 369.8 MB, free: 89.35 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.7087, allocations: 68.52 kB / 369.9 MB, free: 89.33 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.7087, allocations: 7.266 kB / 369.9 MB, free: 89.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.7088, allocations: 5.875 kB / 369.9 MB, free: 89.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.7088, allocations: 0.7031 kB / 369.9 MB, free: 89.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/0.7106, allocations: 0.9225 MB / 370.9 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.7106, allocations: 0 / 370.9 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.299e-05/0.7106, allocations: 1.453 kB / 370.9 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.7106, allocations: 4.312 kB / 370.9 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.808e-05/0.7107, allocations: 24.3 kB / 370.9 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.7107, allocations: 0.5312 kB / 370.9 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.7108, allocations: 1.328 kB / 370.9 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.712, allocations: 0.63 MB / 371.5 MB, free: 88.54 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005414/0.7125, allocations: 253.6 kB / 371.8 MB, free: 88.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.7126, allocations: 17.94 kB / 371.8 MB, free: 88.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.713, allocations: 17.73 kB / 371.8 MB, free: 88.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.7132, allocations: 58.23 kB / 371.9 MB, free: 88.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.7133, allocations: 101.2 kB / 372 MB, free: 88.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007129/0.7141, allocations: 425.1 kB / 372.4 MB, free: 88.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7141, allocations: 0 / 372.4 MB, free: 88.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000477/0.7146, allocations: 46.75 kB / 372.4 MB, free: 88.25 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.001241/0.7158, allocations: 1.19 MB / 373.6 MB, free: 87.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007043/0.7165, allocations: 0.5244 MB / 374.1 MB, free: 87.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.7166, allocations: 0 / 374.1 MB, free: 87.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004197/0.717, allocations: 461.9 kB / 374.6 MB, free: 86.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.7181, allocations: 160.5 kB / 374.7 MB, free: 86.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.7199, allocations: 0.7405 MB / 375.5 MB, free: 86.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.7203, allocations: 0.8348 MB / 376.3 MB, free: 85.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.974e-05/0.7204, allocations: 38.41 kB / 376.3 MB, free: 85.75 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.7204, allocations: 0 / 376.3 MB, free: 85.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.579/3.299, allocations: 5.003 MB / 381.3 MB, free: 85.25 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