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.782/1.782, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.94e-05/2.937e-05, allocations: 8 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2569, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.3828, allocations: 73.01 MB / 331.3 MB, free: 4.809 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.3831, allocations: 63.97 kB / 331.4 MB, free: 4.746 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1175/0.5006, allocations: 34.32 MB / 365.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.228e-06/0.5007, allocations: 0 / 365.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.853e-05/0.5007, allocations: 19.88 kB / 365.7 MB, free: 2.426 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.001202/0.5019, allocations: 0.874 MB / 366.6 MB, free: 1.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.502, allocations: 12.03 kB / 366.6 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.5022, allocations: 79.06 kB / 366.7 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007496/0.5029, allocations: 391.7 kB / 367.1 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.503, allocations: 19.95 kB / 367.1 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.823e-05/0.5031, allocations: 12 kB / 367.1 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005547/0.5036, allocations: 191.9 kB / 367.3 MB, free: 0.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.5043, allocations: 277.2 kB / 367.6 MB, free: 484 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.5044, allocations: 4 kB / 367.6 MB, free: 480 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.346e-05/0.5044, allocations: 8 kB / 367.6 MB, free: 472 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.5044, allocations: 0 / 367.6 MB, free: 472 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.208/0.7125, allocations: 0.8423 MB / 368.4 MB, free: 89.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006629/0.7132, allocations: 205.6 kB / 368.6 MB, free: 89.21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003529/0.7136, allocations: 145.9 kB / 368.8 MB, free: 89.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.7136, allocations: 1.188 kB / 368.8 MB, free: 89.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006823/0.7143, allocations: 369.8 kB / 369.1 MB, free: 89.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.196e-06/0.7144, allocations: 0.5625 kB / 369.1 MB, free: 89.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001482/0.7159, allocations: 468.5 kB / 369.6 MB, free: 88.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.383e-05/0.716, allocations: 171.4 kB / 369.7 MB, free: 88.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.7176, allocations: 0.8489 MB / 370.6 MB, free: 88.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.7178, allocations: 34.64 kB / 370.6 MB, free: 88.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.7179, allocations: 204.1 kB / 370.8 MB, free: 88.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.718, allocations: 52.88 kB / 370.9 MB, free: 88.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-05/0.7181, allocations: 7.25 kB / 370.9 MB, free: 88.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.532e-05/0.7181, allocations: 321.1 kB / 371.2 MB, free: 87.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.7185, allocations: 111.4 kB / 371.3 MB, free: 87.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.7188, allocations: 149.9 kB / 371.5 MB, free: 87.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/0.7191, allocations: 92.92 kB / 371.5 MB, free: 87.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.7191, allocations: 0 / 371.5 MB, free: 87.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001062/0.7201, allocations: 413.4 kB / 372 MB, free: 87.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.7203, allocations: 134.2 kB / 372.1 MB, free: 87.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.7203, allocations: 1.344 kB / 372.1 MB, free: 87.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.7203, allocations: 1.906 kB / 372.1 MB, free: 87.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.7205, allocations: 14.03 kB / 372.1 MB, free: 87.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.7205, allocations: 2.094 kB / 372.1 MB, free: 87.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.721, allocations: 41.08 kB / 372.1 MB, free: 87.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/0.7212, allocations: 115.5 kB / 372.3 MB, free: 87.8 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.0002797/0.7215, allocations: 260.2 kB / 372.5 MB, free: 87.56 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0013/0.7228, allocations: 0.506 MB / 373 MB, free: 87.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.723, allocations: 82.31 kB / 373.1 MB, free: 87.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004061/0.7234, allocations: 127.3 kB / 373.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.7234, allocations: 1.094 kB / 373.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.7234, allocations: 0.875 kB / 373.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.7234, allocations: 3.75 kB / 373.2 MB, free: 87.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009837/0.7244, allocations: 0.585 MB / 373.8 MB, free: 87.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.7245, allocations: 0 / 373.8 MB, free: 87.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.456e-05/0.7246, allocations: 9.875 kB / 373.8 MB, free: 87.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.413e-06/0.7246, allocations: 0 / 373.8 MB, free: 87.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-05/0.7247, allocations: 34.83 kB / 373.9 MB, free: 87.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.7247, allocations: 0 / 373.9 MB, free: 87.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.7247, allocations: 1.375 kB / 373.9 MB, free: 87.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.726, allocations: 0.5212 MB / 374.4 MB, free: 87.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.7272, allocations: 0.4913 MB / 374.9 MB, free: 86.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.7274, allocations: 23.97 kB / 374.9 MB, free: 86.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.7278, allocations: 29.2 kB / 374.9 MB, free: 86.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.728, allocations: 56.02 kB / 375 MB, free: 86.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/0.7282, allocations: 115.2 kB / 375.1 MB, free: 86.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001257/0.7295, allocations: 0.6905 MB / 375.8 MB, free: 86.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7295, allocations: 0 / 375.8 MB, free: 86.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006272/0.7301, allocations: 77.62 kB / 375.9 MB, free: 86.64 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.001465/0.7316, allocations: 1.106 MB / 377 MB, free: 86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000924/0.7326, allocations: 0.6239 MB / 377.6 MB, free: 85.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.7326, allocations: 2.688 kB / 377.6 MB, free: 85.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005435/0.7331, allocations: 0.5132 MB / 378.1 MB, free: 85.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.7343, allocations: 173.6 kB / 378.3 MB, free: 85.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.7375, allocations: 1.286 MB / 379.6 MB, free: 85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006891/0.7382, allocations: 0.9818 MB / 380.5 MB, free: 84.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004701/0.7387, allocations: 149.8 kB / 380.7 MB, free: 84.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7388, allocations: 3.844 kB / 380.7 MB, free: 84.19 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.724/3.462, allocations: 6.462 MB / 387.1 MB, free: 83.74 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