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.476/2.476, allocations: 195 MB / 202.9 MB, free: 6.641 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.091e-05, allocations: 4.125 kB / 249.8 MB, free: 5.312 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6208/0.7302, allocations: 78.33 MB / 372.6 MB, free: 7.156 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000376/0.7307, allocations: 68.2 kB / 372.7 MB, free: 7.156 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2086/0.9392, allocations: 34.33 MB / 407 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.471e-06/0.9393, allocations: 4 kB / 407 MB, free: 12.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.616e-05/0.9394, allocations: 11.94 kB / 407 MB, free: 12.8 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.002355/0.9417, allocations: 0.869 MB / 407.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.721e-05/0.9418, allocations: 8.031 kB / 407.9 MB, free: 11.9 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002356/0.9421, allocations: 54.23 kB / 407.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003371/0.9425, allocations: 83.02 kB / 408 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.9438, allocations: 397.9 kB / 408.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.1e-05/0.9439, allocations: 14.56 kB / 408.4 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.9441, allocations: 12 kB / 408.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001079/0.9452, allocations: 197.3 kB / 408.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.9465, allocations: 280.9 kB / 408.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.9465, allocations: 0 / 408.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.9467, allocations: 4 kB / 408.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.9467, allocations: 4 kB / 408.9 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.95, allocations: 0.846 MB / 409.8 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009025/0.951, allocations: 201.7 kB / 409.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005668/0.9516, allocations: 146.1 kB / 410.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.143e-05/0.9517, allocations: 11.94 kB / 410.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001115/0.9528, allocations: 368.7 kB / 410.5 MB, free: 9.742 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 5.851e-06/0.9529, allocations: 0 / 410.5 MB, free: 9.742 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002259/0.9551, allocations: 466.1 kB / 410.9 MB, free: 9.375 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001779/0.9553, allocations: 168.8 kB / 411.1 MB, free: 9.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00319/0.9585, allocations: 0.8399 MB / 411.9 MB, free: 8.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.9588, allocations: 33.2 kB / 412 MB, free: 8.465 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.959, allocations: 154.6 kB / 412.1 MB, free: 8.344 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.9593, allocations: 57.55 kB / 412.2 MB, free: 8.297 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.664e-05/0.9594, allocations: 4 kB / 412.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.9596, allocations: 337.1 kB / 412.5 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005545/0.9602, allocations: 116.5 kB / 412.6 MB, free: 7.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006038/0.9608, allocations: 146.2 kB / 412.8 MB, free: 7.797 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004309/0.9613, allocations: 83.91 kB / 412.8 MB, free: 7.746 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.9613, allocations: 8 kB / 412.8 MB, free: 7.738 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002103/0.9634, allocations: 430.3 kB / 413.3 MB, free: 7.414 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.9637, allocations: 137.2 kB / 413.4 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.9637, allocations: 0 / 413.4 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.9637, allocations: 0 / 413.4 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.9639, allocations: 15.94 kB / 413.4 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.964, allocations: 3.953 kB / 413.4 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009223/0.9649, allocations: 35.88 kB / 413.4 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003266/0.9652, allocations: 115.3 kB / 413.6 MB, free: 7.102 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.0005737/0.9658, allocations: 268.2 kB / 413.8 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003167/0.9662, allocations: 79.06 kB / 413.9 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007218/0.9669, allocations: 132.8 kB / 414 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.967, allocations: 0 / 414 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.967, allocations: 3.938 kB / 414 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.967, allocations: 8 kB / 414 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.9691, allocations: 0.5907 MB / 414.6 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.9691, allocations: 0 / 414.6 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.9693, allocations: 9.188 kB / 414.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.874e-06/0.9693, allocations: 0 / 414.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/0.9695, allocations: 26.98 kB / 414.7 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.9695, allocations: 0 / 414.7 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.9695, allocations: 0 / 414.7 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.972, allocations: 0.53 MB / 415.2 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002179/0.9742, allocations: 0.4935 MB / 415.7 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000308/0.9746, allocations: 21.94 kB / 415.7 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007486/0.9753, allocations: 32.08 kB / 415.7 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000418/0.9758, allocations: 53.3 kB / 415.8 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003454/0.9761, allocations: 124 kB / 415.9 MB, free: 5.086 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002861/0.979, allocations: 0.685 MB / 416.6 MB, free: 4.512 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.433e-06/0.9791, allocations: 0 / 416.6 MB, free: 4.512 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001183/0.9803, allocations: 80 kB / 416.7 MB, free: 4.434 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.003274/0.9836, allocations: 1.111 MB / 417.8 MB, free: 3.293 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.9858, allocations: 0.6147 MB / 418.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.9859, allocations: 0 / 418.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.9873, allocations: 0.5129 MB / 418.9 MB, free: 2.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.9897, allocations: 162.8 kB / 419.1 MB, free: 1.918 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006547/0.9963, allocations: 1.212 MB / 420.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001866/0.9982, allocations: 0.9796 MB / 421.3 MB, free: 15.65 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001005/0.9993, allocations: 165.2 kB / 421.4 MB, free: 15.49 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006784/1, allocations: 139.2 kB / 421.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.793e-06/1, allocations: 0 / 421.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/1.11, allocations: 8.894 MB / 430.5 MB, free: 6.457 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003823/1.11, allocations: 141.4 kB / 430.6 MB, free: 6.262 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.341/4.452, allocations: 0 / 430.6 MB, free: 6.262 MB / 330.7 MB "" Variables in the reference:time,Adder.AND.G2.x,Adder.AND.G2.y,Adder.XOR.G2.x,Adder.XOR.G2.y Variables in the result:Adder.AND.G1.auxiliary[1],Adder.AND.G1.auxiliary[2],Adder.AND.G1.auxiliary_n,Adder.AND.G1.n,Adder.AND.G1.x[1],Adder.AND.G1.x[2],Adder.AND.G1.y,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.tHL,Adder.AND.G2.tLH,Adder.AND.G2.t_next,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.y0,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.n,Adder.AND.tHL,Adder.AND.tLH,Adder.AND.x[1],Adder.AND.x[2],Adder.AND.y,Adder.AND.y0,Adder.XOR.G1.auxiliary[1],Adder.XOR.G1.auxiliary[2],Adder.XOR.G1.auxiliary_n,Adder.XOR.G1.n,Adder.XOR.G1.x[1],Adder.XOR.G1.x[2],Adder.XOR.G1.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.tHL,Adder.XOR.G2.tLH,Adder.XOR.G2.t_next,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.y0,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.n,Adder.XOR.tHL,Adder.XOR.tLH,Adder.XOR.x[1],Adder.XOR.x[2],Adder.XOR.y,Adder.XOR.y0,Adder.a,Adder.b,Adder.c,Adder.delayTime,Adder.s,_D_whenCondition1,_D_whenCondition2,_D_whenCondition3,_D_whenCondition4,a.n,a.t[1],a.t[2],a.t[3],a.t[4],a.x[1],a.x[2],a.x[3],a.x[4],a.y,a.y0,b.n,b.t[1],b.t[2],b.x[1],b.x[2],b.y,b.y0,c.n,c.value_0,c.value_1,c.value_H,c.value_L,c.value_U,c.value_W,c.value_X,c.value_Z,c.value_m,c.x[1],c.y[1],s.n,s.value_0,s.value_1,s.value_H,s.value_L,s.value_U,s.value_W,s.value_X,s.value_Z,s.value_m,s.x[1],s.y[1],time