Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.024/2.024, allocations: 225.8 MB / 239.3 MB, free: 1.254 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.33e-05/3.339e-05, allocations: 4 kB / 292.7 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 50.41 MB / 343.1 MB, free: 8.988 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4796/0.593, allocations: 84.12 MB / 427.3 MB, free: 7.922 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.5933, allocations: 69.98 kB / 427.3 MB, free: 7.922 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1572/0.7506, allocations: 35.01 MB / 462.3 MB, free: 7.559 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7506, allocations: 0 / 462.3 MB, free: 7.559 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.187e-05/0.7507, allocations: 8 kB / 462.4 MB, free: 7.551 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001345/0.752, allocations: 0.8682 MB / 463.2 MB, free: 6.652 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.7521, allocations: 12.03 kB / 463.2 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/0.7522, allocations: 56.8 kB / 463.3 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.7524, allocations: 79.06 kB / 463.4 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000798/0.7532, allocations: 400 kB / 463.8 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.639e-05/0.7533, allocations: 19.55 kB / 463.8 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.826e-05/0.7534, allocations: 30.86 kB / 463.8 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008478/0.7543, allocations: 290.9 kB / 464.1 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.7543, allocations: 0 / 464.1 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/0.7544, allocations: 14 kB / 464.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.7544, allocations: 3.938 kB / 464.1 MB, free: 5.852 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000612/0.755, allocations: 201.6 kB / 464.3 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.7571, allocations: 0.8835 MB / 465.2 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/0.7578, allocations: 205.9 kB / 465.4 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003764/0.7582, allocations: 159.2 kB / 465.5 MB, free: 4.754 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.7582, allocations: 0 / 465.5 MB, free: 4.754 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007169/0.759, allocations: 384.3 kB / 465.9 MB, free: 4.398 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.876e-06/0.759, allocations: 0 / 465.9 MB, free: 4.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001516/0.7605, allocations: 0.5793 MB / 466.5 MB, free: 3.891 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.7607, allocations: 177.3 kB / 466.7 MB, free: 3.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/0.7627, allocations: 0.8803 MB / 467.6 MB, free: 2.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.7629, allocations: 37.08 kB / 467.6 MB, free: 2.934 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.763, allocations: 150.2 kB / 467.7 MB, free: 2.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.7632, allocations: 57.86 kB / 467.8 MB, free: 2.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.7632, allocations: 7.375 kB / 467.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.7634, allocations: 336.9 kB / 468.1 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003662/0.7638, allocations: 117.7 kB / 468.2 MB, free: 2.367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004018/0.7642, allocations: 146.8 kB / 468.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.7646, allocations: 232 kB / 468.6 MB, free: 2.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.7646, allocations: 7.953 kB / 468.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001372/0.766, allocations: 0.5583 MB / 469.2 MB, free: 1.574 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.7662, allocations: 129.6 kB / 469.3 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.7662, allocations: 4 kB / 469.3 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.7662, allocations: 0 / 469.3 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.7664, allocations: 18.19 kB / 469.3 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.7664, allocations: 0 / 469.3 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005346/0.7669, allocations: 43.38 kB / 469.4 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.7671, allocations: 115.9 kB / 469.5 MB, free: 1.258 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.y,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,$PRE.Adder.AND.G2.y,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0003495/0.7675, allocations: 267.8 kB / 469.7 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.7677, allocations: 79.11 kB / 469.8 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004413/0.7681, allocations: 135 kB / 470 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.7682, allocations: 4 kB / 470 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.7682, allocations: 0 / 470 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.7682, allocations: 0 / 470 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.7693, allocations: 0.6233 MB / 470.6 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.7694, allocations: 0 / 470.6 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.7695, allocations: 15.94 kB / 470.6 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.7695, allocations: 0 / 470.6 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.183e-05/0.7696, allocations: 19.98 kB / 470.6 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.7696, allocations: 4 kB / 470.6 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.7697, allocations: 4.078 kB / 470.6 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.7713, allocations: 0.6828 MB / 471.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/0.7725, allocations: 0.4998 MB / 471.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.7727, allocations: 24.19 kB / 471.8 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004321/0.7732, allocations: 30.66 kB / 471.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/0.7735, allocations: 53.62 kB / 471.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001921/0.7737, allocations: 111.4 kB / 472 MB, free: 15.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001607/0.7753, allocations: 0.7172 MB / 472.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7753, allocations: 4 kB / 472.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006392/0.776, allocations: 87.06 kB / 472.8 MB, free: 14.4 MB / 362.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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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.002017/0.778, allocations: 1.262 MB / 474.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.7793, allocations: 0.6373 MB / 474.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.7793, allocations: 0 / 474.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008031/0.7801, allocations: 0.5205 MB / 475.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.7814, allocations: 166.6 kB / 475.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.785, allocations: 1.222 MB / 476.6 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000978/0.786, allocations: 0.9799 MB / 477.6 MB, free: 9.859 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005532/0.7866, allocations: 169.2 kB / 477.8 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003569/0.7869, allocations: 127.3 kB / 477.9 MB, free: 9.566 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7869, allocations: 4 kB / 477.9 MB, free: 9.562 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04023/0.8272, allocations: 9.117 MB / 487 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003394/0.8276, allocations: 153.6 kB / 487.2 MB, free: 308 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.674/3.502, allocations: 0 / 487.2 MB, free: 308 kB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat