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.874/1.874, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.931e-05/2.947e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09007/0.09012, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.433/0.5231, allocations: 78.99 MB / 378.9 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003692/0.5236, allocations: 69.62 kB / 379 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1673/0.6909, allocations: 34.56 MB / 413.5 MB, free: 6.125 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.691, allocations: 0 / 413.5 MB, free: 6.125 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.892e-05/0.691, allocations: 11.56 kB / 413.6 MB, free: 6.125 MB / 314.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.001006/0.692, allocations: 0.8768 MB / 414.4 MB, free: 5.355 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.6921, allocations: 7.75 kB / 414.4 MB, free: 5.355 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.989e-05/0.6922, allocations: 59.33 kB / 414.5 MB, free: 5.309 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.6923, allocations: 81.7 kB / 414.6 MB, free: 5.266 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006323/0.693, allocations: 408.1 kB / 415 MB, free: 4.965 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.693, allocations: 14.03 kB / 415 MB, free: 4.965 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.587e-05/0.6931, allocations: 19.03 kB / 415 MB, free: 4.965 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007028/0.6938, allocations: 293.8 kB / 415.3 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.6939, allocations: 0 / 415.3 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.294e-05/0.6939, allocations: 15 kB / 415.3 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.694, allocations: 3.938 kB / 415.3 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005355/0.6945, allocations: 201.2 kB / 415.5 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.6962, allocations: 0.8798 MB / 416.4 MB, free: 4.352 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005262/0.6967, allocations: 218.4 kB / 416.6 MB, free: 4.312 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003268/0.6971, allocations: 150.4 kB / 416.7 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.535e-05/0.6971, allocations: 3.875 kB / 416.7 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005815/0.6977, allocations: 384.3 kB / 417.1 MB, free: 4.055 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.505e-06/0.6978, allocations: 0 / 417.1 MB, free: 4.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001318/0.6991, allocations: 0.5909 MB / 417.7 MB, free: 3.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.6992, allocations: 179.7 kB / 417.9 MB, free: 3.625 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.7008, allocations: 0.8734 MB / 418.8 MB, free: 3.273 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.7009, allocations: 33.58 kB / 418.8 MB, free: 3.242 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.701, allocations: 208.5 kB / 419 MB, free: 3.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.639e-05/0.7011, allocations: 54.45 kB / 419.1 MB, free: 3.035 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.7012, allocations: 6.875 kB / 419.1 MB, free: 3.035 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.7013, allocations: 318.4 kB / 419.4 MB, free: 2.719 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003299/0.7016, allocations: 123 kB / 419.5 MB, free: 2.715 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003435/0.702, allocations: 155.7 kB / 419.6 MB, free: 2.676 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.7023, allocations: 230.2 kB / 419.9 MB, free: 2.527 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.7023, allocations: 0 / 419.9 MB, free: 2.527 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001155/0.7035, allocations: 0.546 MB / 420.4 MB, free: 2.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.126e-05/0.7036, allocations: 135.3 kB / 420.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.7036, allocations: 0 / 420.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.7037, allocations: 7.766 kB / 420.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.7038, allocations: 15.7 kB / 420.6 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.7038, allocations: 0 / 420.6 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.7043, allocations: 31.2 kB / 420.6 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.7044, allocations: 119.9 kB / 420.7 MB, free: 2.156 MB / 314.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.0002434/0.7047, allocations: 271.1 kB / 421 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.7048, allocations: 85.86 kB / 421.1 MB, free: 1.867 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003619/0.7052, allocations: 132.2 kB / 421.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.7052, allocations: 3.938 kB / 421.2 MB, free: 1.789 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.7052, allocations: 3.953 kB / 421.2 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.7053, allocations: 0 / 421.2 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008458/0.7061, allocations: 0.6239 MB / 421.8 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.7061, allocations: 0 / 421.8 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.513e-05/0.7062, allocations: 11.33 kB / 421.8 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.7062, allocations: 0 / 421.8 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.94e-05/0.7063, allocations: 26.05 kB / 421.9 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.7063, allocations: 0 / 421.9 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.7063, allocations: 7.078 kB / 421.9 MB, free: 1.391 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.7076, allocations: 0.6792 MB / 422.5 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008972/0.7085, allocations: 0.4922 MB / 423 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.7087, allocations: 18.75 kB / 423.1 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003958/0.7091, allocations: 39 kB / 423.1 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.7093, allocations: 54.05 kB / 423.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/0.7095, allocations: 116.5 kB / 423.3 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001216/0.7107, allocations: 0.7296 MB / 424 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7107, allocations: 0 / 424 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004977/0.7113, allocations: 84.34 kB / 424.1 MB, free: 0.5156 MB / 314.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.001684/0.7129, allocations: 1.251 MB / 425.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.714, allocations: 0.6432 MB / 426 MB, free: 15.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7141, allocations: 3.938 kB / 426 MB, free: 15.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006815/0.7147, allocations: 0.5151 MB / 426.5 MB, free: 15.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.7159, allocations: 175 kB / 426.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.7192, allocations: 1.299 MB / 428 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008391/0.7201, allocations: 0.9797 MB / 428.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/0.7206, allocations: 151.8 kB / 429.1 MB, free: 13.61 MB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.7206, allocations: 0 / 429.1 MB, free: 13.61 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.566/3.287, allocations: 6.482 MB / 435.6 MB, free: 10.46 MB / 330.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