Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.242/2.242, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.702e-05/2.702e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3351, allocations: 44.5 MB / 294.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.155/0.4902, allocations: 76.89 MB / 371.2 MB, free: 4.922 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.4905, allocations: 67.97 kB / 371.2 MB, free: 4.855 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1179/0.6085, allocations: 27.59 MB / 398.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.6085, allocations: 0 / 398.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.306e-05/0.6086, allocations: 8 kB / 398.8 MB, free: 9.332 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.0009083/0.6095, allocations: 0.6814 MB / 399.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.18e-05/0.6096, allocations: 8.031 kB / 399.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.6097, allocations: 47.47 kB / 399.6 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005189/0.6102, allocations: 279.4 kB / 399.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.6103, allocations: 4 kB / 399.8 MB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/0.6104, allocations: 15.98 kB / 399.9 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002765/0.6107, allocations: 79.97 kB / 399.9 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004258/0.6111, allocations: 153.6 kB / 400.1 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.6111, allocations: 3.938 kB / 400.1 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.936e-05/0.6112, allocations: 4 kB / 400.1 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.6112, allocations: 7.953 kB / 400.1 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.6125, allocations: 465.2 kB / 400.6 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003121/0.6128, allocations: 118.5 kB / 400.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002605/0.6131, allocations: 100.9 kB / 400.8 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.6131, allocations: 4 kB / 400.8 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005052/0.6136, allocations: 234.6 kB / 401 MB, free: 6.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 3.747e-06/0.6136, allocations: 0 / 401 MB, free: 6.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.001142/0.6148, allocations: 365 kB / 401.4 MB, free: 6.598 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.615, allocations: 191.9 kB / 401.6 MB, free: 6.367 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.6161, allocations: 488.9 kB / 402 MB, free: 5.879 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.196e-05/0.6162, allocations: 29.7 kB / 402.1 MB, free: 5.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.6163, allocations: 121.3 kB / 402.2 MB, free: 5.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.611e-05/0.6164, allocations: 27.72 kB / 402.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.749e-05/0.6165, allocations: 0 / 402.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.6167, allocations: 334.8 kB / 402.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.6169, allocations: 72.12 kB / 402.6 MB, free: 5.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.6172, allocations: 83.91 kB / 402.7 MB, free: 5.207 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.6174, allocations: 55.97 kB / 402.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6174, allocations: 4 kB / 402.7 MB, free: 5.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00104/0.6185, allocations: 329.4 kB / 403.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001651/0.6186, allocations: 148.4 kB / 403.2 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.6187, allocations: 0 / 403.2 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.6187, allocations: 4 kB / 403.2 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.298e-05/0.6187, allocations: 7.938 kB / 403.2 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.6188, allocations: 3.938 kB / 403.2 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.6191, allocations: 19.91 kB / 403.2 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001963/0.6193, allocations: 93.3 kB / 403.3 MB, free: 4.516 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.0003359/0.6197, allocations: 271 kB / 403.6 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001118/0.6208, allocations: 385 kB / 404 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.6209, allocations: 43.53 kB / 404 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/0.6212, allocations: 75.7 kB / 404.1 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.6212, allocations: 3.938 kB / 404.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.6212, allocations: 0 / 404.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.6213, allocations: 4 kB / 404.1 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001742/0.623, allocations: 0.7371 MB / 404.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.623, allocations: 7.984 kB / 404.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.239e-05/0.6231, allocations: 0 / 404.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.6231, allocations: 3.953 kB / 404.9 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-05/0.6232, allocations: 23.98 kB / 404.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.6232, allocations: 0 / 404.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.6232, allocations: 0 / 404.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.6244, allocations: 482.8 kB / 405.3 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006167/0.625, allocations: 252.4 kB / 405.6 MB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.6252, allocations: 15.95 kB / 405.6 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/0.6256, allocations: 15.98 kB / 405.6 MB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.6258, allocations: 59.91 kB / 405.7 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/0.626, allocations: 105.2 kB / 405.8 MB, free: 1.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008418/0.6269, allocations: 402.6 kB / 406.2 MB, free: 1.555 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6269, allocations: 0 / 406.2 MB, free: 1.555 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005784/0.6275, allocations: 52 kB / 406.2 MB, free: 1.504 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.00162/0.6291, allocations: 1.024 MB / 407.3 MB, free: 460 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009326/0.6301, allocations: 0.5088 MB / 407.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.6301, allocations: 4 kB / 407.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006074/0.6307, allocations: 453 kB / 408.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.6322, allocations: 164.7 kB / 408.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.6345, allocations: 0.6784 MB / 409 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007301/0.6353, allocations: 0.8261 MB / 409.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001249/0.6354, allocations: 16.55 kB / 409.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.341e-05/0.6355, allocations: 43.42 kB / 409.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6355, allocations: 0 / 409.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07823/0.7138, allocations: 7.794 MB / 417.7 MB, free: 5.66 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002905/0.7141, allocations: 129.8 kB / 417.9 MB, free: 5.473 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.023/3.737, allocations: 0 / 417.9 MB, free: 5.473 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat