Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.073/2.073, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.453e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3154, allocations: 44.51 MB / 294.2 MB, free: 14.44 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1376/0.453, allocations: 76.89 MB / 371.1 MB, free: 5.012 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4533, allocations: 75.94 kB / 371.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09743/0.5508, allocations: 27.57 MB / 398.8 MB, free: 9.441 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5508, allocations: 4 kB / 398.8 MB, free: 9.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.5509, allocations: 4 kB / 398.8 MB, free: 9.434 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.0008073/0.5517, allocations: 0.6853 MB / 399.5 MB, free: 8.672 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.5517, allocations: 8.031 kB / 399.5 MB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.5519, allocations: 47.48 kB / 399.5 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.5523, allocations: 267.5 kB / 399.8 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.5523, allocations: 12 kB / 399.8 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.525e-05/0.5524, allocations: 11.94 kB / 399.8 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002225/0.5526, allocations: 71.98 kB / 399.9 MB, free: 8.223 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.553, allocations: 161.6 kB / 400 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.553, allocations: 0 / 400 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.19e-05/0.5531, allocations: 4 kB / 400 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.5531, allocations: 3.953 kB / 400 MB, free: 8.051 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009754/0.5541, allocations: 477.1 kB / 400.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002476/0.5544, allocations: 114.5 kB / 400.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.5546, allocations: 104.9 kB / 400.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.5546, allocations: 0 / 400.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/0.5551, allocations: 242.5 kB / 401 MB, free: 7.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/0.5551, allocations: 0 / 401 MB, free: 7.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009404/0.556, allocations: 353.1 kB / 401.3 MB, free: 6.707 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.5562, allocations: 199.9 kB / 401.5 MB, free: 6.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008699/0.557, allocations: 476.9 kB / 402 MB, free: 5.992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.5571, allocations: 33.7 kB / 402 MB, free: 5.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.5572, allocations: 117.3 kB / 402.1 MB, free: 5.836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.709e-05/0.5573, allocations: 31.64 kB / 402.1 MB, free: 5.805 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.5573, allocations: 4 kB / 402.1 MB, free: 5.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.5575, allocations: 326.8 kB / 402.5 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.5577, allocations: 84.05 kB / 402.5 MB, free: 5.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.5579, allocations: 71.92 kB / 402.6 MB, free: 5.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.5581, allocations: 67.95 kB / 402.7 MB, free: 5.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5581, allocations: 0 / 402.7 MB, free: 5.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008149/0.5589, allocations: 321.4 kB / 403 MB, free: 4.934 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.559, allocations: 156.5 kB / 403.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5591, allocations: 0 / 403.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.5591, allocations: 0 / 403.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.364e-05/0.5591, allocations: 3.953 kB / 403.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.5591, allocations: 0 / 403.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.5594, allocations: 23.83 kB / 403.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.5596, allocations: 97.36 kB / 403.3 MB, free: 4.625 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.0002849/0.5599, allocations: 282.9 kB / 403.5 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008958/0.5608, allocations: 377.1 kB / 403.9 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-05/0.5609, allocations: 43.53 kB / 404 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000208/0.5611, allocations: 79.7 kB / 404 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.5611, allocations: 0 / 404 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.5611, allocations: 0 / 404 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.5612, allocations: 3.984 kB / 404 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001373/0.5625, allocations: 0.7408 MB / 404.8 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.5626, allocations: 0 / 404.8 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.296e-06/0.5626, allocations: 0 / 404.8 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.5626, allocations: 7.953 kB / 404.8 MB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.505e-05/0.5627, allocations: 16.17 kB / 404.8 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.5627, allocations: 8 kB / 404.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5627, allocations: 0 / 404.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000956/0.5636, allocations: 478.9 kB / 405.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005248/0.5642, allocations: 260.4 kB / 405.5 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.5643, allocations: 19.94 kB / 405.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.5646, allocations: 19.88 kB / 405.6 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.5649, allocations: 55.92 kB / 405.6 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/0.565, allocations: 109.2 kB / 405.7 MB, free: 2.039 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007091/0.5658, allocations: 394.7 kB / 406.1 MB, free: 1.656 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5658, allocations: 0 / 406.1 MB, free: 1.656 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004764/0.5663, allocations: 48 kB / 406.2 MB, free: 1.609 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.001521/0.5678, allocations: 1.024 MB / 407.2 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008442/0.5687, allocations: 0.5165 MB / 407.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.5687, allocations: 4 kB / 407.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000537/0.5692, allocations: 453 kB / 408.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.5704, allocations: 157.9 kB / 408.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.5723, allocations: 0.6861 MB / 409 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006272/0.573, allocations: 0.8261 MB / 409.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.411e-05/0.573, allocations: 16.48 kB / 409.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8e-05/0.5731, allocations: 43.42 kB / 409.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5731, allocations: 4 kB / 409.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0457/0.6189, allocations: 7.777 MB / 417.7 MB, free: 5.738 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002516/0.6192, allocations: 133.3 kB / 417.8 MB, free: 5.543 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.312/2.932, allocations: 0 / 417.8 MB, free: 5.543 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat