Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.905e-05/3.909e-05, allocations: 4 kB / 269.4 MB, free: 6.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 47.57 MB / 317 MB, free: 6.66 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4037/0.5046, allocations: 83.22 MB / 400.2 MB, free: 4.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.5049, allocations: 78.14 kB / 400.3 MB, free: 4.395 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.123/0.6279, allocations: 34.58 MB / 434.9 MB, free: 7.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6279, allocations: 0 / 434.9 MB, free: 7.895 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.235e-05/0.628, allocations: 16 kB / 434.9 MB, free: 7.879 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.001361/0.6294, allocations: 0.8699 MB / 435.8 MB, free: 6.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.6294, allocations: 8.031 kB / 435.8 MB, free: 6.973 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.6296, allocations: 57.23 kB / 435.8 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.6298, allocations: 83.06 kB / 435.9 MB, free: 6.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007754/0.6306, allocations: 402.2 kB / 436.3 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.6306, allocations: 15.62 kB / 436.3 MB, free: 6.422 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.6307, allocations: 23.31 kB / 436.4 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008203/0.6316, allocations: 304.9 kB / 436.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.6316, allocations: 3.984 kB / 436.7 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.6317, allocations: 11.86 kB / 436.7 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.6317, allocations: 4 kB / 436.7 MB, free: 6.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006347/0.6324, allocations: 203.4 kB / 436.9 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.6345, allocations: 0.8837 MB / 437.8 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006119/0.6351, allocations: 208.3 kB / 438 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003693/0.6355, allocations: 153.3 kB / 438.1 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.6356, allocations: 0 / 438.1 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007263/0.6363, allocations: 380 kB / 438.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.066e-06/0.6363, allocations: 0 / 438.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001494/0.6379, allocations: 0.585 MB / 439.1 MB, free: 4.188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.638, allocations: 173.3 kB / 439.2 MB, free: 3.988 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/0.64, allocations: 0.8826 MB / 440.1 MB, free: 3.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001335/0.6402, allocations: 33.52 kB / 440.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.6403, allocations: 155.5 kB / 440.3 MB, free: 3.109 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.6405, allocations: 56.22 kB / 440.4 MB, free: 3.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/0.6405, allocations: 5.562 kB / 440.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.6407, allocations: 333.7 kB / 440.7 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.6411, allocations: 119.9 kB / 440.8 MB, free: 2.664 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003851/0.6415, allocations: 160.7 kB / 441 MB, free: 2.551 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.6419, allocations: 224.1 kB / 441.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6419, allocations: 0 / 441.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001348/0.6433, allocations: 0.5661 MB / 441.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.6434, allocations: 133 kB / 441.9 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.6435, allocations: 0 / 441.9 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.6435, allocations: 7.938 kB / 441.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.6436, allocations: 11.98 kB / 441.9 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.6436, allocations: 7.938 kB / 441.9 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.6442, allocations: 34.12 kB / 441.9 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.6444, allocations: 118.1 kB / 442.1 MB, free: 1.547 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.0003214/0.6447, allocations: 275.3 kB / 442.3 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.6449, allocations: 75.16 kB / 442.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004103/0.6453, allocations: 126.9 kB / 442.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.6453, allocations: 4 kB / 442.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.6453, allocations: 0 / 442.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.6453, allocations: 7.922 kB / 442.5 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.6464, allocations: 0.6287 MB / 443.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.6464, allocations: 0 / 443.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.627e-05/0.6465, allocations: 11.98 kB / 443.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.6465, allocations: 96 / 443.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-05/0.6466, allocations: 30.67 kB / 443.2 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.6467, allocations: 0 / 443.2 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.6467, allocations: 0 / 443.2 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.6482, allocations: 0.6774 MB / 443.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.6494, allocations: 0.498 MB / 444.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.6496, allocations: 22.75 kB / 444.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.65, allocations: 28.03 kB / 444.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.6502, allocations: 53.5 kB / 444.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/0.6504, allocations: 127.3 kB / 444.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001569/0.652, allocations: 0.7233 MB / 445.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.652, allocations: 0 / 445.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005853/0.6527, allocations: 80 kB / 445.4 MB, free: 14.6 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.001971/0.6546, allocations: 1.258 MB / 446.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.6559, allocations: 0.6459 MB / 447.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.6559, allocations: 0 / 447.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007885/0.6567, allocations: 0.5211 MB / 447.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.6579, allocations: 166.9 kB / 448 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.6613, allocations: 1.214 MB / 449.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009182/0.6622, allocations: 0.976 MB / 450.2 MB, free: 9.598 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005432/0.6628, allocations: 172.9 kB / 450.4 MB, free: 9.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000355/0.6632, allocations: 135.3 kB / 450.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6632, allocations: 0 / 450.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/0.7049, allocations: 9.116 MB / 459.6 MB, free: 212 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002903/0.7053, allocations: 147.3 kB / 459.7 MB, free: 15.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.588/3.294, allocations: 0 / 459.7 MB, free: 15.98 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat