Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.761e-05/2.764e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2962, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1405/0.4367, allocations: 78.33 MB / 372.5 MB, free: 3.652 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.4371, allocations: 71.95 kB / 372.6 MB, free: 3.582 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1765/0.6136, allocations: 34.32 MB / 406.9 MB, free: 1.285 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.6136, allocations: 0 / 406.9 MB, free: 1.285 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.338e-05/0.6137, allocations: 8 kB / 406.9 MB, free: 1.277 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.002238/0.616, allocations: 0.8794 MB / 407.8 MB, free: 336 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.574e-05/0.6161, allocations: 12.03 kB / 407.8 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003839/0.6165, allocations: 79.06 kB / 407.9 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.6178, allocations: 403.6 kB / 408.3 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.352e-05/0.618, allocations: 20 kB / 408.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.6181, allocations: 12 kB / 408.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008562/0.619, allocations: 187.9 kB / 408.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.6201, allocations: 281.2 kB / 408.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.6201, allocations: 4 kB / 408.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.273e-05/0.6203, allocations: 8 kB / 408.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.487e-06/0.6203, allocations: 0 / 408.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003129/0.6234, allocations: 0.8442 MB / 409.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009127/0.6244, allocations: 198.5 kB / 409.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005509/0.625, allocations: 144.8 kB / 410 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.727e-05/0.6251, allocations: 4 kB / 410 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001002/0.6261, allocations: 370 kB / 410.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 7.063e-06/0.6262, allocations: 7.922 kB / 410.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.002031/0.6282, allocations: 472.6 kB / 410.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001687/0.6285, allocations: 166.2 kB / 411 MB, free: 12.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003/0.6315, allocations: 0.8432 MB / 411.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.6317, allocations: 29.7 kB / 411.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.632, allocations: 208.2 kB / 412 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.6322, allocations: 55.3 kB / 412.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.956e-05/0.6323, allocations: 8 kB / 412.1 MB, free: 11.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.6325, allocations: 326.8 kB / 412.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005013/0.633, allocations: 112 kB / 412.5 MB, free: 11.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.6335, allocations: 142.6 kB / 412.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003933/0.634, allocations: 95.89 kB / 412.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.634, allocations: 0 / 412.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001761/0.6358, allocations: 413.3 kB / 413.2 MB, free: 10.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000216/0.636, allocations: 130.8 kB / 413.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.6361, allocations: 8 kB / 413.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.6361, allocations: 0 / 413.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.6363, allocations: 15.98 kB / 413.3 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.6363, allocations: 3.938 kB / 413.3 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007538/0.6371, allocations: 35.83 kB / 413.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/0.6374, allocations: 115.9 kB / 413.5 MB, free: 10.41 MB / 362.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.0004875/0.6379, allocations: 270 kB / 413.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00207/0.64, allocations: 0.4926 MB / 414.2 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.6403, allocations: 71.16 kB / 414.3 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000646/0.641, allocations: 134.2 kB / 414.4 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.641, allocations: 7.891 kB / 414.4 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.6411, allocations: 0 / 414.4 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.6411, allocations: 0 / 414.4 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.6429, allocations: 0.5872 MB / 415 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/0.643, allocations: 0 / 415 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.6432, allocations: 12 kB / 415 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.6432, allocations: 0 / 415 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001723/0.6434, allocations: 27.98 kB / 415.1 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.6434, allocations: 0 / 415.1 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.969e-06/0.6435, allocations: 7.953 kB / 415.1 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002116/0.6456, allocations: 0.5195 MB / 415.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001919/0.6476, allocations: 0.4918 MB / 416.1 MB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003343/0.648, allocations: 20.12 kB / 416.1 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006955/0.6487, allocations: 35.97 kB / 416.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003534/0.6491, allocations: 51.94 kB / 416.2 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003032/0.6494, allocations: 123.8 kB / 416.3 MB, free: 7.453 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002578/0.652, allocations: 0.6822 MB / 417 MB, free: 6.773 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.652, allocations: 0 / 417 MB, free: 6.773 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006995/0.6528, allocations: 84 kB / 417.1 MB, free: 6.691 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.001903/0.6547, allocations: 1.103 MB / 418.2 MB, free: 5.555 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.6559, allocations: 0.6224 MB / 418.8 MB, free: 4.883 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.656, allocations: 4 kB / 418.8 MB, free: 4.879 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007737/0.6568, allocations: 0.5135 MB / 419.3 MB, free: 4.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.6581, allocations: 167.4 kB / 419.5 MB, free: 4.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.662, allocations: 1.277 MB / 420.8 MB, free: 2.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009902/0.6631, allocations: 0.9834 MB / 421.7 MB, free: 1.812 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/0.6637, allocations: 151.2 kB / 421.9 MB, free: 1.664 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6637, allocations: 0 / 421.9 MB, free: 1.664 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.108/3.771, allocations: 6.471 MB / 428.4 MB, free: 104 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat