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 2.059/2.059, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.36e-05, allocations: 4 kB / 255.5 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09259, allocations: 44.5 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/0.493, allocations: 78.99 MB / 378.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.4933, allocations: 72.45 kB / 379 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1064/0.5997, allocations: 34.56 MB / 413.6 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5998, allocations: 3.875 kB / 413.6 MB, free: 6.082 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.64e-05/0.5998, allocations: 7.812 kB / 413.6 MB, free: 6.082 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.001018/0.6009, allocations: 0.8699 MB / 414.5 MB, free: 5.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.6009, allocations: 11.44 kB / 414.5 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.601, allocations: 52.36 kB / 414.5 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.6012, allocations: 81.73 kB / 414.6 MB, free: 5.234 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006306/0.6018, allocations: 407.2 kB / 415 MB, free: 4.934 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.488e-05/0.6019, allocations: 22.56 kB / 415 MB, free: 4.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.619e-05/0.602, allocations: 19.25 kB / 415 MB, free: 4.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007092/0.6027, allocations: 287.7 kB / 415.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.6027, allocations: 3.984 kB / 415.3 MB, free: 4.836 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.6028, allocations: 11.69 kB / 415.3 MB, free: 4.836 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.6028, allocations: 7.812 kB / 415.3 MB, free: 4.832 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005373/0.6034, allocations: 196.7 kB / 415.5 MB, free: 4.816 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.6052, allocations: 0.8785 MB / 416.4 MB, free: 4.316 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/0.6058, allocations: 220.7 kB / 416.6 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000363/0.6062, allocations: 150.1 kB / 416.8 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.6063, allocations: 3.875 kB / 416.8 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006058/0.6069, allocations: 383.9 kB / 417.2 MB, free: 4.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 4.047e-06/0.6069, allocations: 0 / 417.2 MB, free: 4.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001336/0.6083, allocations: 0.5806 MB / 417.7 MB, free: 3.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.266e-05/0.6084, allocations: 176.6 kB / 417.9 MB, free: 3.598 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001726/0.6101, allocations: 0.8791 MB / 418.8 MB, free: 3.238 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.6103, allocations: 36.64 kB / 418.8 MB, free: 3.203 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.6104, allocations: 210.5 kB / 419 MB, free: 3.031 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.6105, allocations: 52.73 kB / 419.1 MB, free: 3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.6106, allocations: 3.844 kB / 419.1 MB, free: 3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.725e-05/0.6107, allocations: 322.4 kB / 419.4 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/0.611, allocations: 122.6 kB / 419.5 MB, free: 2.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/0.6113, allocations: 155.5 kB / 419.7 MB, free: 2.641 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.6117, allocations: 225.2 kB / 419.9 MB, free: 2.496 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.6117, allocations: 0 / 419.9 MB, free: 2.496 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001161/0.6129, allocations: 0.5413 MB / 420.4 MB, free: 2.293 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.613, allocations: 133.1 kB / 420.6 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.613, allocations: 0 / 420.6 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.6131, allocations: 11.83 kB / 420.6 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.6132, allocations: 11.72 kB / 420.6 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.6132, allocations: 3.875 kB / 420.6 MB, free: 2.152 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005006/0.6137, allocations: 35.41 kB / 420.6 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.6139, allocations: 120.1 kB / 420.7 MB, free: 2.125 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.0002593/0.6141, allocations: 266.7 kB / 421 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.6143, allocations: 77.97 kB / 421.1 MB, free: 1.844 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003822/0.6147, allocations: 135.5 kB / 421.2 MB, free: 1.766 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.6147, allocations: 7.812 kB / 421.2 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.6147, allocations: 3.953 kB / 421.2 MB, free: 1.758 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.6147, allocations: 0 / 421.2 MB, free: 1.758 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008881/0.6156, allocations: 0.6228 MB / 421.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.6156, allocations: 0 / 421.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.817e-05/0.6157, allocations: 7.75 kB / 421.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.6157, allocations: 0 / 421.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.002e-05/0.6158, allocations: 27.11 kB / 421.9 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.6158, allocations: 8 kB / 421.9 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.6158, allocations: 8.031 kB / 421.9 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.6172, allocations: 0.6823 MB / 422.6 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.6183, allocations: 498.8 kB / 423.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.6184, allocations: 19.41 kB / 423.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.6189, allocations: 35.25 kB / 423.1 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.6191, allocations: 55.08 kB / 423.2 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.6193, allocations: 116.5 kB / 423.3 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001352/0.6206, allocations: 0.7308 MB / 424 MB, free: 496 kB / 314.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.6207, allocations: 0 / 424 MB, free: 496 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005527/0.6212, allocations: 85.44 kB / 424.1 MB, free: 496 kB / 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.001727/0.623, allocations: 1.256 MB / 425.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.6241, allocations: 0.6399 MB / 426 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6241, allocations: 0 / 426 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006601/0.6248, allocations: 0.5247 MB / 426.5 MB, free: 15.13 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.626, allocations: 163.4 kB / 426.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003504/0.6295, allocations: 1.301 MB / 428 MB, free: 14.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009521/0.6305, allocations: 0.9804 MB / 429 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005079/0.631, allocations: 152.9 kB / 429.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6311, allocations: 384 / 429.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.602/3.233, allocations: 6.474 MB / 435.6 MB, free: 10.43 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