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.748/1.748, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.515e-05/3.533e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2792, allocations: 38.76 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.4139, allocations: 72.25 MB / 336.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004052/0.4144, allocations: 71.95 kB / 336.2 MB, free: 1.277 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1229/0.5373, allocations: 28.27 MB / 364.5 MB, free: 5.055 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5374, allocations: 0 / 364.5 MB, free: 5.055 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.57e-05/0.5374, allocations: 8 kB / 364.5 MB, free: 5.047 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.0009477/0.5384, allocations: 0.6737 MB / 365.1 MB, free: 4.297 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.5385, allocations: 8.031 kB / 365.1 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.5386, allocations: 42.55 kB / 365.2 MB, free: 4.238 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.5387, allocations: 47.44 kB / 365.2 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004976/0.5392, allocations: 269.3 kB / 365.5 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.5393, allocations: 16 kB / 365.5 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.5393, allocations: 8 kB / 365.5 MB, free: 3.863 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004681/0.5398, allocations: 161.6 kB / 365.7 MB, free: 3.699 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.5398, allocations: 0 / 365.7 MB, free: 3.699 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.349e-05/0.5399, allocations: 12 kB / 365.7 MB, free: 3.688 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.5399, allocations: 0 / 365.7 MB, free: 3.688 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.5402, allocations: 83.91 kB / 365.8 MB, free: 3.605 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.5414, allocations: 0.4966 MB / 366.3 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.5418, allocations: 118.5 kB / 366.4 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003049/0.5421, allocations: 104.9 kB / 366.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.5421, allocations: 4 kB / 366.5 MB, free: 2.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004812/0.5426, allocations: 238.7 kB / 366.7 MB, free: 2.566 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.447e-06/0.5427, allocations: 4 kB / 366.7 MB, free: 2.562 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001191/0.5439, allocations: 0.5054 MB / 367.2 MB, free: 2.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.5441, allocations: 199.9 kB / 367.4 MB, free: 1.781 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.5452, allocations: 498.8 kB / 367.9 MB, free: 1.289 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.864e-05/0.5453, allocations: 29.7 kB / 367.9 MB, free: 1.254 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.5455, allocations: 117.1 kB / 368.1 MB, free: 1.137 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.158e-05/0.5455, allocations: 31.75 kB / 368.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.679e-05/0.5456, allocations: 8 kB / 368.1 MB, free: 1.098 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.5458, allocations: 326.8 kB / 368.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.5461, allocations: 87.91 kB / 368.5 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.5463, allocations: 79.97 kB / 368.6 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.5466, allocations: 212.5 kB / 368.8 MB, free: 376 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.5467, allocations: 0 / 368.8 MB, free: 376 kB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.2883/0.835, allocations: 483.3 kB / 369.3 MB, free: 89.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/0.8351, allocations: 151.4 kB / 369.4 MB, free: 89.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.8352, allocations: 0.9844 kB / 369.4 MB, free: 89.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.8352, allocations: 4.781 kB / 369.4 MB, free: 89.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.551e-05/0.8352, allocations: 4.547 kB / 369.4 MB, free: 89.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.8352, allocations: 1.062 kB / 369.4 MB, free: 89.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.8355, allocations: 19.94 kB / 369.4 MB, free: 89.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002218/0.8358, allocations: 95.34 kB / 369.5 MB, free: 89.56 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.0002311/0.836, allocations: 271.4 kB / 369.8 MB, free: 89.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.8361, allocations: 43.75 kB / 369.8 MB, free: 89.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.8364, allocations: 68.55 kB / 369.9 MB, free: 89.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.8364, allocations: 5.578 kB / 369.9 MB, free: 89.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.8364, allocations: 6.547 kB / 369.9 MB, free: 89.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.8364, allocations: 3.188 kB / 369.9 MB, free: 89.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001807/0.8382, allocations: 0.9233 MB / 370.8 MB, free: 88.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.8383, allocations: 0.875 kB / 370.8 MB, free: 88.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.24e-05/0.8383, allocations: 1.734 kB / 370.8 MB, free: 88.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.8383, allocations: 1.25 kB / 370.8 MB, free: 88.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.12e-05/0.8384, allocations: 24.08 kB / 370.9 MB, free: 88.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.8384, allocations: 5.406 kB / 370.9 MB, free: 88.79 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.8384, allocations: 3.312 kB / 370.9 MB, free: 88.79 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.8396, allocations: 0.6299 MB / 371.5 MB, free: 88.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005117/0.8401, allocations: 257.3 kB / 371.8 MB, free: 88.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.8402, allocations: 13.02 kB / 371.8 MB, free: 88.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/0.8405, allocations: 19.08 kB / 371.8 MB, free: 88.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.8408, allocations: 52.72 kB / 371.8 MB, free: 88.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.8409, allocations: 104 kB / 371.9 MB, free: 88.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006797/0.8416, allocations: 421.9 kB / 372.4 MB, free: 88.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8416, allocations: 0 / 372.4 MB, free: 88.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004534/0.8421, allocations: 50.69 kB / 372.4 MB, free: 88.19 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.001215/0.8433, allocations: 1.182 MB / 373.6 MB, free: 87.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006803/0.844, allocations: 0.5311 MB / 374.1 MB, free: 87.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.844, allocations: 0 / 374.1 MB, free: 87.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004207/0.8445, allocations: 464.8 kB / 374.6 MB, free: 86.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.8455, allocations: 151.7 kB / 374.7 MB, free: 86.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.8472, allocations: 0.6945 MB / 375.4 MB, free: 86.45 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.8476, allocations: 0.8325 MB / 376.2 MB, free: 85.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.881e-05/0.8477, allocations: 18.44 kB / 376.3 MB, free: 85.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.8477, allocations: 43.03 kB / 376.3 MB, free: 85.71 MB / 314.7 MB Notification: Performance of SimCode: time 8.02e-07/0.8478, allocations: 0 / 376.3 MB, free: 85.71 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03453/0.8823, allocations: 8.298 MB / 384.6 MB, free: 84.13 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.8825, allocations: 143.6 kB / 384.7 MB, free: 83.91 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/3.356, allocations: 0 / 384.7 MB, free: 83.91 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