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.93/1.93, allocations: 194.9 MB / 208 MB, free: 3.27 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.001e-05/3.009e-05, allocations: 4 kB / 255.5 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09037, allocations: 44.5 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4741/0.5645, allocations: 79 MB / 379 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.5648, allocations: 72.02 kB / 379 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1503/0.7152, allocations: 34.55 MB / 413.6 MB, free: 6.012 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.7152, allocations: 0 / 413.6 MB, free: 6.012 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.781e-05/0.7152, allocations: 11.59 kB / 413.6 MB, free: 6.012 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.001031/0.7163, allocations: 0.8741 MB / 414.5 MB, free: 5.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.7163, allocations: 7.781 kB / 414.5 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.7164, allocations: 60.95 kB / 414.5 MB, free: 5.203 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.7166, allocations: 89.88 kB / 414.6 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006364/0.7173, allocations: 397.6 kB / 415 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.7173, allocations: 18.5 kB / 415 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.56e-05/0.7174, allocations: 18.81 kB / 415.1 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007258/0.7182, allocations: 291.5 kB / 415.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.7182, allocations: 0 / 415.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.7183, allocations: 14.03 kB / 415.4 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.7183, allocations: 3.906 kB / 415.4 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005341/0.7188, allocations: 198.9 kB / 415.6 MB, free: 4.746 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.7206, allocations: 0.8837 MB / 416.4 MB, free: 4.238 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.7211, allocations: 210.6 kB / 416.6 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.7215, allocations: 164.1 kB / 416.8 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.45e-05/0.7215, allocations: 7.859 kB / 416.8 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005772/0.7222, allocations: 382.5 kB / 417.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.725e-06/0.7222, allocations: 0 / 417.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001276/0.7235, allocations: 0.5913 MB / 417.8 MB, free: 3.703 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/0.7236, allocations: 173 kB / 417.9 MB, free: 3.512 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/0.7252, allocations: 0.8767 MB / 418.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.7254, allocations: 37.23 kB / 418.9 MB, free: 3.125 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.7255, allocations: 153.3 kB / 419 MB, free: 3.012 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.7256, allocations: 55.53 kB / 419.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-05/0.7257, allocations: 7.312 kB / 419.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.637e-05/0.7258, allocations: 336.9 kB / 419.4 MB, free: 2.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003306/0.7261, allocations: 122.5 kB / 419.5 MB, free: 2.652 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003326/0.7265, allocations: 150.6 kB / 419.7 MB, free: 2.617 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.7268, allocations: 227.1 kB / 419.9 MB, free: 2.473 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.7268, allocations: 0 / 419.9 MB, free: 2.473 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001159/0.728, allocations: 0.5569 MB / 420.4 MB, free: 2.262 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.577e-05/0.7281, allocations: 136.6 kB / 420.6 MB, free: 2.129 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.7281, allocations: 0 / 420.6 MB, free: 2.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.7282, allocations: 3.953 kB / 420.6 MB, free: 2.125 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.7283, allocations: 15.06 kB / 420.6 MB, free: 2.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.7283, allocations: 7.719 kB / 420.6 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.7288, allocations: 35.03 kB / 420.6 MB, free: 2.105 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.7289, allocations: 116.7 kB / 420.7 MB, free: 2.094 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.0002546/0.7292, allocations: 263.4 kB / 421 MB, free: 1.852 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.7294, allocations: 81.84 kB / 421.1 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004066/0.7298, allocations: 135 kB / 421.2 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.7298, allocations: 0 / 421.2 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.7298, allocations: 11.73 kB / 421.2 MB, free: 1.727 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.7298, allocations: 0 / 421.2 MB, free: 1.727 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009799/0.7308, allocations: 0.6216 MB / 421.9 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.7308, allocations: 0 / 421.9 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.975e-05/0.7309, allocations: 7.688 kB / 421.9 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.731, allocations: 0 / 421.9 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.329e-05/0.7311, allocations: 30.97 kB / 421.9 MB, free: 1.336 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.7311, allocations: 4 kB / 421.9 MB, free: 1.332 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.7311, allocations: 7.828 kB / 421.9 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.7325, allocations: 0.6732 MB / 422.6 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.7335, allocations: 497.4 kB / 423.1 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/0.7337, allocations: 19.56 kB / 423.1 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.7342, allocations: 43.17 kB / 423.1 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.7344, allocations: 59.25 kB / 423.2 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.7346, allocations: 120 kB / 423.3 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001353/0.7359, allocations: 0.7282 MB / 424 MB, free: 464 kB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7359, allocations: 0 / 424 MB, free: 464 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005841/0.7365, allocations: 83.44 kB / 424.1 MB, free: 464 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.002134/0.7387, allocations: 1.251 MB / 425.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.7402, allocations: 0.6387 MB / 426 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.7402, allocations: 3.781 kB / 426 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00093/0.7412, allocations: 0.5242 MB / 426.5 MB, free: 15.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.7427, allocations: 168.2 kB / 426.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.7471, allocations: 1.221 MB / 427.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.7484, allocations: 0.9793 MB / 428.9 MB, free: 13.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000752/0.7492, allocations: 166.9 kB / 429.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005045/0.7497, allocations: 131.4 kB / 429.2 MB, free: 13.49 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7497, allocations: 0 / 429.2 MB, free: 13.49 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07182/0.8216, allocations: 9.108 MB / 438.3 MB, free: 7.695 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/0.8218, allocations: 155.4 kB / 438.4 MB, free: 7.465 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.59/3.412, allocations: 0 / 438.4 MB, free: 7.465 MB / 330.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