Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.638/1.638, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.661e-05/3.677e-05, allocations: 0 / 225.1 MB, free: 2.137 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2635, allocations: 38.77 MB / 263.8 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.3919, allocations: 73.68 MB / 337.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.3922, allocations: 67.97 kB / 337.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3315/0.7237, allocations: 34.55 MB / 372.1 MB, free: 88.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.7238, allocations: 0 / 372.1 MB, free: 88.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.819e-05/0.7238, allocations: 15.92 kB / 372.2 MB, free: 88.51 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.0009679/0.7248, allocations: 0.8762 MB / 373 MB, free: 87.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.7249, allocations: 7.812 kB / 373 MB, free: 87.98 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.046e-05/0.725, allocations: 56.56 kB / 373.1 MB, free: 87.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.7251, allocations: 81.97 kB / 373.2 MB, free: 87.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006353/0.7258, allocations: 399.2 kB / 373.6 MB, free: 87.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.043e-05/0.7258, allocations: 17.62 kB / 373.6 MB, free: 87.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.79e-05/0.7259, allocations: 19 kB / 373.6 MB, free: 87.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006888/0.7266, allocations: 295.4 kB / 373.9 MB, free: 87.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.7266, allocations: 4 kB / 373.9 MB, free: 87.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.097e-05/0.7267, allocations: 14.44 kB / 373.9 MB, free: 87.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.7267, allocations: 3.938 kB / 373.9 MB, free: 87.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005359/0.7273, allocations: 199 kB / 374.1 MB, free: 87.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.7288, allocations: 0.8875 MB / 375 MB, free: 87.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.7294, allocations: 221.6 kB / 375.2 MB, free: 87.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003206/0.7297, allocations: 150.3 kB / 375.4 MB, free: 87.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.243e-05/0.7297, allocations: 0 / 375.4 MB, free: 87.22 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005488/0.7303, allocations: 385.1 kB / 375.7 MB, free: 87.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.7303, allocations: 0 / 375.7 MB, free: 87.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001226/0.7316, allocations: 0.5902 MB / 376.3 MB, free: 86.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.7316, allocations: 174.3 kB / 376.5 MB, free: 86.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001455/0.7331, allocations: 0.875 MB / 377.4 MB, free: 86.38 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.962e-05/0.7332, allocations: 36.39 kB / 377.4 MB, free: 86.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.363e-05/0.7333, allocations: 149.7 kB / 377.6 MB, free: 86.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.991e-05/0.7334, allocations: 62.92 kB / 377.6 MB, free: 86.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.591e-05/0.7334, allocations: 7.75 kB / 377.6 MB, free: 86.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.475e-05/0.7335, allocations: 340.5 kB / 378 MB, free: 85.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.7339, allocations: 118.8 kB / 378.1 MB, free: 85.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.7342, allocations: 150.3 kB / 378.2 MB, free: 85.88 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.7345, allocations: 227.5 kB / 378.4 MB, free: 85.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7346, allocations: 0 / 378.4 MB, free: 85.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001139/0.7357, allocations: 0.5517 MB / 379 MB, free: 85.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.06e-05/0.7358, allocations: 141.5 kB / 379.1 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.7358, allocations: 2.953 kB / 379.1 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.7359, allocations: 3.969 kB / 379.1 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.736, allocations: 11.75 kB / 379.1 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.736, allocations: 3.969 kB / 379.2 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004651/0.7365, allocations: 34.78 kB / 379.2 MB, free: 85.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.7366, allocations: 119.5 kB / 379.3 MB, free: 85.45 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.000237/0.7369, allocations: 275.1 kB / 379.6 MB, free: 85.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.737, allocations: 78.53 kB / 379.6 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002804/0.7373, allocations: 126.3 kB / 379.8 MB, free: 85.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.7373, allocations: 7.031 kB / 379.8 MB, free: 85.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.7373, allocations: 0 / 379.8 MB, free: 85.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.7373, allocations: 1.594 kB / 379.8 MB, free: 85.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008264/0.7382, allocations: 0.6281 MB / 380.4 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.7382, allocations: 4 kB / 380.4 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.035e-05/0.7383, allocations: 15.33 kB / 380.4 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.7383, allocations: 0 / 380.4 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.669e-05/0.7384, allocations: 25.98 kB / 380.5 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.7384, allocations: 0 / 380.5 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7384, allocations: 3.938 kB / 380.5 MB, free: 84.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.7397, allocations: 0.6822 MB / 381.1 MB, free: 84.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008966/0.7406, allocations: 0.4891 MB / 381.6 MB, free: 84.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.7408, allocations: 27.53 kB / 381.7 MB, free: 84.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.7412, allocations: 26.69 kB / 381.7 MB, free: 84.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.7414, allocations: 51.89 kB / 381.7 MB, free: 84.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.7416, allocations: 112.3 kB / 381.8 MB, free: 84.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001206/0.7428, allocations: 0.7239 MB / 382.6 MB, free: 84.08 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7428, allocations: 0 / 382.6 MB, free: 84.08 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004688/0.7433, allocations: 87.75 kB / 382.6 MB, free: 84.08 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.001541/0.7448, allocations: 1.265 MB / 383.9 MB, free: 83.17 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000987/0.7458, allocations: 0.6439 MB / 384.6 MB, free: 82.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7459, allocations: 0 / 384.6 MB, free: 82.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005972/0.7465, allocations: 0.5284 MB / 385.1 MB, free: 82.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.7475, allocations: 166.5 kB / 385.2 MB, free: 82.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00269/0.7502, allocations: 1.225 MB / 386.5 MB, free: 81.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006712/0.7509, allocations: 0.9791 MB / 387.5 MB, free: 80.87 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004406/0.7514, allocations: 167.7 kB / 387.6 MB, free: 80.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/0.7517, allocations: 131.6 kB / 387.7 MB, free: 80.67 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7517, allocations: 7.031 kB / 387.8 MB, free: 80.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03151/0.7832, allocations: 9.123 MB / 396.9 MB, free: 74.01 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/0.7834, allocations: 148.3 kB / 397 MB, free: 73.79 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/3.279, allocations: 4 kB / 397 MB, free: 73.79 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat