Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.852e-05/2.864e-05, allocations: 0 / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 50.41 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4946/0.6072, allocations: 84.38 MB / 427 MB, free: 9.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.6075, allocations: 70.84 kB / 427.1 MB, free: 9.438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1246/0.7321, allocations: 35.01 MB / 462.1 MB, free: 11.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7322, allocations: 0 / 462.1 MB, free: 11.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.618e-05/0.7322, allocations: 8 kB / 462.1 MB, free: 11.21 MB / 378.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.00145/0.7337, allocations: 0.874 MB / 463 MB, free: 10.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.374e-05/0.7338, allocations: 12.03 kB / 463 MB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.7339, allocations: 50.55 kB / 463 MB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.7342, allocations: 79.06 kB / 463.1 MB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008976/0.7351, allocations: 407.5 kB / 463.5 MB, free: 9.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.868e-05/0.7351, allocations: 15.98 kB / 463.5 MB, free: 9.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.065e-05/0.7352, allocations: 24 kB / 463.6 MB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/0.7361, allocations: 289.4 kB / 463.8 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.7362, allocations: 0 / 463.8 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.961e-05/0.7363, allocations: 12 kB / 463.8 MB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.7363, allocations: 0 / 463.8 MB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006337/0.7369, allocations: 199.9 kB / 464 MB, free: 9.145 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.7392, allocations: 0.8826 MB / 464.9 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006676/0.7399, allocations: 206.5 kB / 465.1 MB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004223/0.7403, allocations: 160.8 kB / 465.3 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.151e-05/0.7404, allocations: 0 / 465.3 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007284/0.7411, allocations: 377.9 kB / 465.7 MB, free: 7.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.725e-06/0.7411, allocations: 4 kB / 465.7 MB, free: 7.426 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.00156/0.7427, allocations: 0.5853 MB / 466.2 MB, free: 6.809 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/0.7429, allocations: 174.2 kB / 466.4 MB, free: 6.602 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001965/0.7449, allocations: 0.8783 MB / 467.3 MB, free: 5.715 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.745, allocations: 41.7 kB / 467.3 MB, free: 5.668 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.7452, allocations: 145.8 kB / 467.5 MB, free: 5.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.7453, allocations: 55.34 kB / 467.5 MB, free: 5.465 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.7454, allocations: 8 kB / 467.5 MB, free: 5.457 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.7456, allocations: 338.8 kB / 467.9 MB, free: 5.117 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/0.746, allocations: 120 kB / 468 MB, free: 5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/0.7464, allocations: 145 kB / 468.1 MB, free: 4.852 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004638/0.7469, allocations: 242.8 kB / 468.4 MB, free: 4.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/0.7469, allocations: 3.953 kB / 468.4 MB, free: 4.586 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001466/0.7484, allocations: 0.5547 MB / 468.9 MB, free: 4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.7486, allocations: 134.7 kB / 469.1 MB, free: 3.844 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.7486, allocations: 4 kB / 469.1 MB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.7486, allocations: 96 / 469.1 MB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.7488, allocations: 19.94 kB / 469.1 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.7488, allocations: 0 / 469.1 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005827/0.7494, allocations: 31.91 kB / 469.1 MB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/0.7496, allocations: 123.9 kB / 469.2 MB, free: 3.668 MB / 378.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.0003952/0.75, allocations: 265.9 kB / 469.5 MB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.7502, allocations: 83.02 kB / 469.6 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004639/0.7507, allocations: 134.2 kB / 469.7 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/0.7507, allocations: 0 / 469.7 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.7508, allocations: 4 kB / 469.7 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.7508, allocations: 0 / 469.7 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.7521, allocations: 0.6219 MB / 470.3 MB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.7521, allocations: 128 / 470.3 MB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.7523, allocations: 12 kB / 470.3 MB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.7523, allocations: 4 kB / 470.3 MB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.7524, allocations: 23.98 kB / 470.4 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.7524, allocations: 7.984 kB / 470.4 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.7524, allocations: 0 / 470.4 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.7541, allocations: 0.6858 MB / 471.1 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.7554, allocations: 0.4957 MB / 471.6 MB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.7557, allocations: 20 kB / 471.6 MB, free: 1.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.7561, allocations: 31.88 kB / 471.6 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/0.7564, allocations: 51.94 kB / 471.7 MB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001933/0.7566, allocations: 111.9 kB / 471.8 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001705/0.7583, allocations: 0.7251 MB / 472.5 MB, free: 276 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.011e-06/0.7584, allocations: 0 / 472.5 MB, free: 276 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007082/0.7591, allocations: 88 kB / 472.6 MB, free: 188 kB / 378.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.002191/0.7613, allocations: 1.258 MB / 473.8 MB, free: 14.87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.7627, allocations: 0.6421 MB / 474.5 MB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.7627, allocations: 0 / 474.5 MB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000845/0.7635, allocations: 0.5171 MB / 475 MB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.7648, allocations: 166.6 kB / 475.2 MB, free: 13.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.7686, allocations: 1.222 MB / 476.4 MB, free: 12.19 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000996/0.7697, allocations: 0.9799 MB / 477.4 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005882/0.7703, allocations: 160.9 kB / 477.5 MB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003772/0.7707, allocations: 131.2 kB / 477.6 MB, free: 10.89 MB / 394.7 MB Notification: Performance of SimCode: time 1.653e-06/0.7707, allocations: 0 / 477.6 MB, free: 10.89 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04068/0.8114, allocations: 9.11 MB / 486.8 MB, free: 1.867 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003268/0.8118, allocations: 155.4 kB / 486.9 MB, free: 1.637 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.651/3.463, allocations: 0 / 486.9 MB, free: 1.637 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat