Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.9 MB / 208 MB, free: 3.277 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.169e-05/3.194e-05, allocations: 0 / 255.4 MB, free: 2.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09345/0.09352, allocations: 44.52 MB / 300 MB, free: 6.09 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3981/0.4916, allocations: 78.98 MB / 378.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.492, allocations: 77.45 kB / 379 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1046/0.5966, allocations: 34.54 MB / 413.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5967, allocations: 0 / 413.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.94e-05/0.5967, allocations: 19.69 kB / 413.6 MB, free: 6.488 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.001049/0.5978, allocations: 0.8748 MB / 414.5 MB, free: 5.727 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.5978, allocations: 7.75 kB / 414.5 MB, free: 5.727 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.598, allocations: 53.3 kB / 414.5 MB, free: 5.684 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.5981, allocations: 81.89 kB / 414.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007633/0.5989, allocations: 403.6 kB / 415 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.599, allocations: 17.22 kB / 415 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.73e-05/0.5991, allocations: 18.69 kB / 415 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007468/0.5998, allocations: 296.6 kB / 415.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.5999, allocations: 0 / 415.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.487e-05/0.6, allocations: 18.59 kB / 415.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.6, allocations: 3.875 kB / 415.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005458/0.6005, allocations: 199.7 kB / 415.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.6024, allocations: 0.8823 MB / 416.4 MB, free: 4.723 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005915/0.6031, allocations: 211.7 kB / 416.6 MB, free: 4.688 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003299/0.6034, allocations: 153 kB / 416.8 MB, free: 4.676 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.6035, allocations: 0 / 416.8 MB, free: 4.676 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005856/0.6041, allocations: 389.3 kB / 417.2 MB, free: 4.426 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.745e-06/0.6041, allocations: 0 / 417.2 MB, free: 4.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001299/0.6054, allocations: 0.5921 MB / 417.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.459e-05/0.6055, allocations: 171.6 kB / 417.9 MB, free: 4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/0.6072, allocations: 0.8758 MB / 418.8 MB, free: 3.645 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.899e-05/0.6072, allocations: 36.02 kB / 418.8 MB, free: 3.613 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.6074, allocations: 158.6 kB / 419 MB, free: 3.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.6075, allocations: 54.11 kB / 419 MB, free: 3.465 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.6075, allocations: 7.812 kB / 419 MB, free: 3.465 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.289e-05/0.6076, allocations: 337.4 kB / 419.4 MB, free: 3.145 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.608, allocations: 121.2 kB / 419.5 MB, free: 3.137 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.6083, allocations: 152.5 kB / 419.6 MB, free: 3.102 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003324/0.6087, allocations: 220.8 kB / 419.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.6087, allocations: 0 / 419.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001168/0.6099, allocations: 0.5675 MB / 420.4 MB, free: 2.742 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.269e-05/0.61, allocations: 136.9 kB / 420.6 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.61, allocations: 0 / 420.6 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.61, allocations: 3.953 kB / 420.6 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.6101, allocations: 15.73 kB / 420.6 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.6102, allocations: 0 / 420.6 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.6107, allocations: 39.03 kB / 420.6 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.6109, allocations: 112.1 kB / 420.7 MB, free: 2.582 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.0002634/0.6111, allocations: 279 kB / 421 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.6113, allocations: 82.03 kB / 421.1 MB, free: 2.285 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003801/0.6117, allocations: 134.3 kB / 421.2 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.6117, allocations: 0 / 421.2 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.6117, allocations: 7.797 kB / 421.2 MB, free: 2.207 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.6117, allocations: 0 / 421.2 MB, free: 2.207 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009013/0.6126, allocations: 0.6249 MB / 421.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.6127, allocations: 0 / 421.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.485e-05/0.6128, allocations: 7.656 kB / 421.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.6128, allocations: 0 / 421.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.249e-05/0.6129, allocations: 26.98 kB / 421.9 MB, free: 1.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.6129, allocations: 3.938 kB / 421.9 MB, free: 1.816 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6129, allocations: 3.953 kB / 421.9 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.6142, allocations: 0.6742 MB / 422.6 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.6153, allocations: 0.4905 MB / 423 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.6155, allocations: 27.3 kB / 423.1 MB, free: 1.266 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.6159, allocations: 27.42 kB / 423.1 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.6161, allocations: 61.5 kB / 423.2 MB, free: 1.234 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001443/0.6163, allocations: 116 kB / 423.3 MB, free: 1.223 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001328/0.6176, allocations: 0.7278 MB / 424 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6177, allocations: 192 / 424 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005332/0.6182, allocations: 84.81 kB / 424.1 MB, free: 0.9414 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.001688/0.6199, allocations: 1.258 MB / 425.3 MB, free: 128 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.621, allocations: 0.6453 MB / 426 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.621, allocations: 3.938 kB / 426 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.6217, allocations: 0.526 MB / 426.5 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.6229, allocations: 153.8 kB / 426.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.6263, allocations: 1.224 MB / 427.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001074/0.6274, allocations: 0.976 MB / 428.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005263/0.6279, allocations: 166.6 kB / 429 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.6283, allocations: 132.2 kB / 429.2 MB, free: 13.97 MB / 330.7 MB Notification: Performance of SimCode: time 3.566e-06/0.6283, allocations: 0 / 429.2 MB, free: 13.97 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04397/0.6723, allocations: 9.124 MB / 438.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004081/0.6728, allocations: 152.6 kB / 438.4 MB, free: 7.926 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.646/3.318, allocations: 0 / 438.4 MB, free: 7.926 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat