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 2.098/2.098, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.803e-05/2.814e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3113, allocations: 44.49 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1405/0.4518, allocations: 76.89 MB / 371.1 MB, free: 4.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.4522, allocations: 67.95 kB / 371.2 MB, free: 4.914 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1007/0.5529, allocations: 27.57 MB / 398.7 MB, free: 9.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.553, allocations: 4 kB / 398.7 MB, free: 9.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.553, allocations: 4 kB / 398.7 MB, free: 9.41 MB / 346.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.0009546/0.554, allocations: 0.6892 MB / 399.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.5541, allocations: 8.031 kB / 399.4 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.5542, allocations: 47.48 kB / 399.5 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.5548, allocations: 267.5 kB / 399.7 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.78e-05/0.5548, allocations: 8 kB / 399.8 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.5549, allocations: 16 kB / 399.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000263/0.5552, allocations: 79.91 kB / 399.8 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003721/0.5556, allocations: 149.6 kB / 400 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.5556, allocations: 0 / 400 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.5556, allocations: 8 kB / 400 MB, free: 8.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.5557, allocations: 3.953 kB / 400 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.5569, allocations: 473.1 kB / 400.5 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.5572, allocations: 118.5 kB / 400.6 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/0.5575, allocations: 100.9 kB / 400.7 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.5575, allocations: 0 / 400.7 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004656/0.558, allocations: 234.6 kB / 400.9 MB, free: 7.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 5.31e-06/0.558, allocations: 4 kB / 400.9 MB, free: 7.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.001037/0.5591, allocations: 361 kB / 401.3 MB, free: 6.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.5593, allocations: 191.9 kB / 401.5 MB, free: 6.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.5604, allocations: 484.9 kB / 401.9 MB, free: 5.965 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.932e-05/0.5605, allocations: 29.7 kB / 402 MB, free: 5.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.5606, allocations: 179.8 kB / 402.1 MB, free: 5.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.93e-05/0.5607, allocations: 31.66 kB / 402.2 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.5608, allocations: 4 kB / 402.2 MB, free: 5.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.5609, allocations: 318.8 kB / 402.5 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.5611, allocations: 76.12 kB / 402.6 MB, free: 5.324 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.5613, allocations: 75.91 kB / 402.6 MB, free: 5.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.5615, allocations: 59.97 kB / 402.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5615, allocations: 0 / 402.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008973/0.5625, allocations: 321.5 kB / 403 MB, free: 4.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001542/0.5626, allocations: 152.5 kB / 403.1 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.5627, allocations: 0 / 403.1 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.5627, allocations: 0 / 403.1 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.954e-05/0.5627, allocations: 3.953 kB / 403.2 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.5628, allocations: 4 kB / 403.2 MB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.5631, allocations: 19.92 kB / 403.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001733/0.5633, allocations: 97.34 kB / 403.3 MB, free: 4.566 MB / 346.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.0003072/0.5636, allocations: 287 kB / 403.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001041/0.5647, allocations: 381.1 kB / 403.9 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-05/0.5648, allocations: 47.44 kB / 404 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.5651, allocations: 79.69 kB / 404 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.5651, allocations: 0 / 404 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5651, allocations: 4 kB / 404.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.5651, allocations: 0 / 404.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.5668, allocations: 0.7369 MB / 404.8 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.5668, allocations: 0 / 404.8 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.669e-05/0.5669, allocations: 0 / 404.8 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.5669, allocations: 3.953 kB / 404.8 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-05/0.567, allocations: 23.98 kB / 404.8 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.567, allocations: 0 / 404.8 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.567, allocations: 0 / 404.8 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.5681, allocations: 479 kB / 405.3 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006633/0.5688, allocations: 260.4 kB / 405.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.569, allocations: 15.95 kB / 405.6 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.5693, allocations: 23.83 kB / 405.6 MB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000257/0.5696, allocations: 55.88 kB / 405.6 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/0.5698, allocations: 101.2 kB / 405.7 MB, free: 1.984 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008396/0.5706, allocations: 398.7 kB / 406.1 MB, free: 1.598 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5707, allocations: 4 kB / 406.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005636/0.5712, allocations: 52 kB / 406.2 MB, free: 1.543 MB / 346.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.001517/0.5728, allocations: 1.013 MB / 407.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008539/0.5737, allocations: 0.5244 MB / 407.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.5737, allocations: 4 kB / 407.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005846/0.5743, allocations: 449 kB / 408.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.5756, allocations: 166.2 kB / 408.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.5781, allocations: 0.7307 MB / 409 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006558/0.5788, allocations: 0.8261 MB / 409.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.579, allocations: 43.42 kB / 409.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.579, allocations: 4 kB / 409.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.627/3.206, allocations: 4.991 MB / 414.9 MB, free: 8.465 MB / 362.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