Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.252e-05/3.241e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3558, allocations: 44.5 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1678/0.5236, allocations: 78.33 MB / 372.6 MB, free: 3.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.5239, allocations: 71.97 kB / 372.6 MB, free: 3.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1348/0.6588, allocations: 34.31 MB / 406.9 MB, free: 1.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.6588, allocations: 0 / 406.9 MB, free: 1.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.278e-05/0.6589, allocations: 8 kB / 406.9 MB, free: 1.129 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.001222/0.6601, allocations: 0.8833 MB / 407.8 MB, free: 180 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.6601, allocations: 8.031 kB / 407.8 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.6603, allocations: 87.06 kB / 407.9 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007614/0.6611, allocations: 399.6 kB / 408.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/0.6612, allocations: 15.98 kB / 408.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.119e-05/0.6613, allocations: 12 kB / 408.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005661/0.6618, allocations: 191.9 kB / 408.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007028/0.6626, allocations: 273.2 kB / 408.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.6626, allocations: 4 kB / 408.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.6627, allocations: 4 kB / 408.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.6627, allocations: 4 kB / 408.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.6645, allocations: 0.8403 MB / 409.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.665, allocations: 210.5 kB / 409.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.6654, allocations: 144.8 kB / 410 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.6654, allocations: 0 / 410 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006511/0.6661, allocations: 373.9 kB / 410.4 MB, free: 13.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 4.328e-06/0.6661, allocations: 3.984 kB / 410.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001273/0.6674, allocations: 472.6 kB / 410.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.6675, allocations: 174.2 kB / 411 MB, free: 12.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/0.6692, allocations: 0.8432 MB / 411.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.142e-05/0.6693, allocations: 33.7 kB / 411.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.6694, allocations: 149.8 kB / 412 MB, free: 11.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.6696, allocations: 55.36 kB / 412.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.6696, allocations: 8 kB / 412.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.6698, allocations: 338.8 kB / 412.4 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.6701, allocations: 115.9 kB / 412.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.6705, allocations: 138.5 kB / 412.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.6707, allocations: 95.95 kB / 412.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.6708, allocations: 0 / 412.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001136/0.6719, allocations: 429.2 kB / 413.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.672, allocations: 134.7 kB / 413.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.6721, allocations: 8 kB / 413.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.6721, allocations: 0 / 413.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.6722, allocations: 15.98 kB / 413.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.6722, allocations: 0 / 413.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.6727, allocations: 39.77 kB / 413.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.6729, allocations: 115.9 kB / 413.5 MB, free: 10.27 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.0003117/0.6732, allocations: 266 kB / 413.7 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001303/0.6745, allocations: 0.4926 MB / 414.2 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.6747, allocations: 75.16 kB / 414.3 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003388/0.675, allocations: 130.1 kB / 414.4 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.6751, allocations: 3.953 kB / 414.4 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.6751, allocations: 0 / 414.4 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.6751, allocations: 4 kB / 414.4 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.6761, allocations: 0.5872 MB / 415 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.6762, allocations: 4 kB / 415 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.725e-05/0.6762, allocations: 8 kB / 415 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.6763, allocations: 4 kB / 415 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-05/0.6764, allocations: 23.98 kB / 415.1 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.6764, allocations: 4 kB / 415.1 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.6764, allocations: 3.953 kB / 415.1 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.6777, allocations: 0.5156 MB / 415.6 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.6788, allocations: 0.4919 MB / 416.1 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.679, allocations: 31.98 kB / 416.1 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.6794, allocations: 23.98 kB / 416.1 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002304/0.6796, allocations: 55.94 kB / 416.2 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/0.6798, allocations: 119.8 kB / 416.3 MB, free: 7.324 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00135/0.6812, allocations: 0.69 MB / 417 MB, free: 6.637 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6812, allocations: 0 / 417 MB, free: 6.637 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005407/0.6817, allocations: 80 kB / 417.1 MB, free: 6.559 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.001728/0.6835, allocations: 1.11 MB / 418.2 MB, free: 5.418 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.6846, allocations: 0.6263 MB / 418.8 MB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.6846, allocations: 0 / 418.8 MB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006989/0.6853, allocations: 0.5054 MB / 419.3 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.6864, allocations: 171.7 kB / 419.5 MB, free: 4.023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.6897, allocations: 1.205 MB / 420.7 MB, free: 2.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009925/0.6907, allocations: 0.9834 MB / 421.7 MB, free: 1.758 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005216/0.6912, allocations: 156.9 kB / 421.8 MB, free: 1.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003496/0.6916, allocations: 131.2 kB / 422 MB, free: 1.477 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.6916, allocations: 4 kB / 422 MB, free: 1.473 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3481/1.04, allocations: 8.54 MB / 430.5 MB, free: 104.9 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002697/1.04, allocations: 138.8 kB / 430.6 MB, free: 104.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.463/3.503, allocations: 0 / 430.6 MB, free: 104.7 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat