Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.298/2.298, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.139e-05/3.143e-05, allocations: 4.125 kB / 249.8 MB, free: 5.219 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 44.52 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4476/0.5632, allocations: 78.31 MB / 372.6 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.5636, allocations: 72.64 kB / 372.7 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1734/0.737, allocations: 34.34 MB / 407 MB, free: 12.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.7371, allocations: 0 / 407 MB, free: 12.63 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.048e-05/0.7372, allocations: 11.88 kB / 407 MB, free: 12.62 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.002347/0.7395, allocations: 0.8721 MB / 407.9 MB, free: 11.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.299e-05/0.7396, allocations: 8.031 kB / 407.9 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003899/0.74, allocations: 79.06 kB / 408 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.7414, allocations: 408.3 kB / 408.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.27e-05/0.7415, allocations: 12 kB / 408.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.7417, allocations: 12 kB / 408.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001049/0.7428, allocations: 199.3 kB / 408.6 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.744, allocations: 270.9 kB / 408.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.7441, allocations: 0 / 408.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.7442, allocations: 4 kB / 408.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.7443, allocations: 4 kB / 408.9 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.7477, allocations: 0.8389 MB / 409.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009324/0.7486, allocations: 213.5 kB / 409.9 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005484/0.7492, allocations: 140.5 kB / 410.1 MB, free: 9.973 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.419e-05/0.7493, allocations: 3.938 kB / 410.1 MB, free: 9.969 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.7505, allocations: 381.5 kB / 410.4 MB, free: 9.617 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 4.639e-06/0.7505, allocations: 0 / 410.4 MB, free: 9.617 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002257/0.7528, allocations: 461.9 kB / 410.9 MB, free: 9.254 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001867/0.753, allocations: 175.9 kB / 411.1 MB, free: 9.051 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/0.7562, allocations: 0.8387 MB / 411.9 MB, free: 8.375 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.7564, allocations: 41.5 kB / 411.9 MB, free: 8.332 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.7566, allocations: 146.2 kB / 412.1 MB, free: 8.219 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.7569, allocations: 54.67 kB / 412.1 MB, free: 8.172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.881e-05/0.757, allocations: 11.23 kB / 412.1 MB, free: 8.164 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.7572, allocations: 337.7 kB / 412.5 MB, free: 7.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005361/0.7578, allocations: 111.4 kB / 412.6 MB, free: 7.773 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005625/0.7584, allocations: 145.2 kB / 412.7 MB, free: 7.672 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004473/0.7588, allocations: 91.89 kB / 412.8 MB, free: 7.613 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.7589, allocations: 0 / 412.8 MB, free: 7.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002005/0.7609, allocations: 432.9 kB / 413.2 MB, free: 7.285 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002073/0.7611, allocations: 132 kB / 413.4 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.7612, allocations: 4 kB / 413.4 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.7612, allocations: 0 / 413.4 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.7614, allocations: 19.92 kB / 413.4 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.7614, allocations: 0 / 413.4 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008345/0.7623, allocations: 42.7 kB / 413.4 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003527/0.7627, allocations: 111.9 kB / 413.5 MB, free: 6.969 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.0005389/0.7632, allocations: 274.1 kB / 413.8 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002211/0.7655, allocations: 0.4905 MB / 414.3 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/0.7658, allocations: 79.16 kB / 414.4 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006782/0.7665, allocations: 126.6 kB / 414.5 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.7665, allocations: 3.953 kB / 414.5 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.7665, allocations: 0 / 414.5 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.7665, allocations: 0 / 414.5 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/0.7684, allocations: 0.585 MB / 415.1 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.7685, allocations: 0 / 415.1 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.7686, allocations: 11.98 kB / 415.1 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.7687, allocations: 7.938 kB / 415.1 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001512/0.7688, allocations: 22.67 kB / 415.1 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.7688, allocations: 0 / 415.1 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/0.7689, allocations: 15.94 kB / 415.2 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.7712, allocations: 0.5187 MB / 415.7 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001954/0.7732, allocations: 0.4886 MB / 416.2 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000323/0.7736, allocations: 19.62 kB / 416.2 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006892/0.7743, allocations: 31.91 kB / 416.2 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003999/0.7747, allocations: 57.94 kB / 416.3 MB, free: 4.688 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003185/0.7751, allocations: 122.5 kB / 416.4 MB, free: 4.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002503/0.7776, allocations: 0.695 MB / 417.1 MB, free: 4.023 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.62e-07/0.7776, allocations: 0 / 417.1 MB, free: 4.023 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001055/0.7787, allocations: 80 kB / 417.2 MB, free: 3.945 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.003262/0.782, allocations: 1.091 MB / 418.2 MB, free: 2.824 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.7842, allocations: 0.6294 MB / 418.9 MB, free: 2.148 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.7842, allocations: 0 / 418.9 MB, free: 2.148 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.7856, allocations: 0.5132 MB / 419.4 MB, free: 1.586 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.7877, allocations: 163.8 kB / 419.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006456/0.7942, allocations: 1.2 MB / 420.8 MB, free: 192 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001916/0.7962, allocations: 0.9873 MB / 421.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00101/0.7973, allocations: 161.2 kB / 421.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006727/0.798, allocations: 131.2 kB / 422 MB, free: 14.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.914e-06/0.798, allocations: 0 / 422 MB, free: 14.88 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1261/0.9242, allocations: 8.553 MB / 430.6 MB, free: 6.324 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003356/0.9246, allocations: 141.4 kB / 430.7 MB, free: 6.129 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.027/3.952, allocations: 3.938 kB / 430.7 MB, free: 6.125 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat