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.585/1.585, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.015e-05/4.016e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2489, allocations: 38.76 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.3755, allocations: 73.68 MB / 337.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.3759, allocations: 67.97 kB / 337.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3272/0.7031, allocations: 34.55 MB / 372.2 MB, free: 88.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.7031, allocations: 0 / 372.2 MB, free: 88.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.624e-05/0.7031, allocations: 13.17 kB / 372.2 MB, free: 88.57 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.0009476/0.7041, allocations: 0.8757 MB / 373.1 MB, free: 88.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.7041, allocations: 11.66 kB / 373.1 MB, free: 88.04 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.72e-05/0.7042, allocations: 52.88 kB / 373.1 MB, free: 88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.7044, allocations: 89.56 kB / 373.2 MB, free: 87.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006166/0.705, allocations: 392.7 kB / 373.6 MB, free: 87.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.7051, allocations: 21.53 kB / 373.6 MB, free: 87.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.173e-05/0.7052, allocations: 15.09 kB / 373.6 MB, free: 87.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.7059, allocations: 289.2 kB / 373.9 MB, free: 87.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.7059, allocations: 0 / 373.9 MB, free: 87.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/0.706, allocations: 20.66 kB / 373.9 MB, free: 87.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.706, allocations: 3.938 kB / 373.9 MB, free: 87.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005212/0.7065, allocations: 204 kB / 374.1 MB, free: 87.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.7081, allocations: 0.8811 MB / 375 MB, free: 87.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005035/0.7086, allocations: 214.8 kB / 375.2 MB, free: 87.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.7089, allocations: 153.9 kB / 375.4 MB, free: 87.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-05/0.709, allocations: 3.938 kB / 375.4 MB, free: 87.28 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005383/0.7095, allocations: 376.5 kB / 375.7 MB, free: 87.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.625e-06/0.7096, allocations: 0 / 375.7 MB, free: 87.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001224/0.7108, allocations: 0.5975 MB / 376.3 MB, free: 86.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.7109, allocations: 167.7 kB / 376.5 MB, free: 86.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.7123, allocations: 0.8783 MB / 377.4 MB, free: 86.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.061e-05/0.7124, allocations: 36.67 kB / 377.4 MB, free: 86.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.722e-05/0.7125, allocations: 149.3 kB / 377.6 MB, free: 86.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.292e-05/0.7126, allocations: 61.55 kB / 377.6 MB, free: 86.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.657e-05/0.7127, allocations: 7.719 kB / 377.6 MB, free: 86.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.164e-05/0.7128, allocations: 340.2 kB / 378 MB, free: 85.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.7131, allocations: 124.6 kB / 378.1 MB, free: 85.97 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.7135, allocations: 147 kB / 378.2 MB, free: 85.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.7138, allocations: 220.5 kB / 378.4 MB, free: 85.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.7138, allocations: 0 / 378.4 MB, free: 85.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001114/0.7149, allocations: 0.558 MB / 379 MB, free: 85.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.495e-05/0.715, allocations: 139.7 kB / 379.1 MB, free: 85.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.715, allocations: 0 / 379.1 MB, free: 85.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.7151, allocations: 0 / 379.1 MB, free: 85.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.7152, allocations: 15.67 kB / 379.2 MB, free: 85.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.7152, allocations: 0.875 kB / 379.2 MB, free: 85.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004537/0.7157, allocations: 41.62 kB / 379.2 MB, free: 85.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.7158, allocations: 115.6 kB / 379.3 MB, free: 85.52 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.0002298/0.7161, allocations: 274.3 kB / 379.6 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.7162, allocations: 83.92 kB / 379.7 MB, free: 85.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/0.7165, allocations: 127.7 kB / 379.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.7165, allocations: 0 / 379.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.7165, allocations: 3.938 kB / 379.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.7165, allocations: 3.938 kB / 379.8 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008422/0.7174, allocations: 0.63 MB / 380.4 MB, free: 84.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.7174, allocations: 0 / 380.4 MB, free: 84.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.038e-05/0.7175, allocations: 19.53 kB / 380.4 MB, free: 84.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.7175, allocations: 0 / 380.4 MB, free: 84.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-05/0.7176, allocations: 24.92 kB / 380.5 MB, free: 84.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.7176, allocations: 2.953 kB / 380.5 MB, free: 84.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7176, allocations: 0 / 380.5 MB, free: 84.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.7189, allocations: 0.6753 MB / 381.1 MB, free: 84.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008687/0.7197, allocations: 0.4901 MB / 381.6 MB, free: 84.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.7199, allocations: 20.62 kB / 381.7 MB, free: 84.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003897/0.7203, allocations: 35.38 kB / 381.7 MB, free: 84.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.7205, allocations: 53.45 kB / 381.7 MB, free: 84.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.7207, allocations: 115.3 kB / 381.9 MB, free: 84.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001213/0.7219, allocations: 0.7228 MB / 382.6 MB, free: 84.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7219, allocations: 192 / 382.6 MB, free: 84.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004905/0.7224, allocations: 84.31 kB / 382.7 MB, free: 84.14 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.001535/0.724, allocations: 1.275 MB / 383.9 MB, free: 83.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009761/0.725, allocations: 0.6332 MB / 384.6 MB, free: 82.78 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.725, allocations: 4 kB / 384.6 MB, free: 82.78 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000594/0.7256, allocations: 0.5286 MB / 385.1 MB, free: 82.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.7267, allocations: 167.4 kB / 385.3 MB, free: 82.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.7294, allocations: 1.221 MB / 386.5 MB, free: 81.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/0.7301, allocations: 0.9799 MB / 387.5 MB, free: 80.93 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004288/0.7306, allocations: 165.9 kB / 387.6 MB, free: 80.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.7309, allocations: 135 kB / 387.8 MB, free: 80.73 MB / 314.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7309, allocations: 0 / 387.8 MB, free: 80.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.7648, allocations: 9.119 MB / 396.9 MB, free: 74.06 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.7651, allocations: 147 kB / 397 MB, free: 73.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/3.122, allocations: 0 / 397 MB, free: 73.84 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