Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.907e-05/3.912e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.256, allocations: 38.77 MB / 263.9 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.3863, allocations: 73.68 MB / 337.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.3866, allocations: 75.81 kB / 337.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3352/0.7218, allocations: 34.55 MB / 372.2 MB, free: 88.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.7219, allocations: 0 / 372.2 MB, free: 88.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.706e-05/0.7219, allocations: 15.27 kB / 372.2 MB, free: 88.66 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.0009748/0.7229, allocations: 0.8662 MB / 373 MB, free: 88.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.7229, allocations: 8.656 kB / 373 MB, free: 88.14 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.515e-05/0.723, allocations: 67.23 kB / 373.1 MB, free: 88.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.7232, allocations: 81.12 kB / 373.2 MB, free: 88.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006457/0.7239, allocations: 396.8 kB / 373.6 MB, free: 87.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.518e-05/0.7239, allocations: 22.27 kB / 373.6 MB, free: 87.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.455e-05/0.724, allocations: 19.12 kB / 373.6 MB, free: 87.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007111/0.7247, allocations: 288.9 kB / 373.9 MB, free: 87.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.7248, allocations: 0 / 373.9 MB, free: 87.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.219e-05/0.7248, allocations: 7.406 kB / 373.9 MB, free: 87.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.7249, allocations: 3.719 kB / 373.9 MB, free: 87.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005702/0.7254, allocations: 204.8 kB / 374.1 MB, free: 87.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.7272, allocations: 0.8889 MB / 375 MB, free: 87.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005232/0.7277, allocations: 213.7 kB / 375.2 MB, free: 87.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.7281, allocations: 153.8 kB / 375.4 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.159e-05/0.7281, allocations: 3.938 kB / 375.4 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005801/0.7287, allocations: 377.7 kB / 375.7 MB, free: 87.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.745e-06/0.7287, allocations: 0 / 375.7 MB, free: 87.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001305/0.7301, allocations: 0.5947 MB / 376.3 MB, free: 87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.504e-05/0.7301, allocations: 174.4 kB / 376.5 MB, free: 86.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.7318, allocations: 0.8776 MB / 377.4 MB, free: 86.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.486e-05/0.7318, allocations: 31.7 kB / 377.4 MB, free: 86.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.732, allocations: 208.6 kB / 377.6 MB, free: 86.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.55e-05/0.7321, allocations: 53.41 kB / 377.7 MB, free: 86.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/0.7321, allocations: 8.031 kB / 377.7 MB, free: 86.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.023e-05/0.7322, allocations: 326.1 kB / 378 MB, free: 86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003309/0.7326, allocations: 125.2 kB / 378.1 MB, free: 86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.7329, allocations: 148 kB / 378.2 MB, free: 85.97 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003681/0.7333, allocations: 218.3 kB / 378.5 MB, free: 85.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.7333, allocations: 0 / 378.5 MB, free: 85.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001164/0.7345, allocations: 0.5416 MB / 379 MB, free: 85.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.606e-05/0.7346, allocations: 133.2 kB / 379.1 MB, free: 85.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.7346, allocations: 0 / 379.1 MB, free: 85.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.676e-05/0.7347, allocations: 3.719 kB / 379.1 MB, free: 85.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.7348, allocations: 18.17 kB / 379.2 MB, free: 85.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.7348, allocations: 3.844 kB / 379.2 MB, free: 85.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.7353, allocations: 34 kB / 379.2 MB, free: 85.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.7355, allocations: 116.4 kB / 379.3 MB, free: 85.55 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.0002857/0.7358, allocations: 275.1 kB / 379.6 MB, free: 85.31 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.736, allocations: 78.22 kB / 379.7 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003904/0.7364, allocations: 134.3 kB / 379.8 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.7364, allocations: 7.172 kB / 379.8 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.7364, allocations: 0 / 379.8 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.7364, allocations: 0 / 379.8 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.7374, allocations: 0.6311 MB / 380.4 MB, free: 84.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.7374, allocations: 3.938 kB / 380.4 MB, free: 84.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.882e-05/0.7375, allocations: 10.53 kB / 380.4 MB, free: 84.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.7376, allocations: 0 / 380.4 MB, free: 84.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.95e-05/0.7376, allocations: 27.34 kB / 380.5 MB, free: 84.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.7377, allocations: 7.938 kB / 380.5 MB, free: 84.92 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.7377, allocations: 0 / 380.5 MB, free: 84.92 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.739, allocations: 0.6746 MB / 381.1 MB, free: 84.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009405/0.74, allocations: 0.495 MB / 381.6 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.7402, allocations: 24.75 kB / 381.7 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004084/0.7406, allocations: 21.78 kB / 381.7 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.7408, allocations: 60.52 kB / 381.7 MB, free: 84.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.741, allocations: 117.2 kB / 381.9 MB, free: 84.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001307/0.7423, allocations: 0.7198 MB / 382.6 MB, free: 84.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7423, allocations: 0 / 382.6 MB, free: 84.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005341/0.7429, allocations: 85.84 kB / 382.7 MB, free: 84.2 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.001623/0.7445, allocations: 1.267 MB / 383.9 MB, free: 83.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.7455, allocations: 0.6422 MB / 384.6 MB, free: 82.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7456, allocations: 0 / 384.6 MB, free: 82.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006024/0.7462, allocations: 0.5202 MB / 385.1 MB, free: 82.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.7473, allocations: 168.3 kB / 385.3 MB, free: 82.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.7504, allocations: 1.305 MB / 386.6 MB, free: 81.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006772/0.7511, allocations: 0.9888 MB / 387.5 MB, free: 80.92 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004359/0.7515, allocations: 146.5 kB / 387.7 MB, free: 80.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.272e-06/0.7515, allocations: 0 / 387.7 MB, free: 80.82 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.465/3.216, allocations: 6.479 MB / 394.2 MB, free: 76.69 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat