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.758/1.758, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.419e-05, allocations: 7.984 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2491, allocations: 38.76 MB / 258.3 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.3747, allocations: 73.01 MB / 331.4 MB, free: 4.773 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.375, allocations: 71.97 kB / 331.4 MB, free: 4.703 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1188/0.4939, allocations: 34.32 MB / 365.7 MB, free: 2.395 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4939, allocations: 0 / 365.7 MB, free: 2.395 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.294e-05/0.4939, allocations: 12 kB / 365.8 MB, free: 2.383 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.001257/0.4952, allocations: 0.8701 MB / 366.6 MB, free: 1.441 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.4953, allocations: 8.031 kB / 366.6 MB, free: 1.434 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.4955, allocations: 79.06 kB / 366.7 MB, free: 1.355 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007391/0.4962, allocations: 395.7 kB / 367.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.4963, allocations: 15.95 kB / 367.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.394e-05/0.4964, allocations: 16 kB / 367.1 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005643/0.4969, allocations: 191.9 kB / 367.3 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006881/0.4976, allocations: 277.2 kB / 367.6 MB, free: 444 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.4977, allocations: 0 / 367.6 MB, free: 444 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.037e-05/0.4977, allocations: 8 kB / 367.6 MB, free: 436 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.4978, allocations: 4 kB / 367.6 MB, free: 432 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2205/0.7183, allocations: 0.8343 MB / 368.4 MB, free: 89.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008641/0.7192, allocations: 203.5 kB / 368.6 MB, free: 89.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004896/0.7197, allocations: 147.2 kB / 368.8 MB, free: 89.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.914e-05/0.7198, allocations: 6.484 kB / 368.8 MB, free: 89.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009348/0.7207, allocations: 375.9 kB / 369.2 MB, free: 89.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.958e-06/0.7207, allocations: 0 / 369.2 MB, free: 89.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001926/0.7227, allocations: 463.7 kB / 369.6 MB, free: 89.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.973e-05/0.7228, allocations: 174.1 kB / 369.8 MB, free: 89.1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/0.7251, allocations: 0.8427 MB / 370.6 MB, free: 88.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.7253, allocations: 31.39 kB / 370.6 MB, free: 88.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.7254, allocations: 150.1 kB / 370.8 MB, free: 88.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.7256, allocations: 59.5 kB / 370.9 MB, free: 88.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.477e-05/0.7257, allocations: 3.562 kB / 370.9 MB, free: 88.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.7258, allocations: 337.2 kB / 371.2 MB, free: 88.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004124/0.7262, allocations: 113.5 kB / 371.3 MB, free: 88.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004328/0.7267, allocations: 144.4 kB / 371.4 MB, free: 88.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003361/0.727, allocations: 91.86 kB / 371.5 MB, free: 88.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.727, allocations: 1.156 kB / 371.5 MB, free: 88.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00149/0.7286, allocations: 435.3 kB / 372 MB, free: 88.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.7287, allocations: 133.5 kB / 372.1 MB, free: 88.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.7287, allocations: 3.078 kB / 372.1 MB, free: 88.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.7288, allocations: 6.562 kB / 372.1 MB, free: 88.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.7289, allocations: 12.78 kB / 372.1 MB, free: 88.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.729, allocations: 4.984 kB / 372.1 MB, free: 88.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006639/0.7296, allocations: 38.94 kB / 372.1 MB, free: 88.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002381/0.7299, allocations: 108 kB / 372.3 MB, free: 88.16 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.0003374/0.7302, allocations: 273.8 kB / 372.5 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00166/0.7319, allocations: 0.4944 MB / 373 MB, free: 87.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.7321, allocations: 75.19 kB / 373.1 MB, free: 87.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005273/0.7327, allocations: 130.7 kB / 373.2 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.7327, allocations: 1.062 kB / 373.2 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.7327, allocations: 4.438 kB / 373.2 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.7327, allocations: 3.094 kB / 373.2 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.7341, allocations: 0.5857 MB / 373.8 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.7341, allocations: 0 / 373.8 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.7342, allocations: 14.03 kB / 373.8 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.7342, allocations: 4.25 kB / 373.8 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.599e-05/0.7343, allocations: 24.66 kB / 373.9 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.7344, allocations: 1.625 kB / 373.9 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7344, allocations: 0 / 373.9 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.7361, allocations: 0.5237 MB / 374.4 MB, free: 87.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/0.7374, allocations: 0.5019 MB / 374.9 MB, free: 87.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002378/0.7377, allocations: 21.25 kB / 374.9 MB, free: 87.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005626/0.7383, allocations: 28.78 kB / 374.9 MB, free: 87.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.7386, allocations: 54.08 kB / 375 MB, free: 87.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002039/0.7388, allocations: 116.1 kB / 375.1 MB, free: 87.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001701/0.7405, allocations: 0.6837 MB / 375.8 MB, free: 87.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.7405, allocations: 4.688 kB / 375.8 MB, free: 87.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007579/0.7413, allocations: 82.31 kB / 375.9 MB, free: 87.01 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.001929/0.7432, allocations: 1.107 MB / 377 MB, free: 86.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.7445, allocations: 0.6262 MB / 377.6 MB, free: 86.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.7445, allocations: 0 / 377.6 MB, free: 86.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.7453, allocations: 0.5111 MB / 378.1 MB, free: 85.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/0.7467, allocations: 163.9 kB / 378.3 MB, free: 85.85 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.7505, allocations: 1.21 MB / 379.5 MB, free: 85.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009847/0.7515, allocations: 0.9824 MB / 380.5 MB, free: 84.65 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006495/0.7522, allocations: 164.6 kB / 380.6 MB, free: 84.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000434/0.7526, allocations: 125.7 kB / 380.7 MB, free: 84.5 MB / 314.7 MB Notification: Performance of SimCode: time 1.683e-06/0.7527, allocations: 0 / 380.7 MB, free: 84.5 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06322/0.8159, allocations: 8.553 MB / 389.3 MB, free: 83.26 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.8161, allocations: 132.5 kB / 389.4 MB, free: 83.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.393/3.209, allocations: 0 / 389.4 MB, free: 83.07 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