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.848/1.848, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.985e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.09847, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4887/0.5872, allocations: 77.57 MB / 377.5 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.5875, allocations: 66.55 kB / 377.6 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0896/0.6771, allocations: 27.78 MB / 405.4 MB, free: 9.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6772, allocations: 3.875 kB / 405.4 MB, free: 9.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.6772, allocations: 3.75 kB / 405.4 MB, free: 9.48 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.0006549/0.6778, allocations: 0.6822 MB / 406.1 MB, free: 8.816 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.6779, allocations: 11.56 kB / 406.1 MB, free: 8.816 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.536e-05/0.678, allocations: 38.06 kB / 406.1 MB, free: 8.777 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.263e-05/0.6781, allocations: 46.64 kB / 406.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.6785, allocations: 274.7 kB / 406.4 MB, free: 8.512 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/0.6785, allocations: 7 kB / 406.4 MB, free: 8.512 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.6786, allocations: 11.53 kB / 406.4 MB, free: 8.512 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.6789, allocations: 160.9 kB / 406.6 MB, free: 8.449 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.679, allocations: 0 / 406.6 MB, free: 8.449 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.679, allocations: 10.91 kB / 406.6 MB, free: 8.445 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.679, allocations: 0 / 406.6 MB, free: 8.445 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002152/0.6793, allocations: 90.39 kB / 406.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009082/0.6802, allocations: 493.4 kB / 407.2 MB, free: 8.078 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.6805, allocations: 131.8 kB / 407.3 MB, free: 8.035 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.6807, allocations: 110.6 kB / 407.4 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.6807, allocations: 0 / 407.4 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003788/0.6811, allocations: 246.1 kB / 407.7 MB, free: 7.859 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.384e-06/0.6811, allocations: 0 / 407.7 MB, free: 7.859 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009967/0.6821, allocations: 0.4962 MB / 408.1 MB, free: 7.617 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.025e-05/0.6822, allocations: 199.4 kB / 408.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008597/0.6831, allocations: 0.4951 MB / 408.8 MB, free: 7.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.6832, allocations: 32.8 kB / 408.9 MB, free: 7.129 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.153e-05/0.6833, allocations: 171.6 kB / 409 MB, free: 6.977 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.873e-05/0.6833, allocations: 25.8 kB / 409.1 MB, free: 6.965 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.6834, allocations: 3.969 kB / 409.1 MB, free: 6.965 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.303e-05/0.6834, allocations: 322.2 kB / 409.4 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.6837, allocations: 77.61 kB / 409.5 MB, free: 6.641 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.6839, allocations: 85.34 kB / 409.5 MB, free: 6.633 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.6841, allocations: 215.4 kB / 409.7 MB, free: 6.457 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.6841, allocations: 0 / 409.7 MB, free: 6.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008241/0.685, allocations: 466.8 kB / 410.2 MB, free: 6.234 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.312e-05/0.6851, allocations: 158.5 kB / 410.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.6851, allocations: 0 / 410.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.6851, allocations: 3.875 kB / 410.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.385e-05/0.6852, allocations: 0 / 410.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.6852, allocations: 0 / 410.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.6855, allocations: 14.86 kB / 410.4 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.6856, allocations: 93.3 kB / 410.5 MB, free: 6.055 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.0001988/0.6858, allocations: 283.5 kB / 410.7 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.6859, allocations: 42.62 kB / 410.8 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002094/0.6861, allocations: 78.33 kB / 410.9 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.6862, allocations: 0 / 410.9 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.6862, allocations: 3.812 kB / 410.9 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6862, allocations: 0 / 410.9 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001351/0.6875, allocations: 0.9315 MB / 411.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.6876, allocations: 0 / 411.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.031e-05/0.6876, allocations: 4 kB / 411.8 MB, free: 5.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.6876, allocations: 7.766 kB / 411.8 MB, free: 5.098 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.906e-05/0.6877, allocations: 23.11 kB / 411.8 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.6877, allocations: 0 / 411.8 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6877, allocations: 0 / 411.8 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009407/0.6886, allocations: 0.6253 MB / 412.5 MB, free: 4.746 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004653/0.6891, allocations: 253.3 kB / 412.7 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.712e-05/0.6892, allocations: 15.45 kB / 412.7 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.6896, allocations: 19.2 kB / 412.7 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.6898, allocations: 61.8 kB / 412.8 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.6899, allocations: 100.9 kB / 412.9 MB, free: 4.527 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007107/0.6907, allocations: 412.2 kB / 413.3 MB, free: 4.348 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6907, allocations: 0 / 413.3 MB, free: 4.348 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004814/0.6912, allocations: 57.61 kB / 413.4 MB, free: 4.344 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.001293/0.6925, allocations: 1.189 MB / 414.5 MB, free: 3.461 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006921/0.6932, allocations: 0.5269 MB / 415.1 MB, free: 3.129 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.6932, allocations: 0 / 415.1 MB, free: 3.129 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006052/0.6938, allocations: 464.5 kB / 415.5 MB, free: 18.8 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.695, allocations: 158.2 kB / 415.7 MB, free: 18.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.6969, allocations: 0.7439 MB / 416.4 MB, free: 18.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000615/0.6976, allocations: 0.8301 MB / 417.3 MB, free: 17.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.397e-05/0.6977, allocations: 39.7 kB / 417.3 MB, free: 17.58 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6977, allocations: 3.938 kB / 417.3 MB, free: 17.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.656/3.354, allocations: 4.993 MB / 422.3 MB, free: 15.01 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