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.626/1.626, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.177e-05/3.202e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2755, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1314/0.407, allocations: 73.68 MB / 337.5 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.4074, allocations: 71.97 kB / 337.6 MB, free: 16 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3409/0.7483, allocations: 34.55 MB / 372.1 MB, free: 88.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7483, allocations: 0 / 372.1 MB, free: 88.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.443e-05/0.7484, allocations: 12.53 kB / 372.1 MB, free: 88.64 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.00128/0.7497, allocations: 0.8777 MB / 373 MB, free: 88.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.7497, allocations: 7.781 kB / 373 MB, free: 88.12 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001694/0.7499, allocations: 55.55 kB / 373.1 MB, free: 88.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.7501, allocations: 81.97 kB / 373.2 MB, free: 88.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008247/0.7509, allocations: 399.4 kB / 373.5 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-05/0.751, allocations: 22.06 kB / 373.6 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.7e-05/0.7511, allocations: 22.25 kB / 373.6 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007604/0.7519, allocations: 292.2 kB / 373.9 MB, free: 87.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.7519, allocations: 0 / 373.9 MB, free: 87.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.752, allocations: 7.688 kB / 373.9 MB, free: 87.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.752, allocations: 3.875 kB / 373.9 MB, free: 87.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005585/0.7526, allocations: 206.8 kB / 374.1 MB, free: 87.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.7546, allocations: 0.8823 MB / 375 MB, free: 87.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006147/0.7553, allocations: 227.4 kB / 375.2 MB, free: 87.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003495/0.7556, allocations: 153.1 kB / 375.3 MB, free: 87.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.747e-05/0.7557, allocations: 0 / 375.3 MB, free: 87.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006154/0.7563, allocations: 373.5 kB / 375.7 MB, free: 87.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.076e-06/0.7564, allocations: 0 / 375.7 MB, free: 87.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001357/0.7577, allocations: 0.5901 MB / 376.3 MB, free: 86.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/0.7579, allocations: 181.5 kB / 376.5 MB, free: 86.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.7597, allocations: 0.874 MB / 377.3 MB, free: 86.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.7599, allocations: 36.2 kB / 377.4 MB, free: 86.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.76, allocations: 208.4 kB / 377.6 MB, free: 86.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.7602, allocations: 61.75 kB / 377.6 MB, free: 86.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.7e-05/0.7602, allocations: 6.094 kB / 377.6 MB, free: 86.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.109e-05/0.7603, allocations: 326.3 kB / 378 MB, free: 85.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.7606, allocations: 122.4 kB / 378.1 MB, free: 85.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.761, allocations: 151.8 kB / 378.2 MB, free: 85.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/0.7614, allocations: 218.5 kB / 378.4 MB, free: 85.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.7614, allocations: 2.25 kB / 378.5 MB, free: 85.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001187/0.7626, allocations: 0.5405 MB / 379 MB, free: 85.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.7627, allocations: 137.9 kB / 379.1 MB, free: 85.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.7628, allocations: 0 / 379.1 MB, free: 85.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.7628, allocations: 0 / 379.1 MB, free: 85.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.7629, allocations: 16.12 kB / 379.1 MB, free: 85.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.7629, allocations: 3.422 kB / 379.1 MB, free: 85.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005614/0.7635, allocations: 37.14 kB / 379.2 MB, free: 85.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.7637, allocations: 117.2 kB / 379.3 MB, free: 85.53 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.0002963/0.764, allocations: 271.1 kB / 379.6 MB, free: 85.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.7642, allocations: 79.78 kB / 379.6 MB, free: 85.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003818/0.7646, allocations: 129.4 kB / 379.8 MB, free: 85.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.7646, allocations: 0 / 379.8 MB, free: 85.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.7646, allocations: 0 / 379.8 MB, free: 85.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.7646, allocations: 3.625 kB / 379.8 MB, free: 85.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.7657, allocations: 0.6291 MB / 380.4 MB, free: 84.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.7658, allocations: 0 / 380.4 MB, free: 84.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.7659, allocations: 9.438 kB / 380.4 MB, free: 84.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/0.7659, allocations: 3.281 kB / 380.4 MB, free: 84.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.766, allocations: 27.77 kB / 380.4 MB, free: 84.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.766, allocations: 0 / 380.4 MB, free: 84.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7661, allocations: 7.188 kB / 380.4 MB, free: 84.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.7675, allocations: 0.677 MB / 381.1 MB, free: 84.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.7688, allocations: 0.4974 MB / 381.6 MB, free: 84.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.769, allocations: 21.06 kB / 381.6 MB, free: 84.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004374/0.7695, allocations: 26.66 kB / 381.7 MB, free: 84.49 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.7697, allocations: 57.81 kB / 381.7 MB, free: 84.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/0.7699, allocations: 113.7 kB / 381.8 MB, free: 84.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001478/0.7714, allocations: 0.7278 MB / 382.6 MB, free: 84.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.7714, allocations: 0 / 382.6 MB, free: 84.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006344/0.772, allocations: 85.72 kB / 382.6 MB, free: 84.23 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.001774/0.7738, allocations: 1.264 MB / 383.9 MB, free: 83.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.775, allocations: 0.642 MB / 384.5 MB, free: 82.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.7751, allocations: 0 / 384.5 MB, free: 82.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006842/0.7758, allocations: 0.5262 MB / 385.1 MB, free: 82.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.7771, allocations: 172.2 kB / 385.2 MB, free: 82.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.7807, allocations: 1.296 MB / 386.5 MB, free: 81.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007502/0.7815, allocations: 0.9838 MB / 387.5 MB, free: 80.96 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004866/0.782, allocations: 150.8 kB / 387.7 MB, free: 80.86 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7821, allocations: 0 / 387.7 MB, free: 80.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.737/3.519, allocations: 6.493 MB / 394.2 MB, free: 76.84 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