Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.402e-05/3.411e-05, allocations: 4 kB / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09852, allocations: 44.52 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4252/0.5238, allocations: 77.55 MB / 377.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.5241, allocations: 70.92 kB / 377.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08692/0.6111, allocations: 27.78 MB / 405.3 MB, free: 9.105 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6111, allocations: 3.938 kB / 405.3 MB, free: 9.102 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.6112, allocations: 3.812 kB / 405.3 MB, free: 9.102 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.0006452/0.6118, allocations: 0.6847 MB / 406 MB, free: 8.441 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.6119, allocations: 11.59 kB / 406 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.513e-05/0.612, allocations: 42 kB / 406.1 MB, free: 8.398 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.159e-05/0.6121, allocations: 42.48 kB / 406.1 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.6124, allocations: 270.1 kB / 406.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.6125, allocations: 11.66 kB / 406.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/0.6125, allocations: 7.656 kB / 406.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.6129, allocations: 168.4 kB / 406.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.613, allocations: 0 / 406.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.613, allocations: 3.875 kB / 406.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.613, allocations: 0 / 406.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.6133, allocations: 88.89 kB / 406.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009648/0.6142, allocations: 494.1 kB / 407.1 MB, free: 7.703 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000259/0.6145, allocations: 130.4 kB / 407.3 MB, free: 7.664 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.6147, allocations: 113.5 kB / 407.4 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.6148, allocations: 0 / 407.4 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.6152, allocations: 249.4 kB / 407.6 MB, free: 7.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.635e-06/0.6152, allocations: 0 / 407.6 MB, free: 7.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009675/0.6162, allocations: 0.4948 MB / 408.1 MB, free: 7.238 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/0.6163, allocations: 191.4 kB / 408.3 MB, free: 7.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008679/0.6171, allocations: 0.4962 MB / 408.8 MB, free: 6.789 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.6172, allocations: 37.45 kB / 408.8 MB, free: 6.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.6173, allocations: 174.1 kB / 409 MB, free: 6.598 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.702e-05/0.6174, allocations: 30.8 kB / 409 MB, free: 6.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.6174, allocations: 3.812 kB / 409 MB, free: 6.582 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.409e-05/0.6175, allocations: 318.3 kB / 409.3 MB, free: 6.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.6177, allocations: 87.31 kB / 409.4 MB, free: 6.258 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.6179, allocations: 78.98 kB / 409.5 MB, free: 6.254 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.6182, allocations: 207.9 kB / 409.7 MB, free: 6.082 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.6182, allocations: 0 / 409.7 MB, free: 6.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008329/0.619, allocations: 479 kB / 410.2 MB, free: 5.852 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.509e-05/0.6191, allocations: 157.5 kB / 410.3 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.6192, allocations: 0 / 410.3 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.6192, allocations: 0 / 410.3 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.385e-05/0.6192, allocations: 0 / 410.3 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.6192, allocations: 3.875 kB / 410.3 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.6195, allocations: 19.11 kB / 410.4 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.6197, allocations: 95.06 kB / 410.4 MB, free: 5.668 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.0002061/0.6199, allocations: 277.6 kB / 410.7 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/0.62, allocations: 42.78 kB / 410.8 MB, free: 5.367 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002194/0.6202, allocations: 81.81 kB / 410.8 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.6202, allocations: 0 / 410.8 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.6202, allocations: 0 / 410.8 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.6203, allocations: 0 / 410.8 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.6216, allocations: 0.9326 MB / 411.8 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6216, allocations: 0 / 411.8 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.116e-05/0.6217, allocations: 0 / 411.8 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.6217, allocations: 7.953 kB / 411.8 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/0.6217, allocations: 19.61 kB / 411.8 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.6218, allocations: 0 / 411.8 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6218, allocations: 0 / 411.8 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009631/0.6227, allocations: 0.6289 MB / 412.4 MB, free: 4.367 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005208/0.6233, allocations: 261.1 kB / 412.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.793e-05/0.6234, allocations: 11.73 kB / 412.7 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.6237, allocations: 19.44 kB / 412.7 MB, free: 4.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.6239, allocations: 61.45 kB / 412.8 MB, free: 4.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.6241, allocations: 102 kB / 412.9 MB, free: 4.145 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007017/0.6248, allocations: 411.8 kB / 413.3 MB, free: 3.965 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6248, allocations: 0 / 413.3 MB, free: 3.965 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000412/0.6252, allocations: 53.03 kB / 413.3 MB, free: 3.965 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.001281/0.6265, allocations: 1.195 MB / 414.5 MB, free: 3.078 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008659/0.6274, allocations: 0.5253 MB / 415 MB, free: 18.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.6274, allocations: 0 / 415 MB, free: 18.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004874/0.6279, allocations: 470.1 kB / 415.5 MB, free: 18.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.6291, allocations: 158.5 kB / 415.7 MB, free: 18.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.6309, allocations: 0.7474 MB / 416.4 MB, free: 17.97 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005488/0.6315, allocations: 0.8187 MB / 417.2 MB, free: 17.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.448e-05/0.6316, allocations: 45.11 kB / 417.3 MB, free: 17.2 MB / 330.7 MB Notification: Performance of SimCode: time 1.372e-06/0.6316, allocations: 0 / 417.3 MB, free: 17.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.514/3.145, allocations: 4.988 MB / 422.3 MB, free: 14.62 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat