Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FullAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.FullAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder1.Adder1.AND.G2.x|Adder1.Adder1.AND.G2.y|Adder1.Adder1.XOR.G2.x|Adder1.Adder1.XOR.G2.y|Adder1.Adder2.AND.G2.x|Adder1.Adder2.AND.G2.y|Adder1.Adder2.XOR.G2.x|Adder1.Adder2.XOR.G2.y|Counter.FF1.RS1.TD1.x|Counter.FF1.RS2.TD1.x|Counter.FF2.RS1.TD1.x|Counter.FF2.RS2.TD1.x|Counter.FF3.RS1.TD1.x|Counter.FF3.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FullAdder") translateModel(Modelica.Electrical.Digital.Examples.FullAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder1.Adder1.AND.G2.x|Adder1.Adder1.AND.G2.y|Adder1.Adder1.XOR.G2.x|Adder1.Adder1.XOR.G2.y|Adder1.Adder2.AND.G2.x|Adder1.Adder2.AND.G2.y|Adder1.Adder2.XOR.G2.x|Adder1.Adder2.XOR.G2.y|Counter.FF1.RS1.TD1.x|Counter.FF1.RS2.TD1.x|Counter.FF2.RS1.TD1.x|Counter.FF2.RS2.TD1.x|Counter.FF3.RS1.TD1.x|Counter.FF3.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FullAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 99.92 kB / 18.41 MB, free: 4.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 187.8 kB / 19.35 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.739e-05/3.743e-05, allocations: 3.125 kB / 329.2 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FullAdder): time 0.005793/0.005843, allocations: 4.913 MB / 334.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004871/0.01073, allocations: 2.199 MB / 336.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.01181, allocations: 15.94 kB / 336.3 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007761/0.01259, allocations: 194.2 kB / 336.5 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009714/0.01358, allocations: 194.4 kB / 336.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002052/0.01569, allocations: 0.7102 MB / 337.4 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003062/0.01876, allocations: 2.087 MB / 339.5 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/0.02015, allocations: 0.786 MB / 340.3 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003384/0.02355, allocations: 2.612 MB / 342.9 MB, free: 5.566 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001851/0.02542, allocations: 1.031 MB / 343.9 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008646/0.0263, allocations: 232 kB / 344.1 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006847/0.02699, allocations: 236 kB / 344.4 MB, free: 4.074 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001835/0.02883, allocations: 2.174 MB / 346.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0007795/0.02962, allocations: 1.108 MB / 347.6 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003943/0.03003, allocations: 235.4 kB / 347.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002748/0.03031, allocations: 55.5 kB / 347.9 MB, free: 480 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 324 (294) * Number of variables: 324 (250) Notification: Performance of Bindings: time 0.006713/0.03703, allocations: 6.796 MB / 354.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0004099/0.03745, allocations: 379.2 kB / 355.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of Early Inline: time 0.005216/0.04268, allocations: 4.794 MB / 359.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of simplify1: time 0.0004635/0.04316, allocations: 255.3 kB / 360.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of Alias: time 0.006405/0.04957, allocations: 5.427 MB / 365.6 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simplify2: time 0.0004355/0.05003, allocations: 207.4 kB / 365.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of Detect States: time 0.002276/0.05232, allocations: 2.328 MB / 368.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of Events: time 0.001811/0.05414, allocations: 1.429 MB / 369.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0021/0.05625, allocations: 1.933 MB / 371.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of Causalize: time 0.2045/0.2608, allocations: 8.444 MB / 379.9 MB, free: 37.12 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.006621/0.2675, allocations: 4.79 MB / 384.7 MB, free: 36.88 MB / 318.1 MB Notification: Performance of Inline: time 0.01036/0.2779, allocations: 8.146 MB / 392.8 MB, free: 33.47 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0007493/0.2787, allocations: 419.3 kB / 393.2 MB, free: 33.2 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0009679/0.2796, allocations: 472.7 kB / 393.7 MB, free: 32.93 MB / 318.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) Adder1.Adder1.XOR.G2.y_auxiliary = Adder1.Adder1.XOR.G2.y0 ($RES_SRT_396) slice: {}; [SCAL] (1) Adder1.Adder1.XOR.G2.x = $START.Adder1.Adder1.XOR.G2.x ($RES_SRT_394) slice: {}; [SCAL] (1) Adder1.Adder1.AND.G2.y_auxiliary = Adder1.Adder1.AND.G2.y0 ($RES_SRT_391) slice: {}; [SCAL] (1) $PRE.Adder1.Adder1.AND.G1.auxiliary_n = $START.Adder1.Adder1.AND.G1.auxiliary_n ($RES_SRT_388) slice: {}; [SCAL] (1) Adder1.Adder2.XOR.G2.y_auxiliary = Adder1.Adder2.XOR.G2.y0 ($RES_SRT_386) slice: {}; [SCAL] (1) $PRE.Adder1.Adder2.XOR.G1.auxiliary_n = $START.Adder1.Adder2.XOR.G1.auxiliary_n ($RES_SRT_383) slice: {}; [SCAL] (1) Adder1.Adder2.AND.G2.y_auxiliary = Adder1.Adder2.AND.G2.y0 ($RES_SRT_381) slice: {}; [SCAL] (1) $PRE.Adder1.Adder2.AND.G1.auxiliary_n = $START.Adder1.Adder2.AND.G1.auxiliary_n ($RES_SRT_378) slice: {}; [SCAL] (1) Adder1.Adder1.XOR.G2.y0 = Adder1.Adder1.XOR.y0 ($RES_BND_452) slice: {}; [SCAL] (1) Adder1.Adder1.AND.G2.y0 = Adder1.Adder1.AND.y0 ($RES_BND_447) slice: {}; [SCAL] (1) Adder1.Adder2.XOR.G2.y0 = Adder1.Adder2.XOR.y0 ($RES_BND_442) slice: {}; [SCAL] (1) Adder1.Adder2.AND.G2.y0 = Adder1.Adder2.AND.y0 ($RES_BND_437) slice: {}; Notification: Performance of Causalize: time 0.02217/0.3018, allocations: 19.94 MB / 413.6 MB, free: 24.09 MB / 318.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [ALGO] (6) ($RES_SIM_1) [----] Adder1.Adder1.XOR.G2.y_old := if initial() or $PRE.Adder1.Adder1.XOR.G2.y == Modelica.Electrical.Digital.Interfaces.Logic.'U' then Adder1.Adder1.XOR.G2.y0 else $PRE.Adder1.Adder1.XOR.G2.y; [----] Adder1.Adder1.XOR.G2.lh := ({{0, 0, -1, 1, 0, 0, -1, 1, 0}, {0, 0, -1, 1, 0, 0, -1, 1, 0}, {1, 1, 0, 1, 1, 1, 0, 1, 1}, {-1, -1, -1, 0, -1, -1, -1, 0, -1}, {0, 0, -1, 1, 0, 0, -1, 1, 0}, {0, 0, -1, 1, 0, 0, -1, 1, 0}, {1, 1, 0, 1, 1, 1, 0, 1, 1}, {-1, -1, -1, 0, -1, -1, -1, 0, -1}, {0, 0, -1, 1, 0, 0, -1, 1, 0}})[Adder1.Adder1.XOR.G2.y_old, Adder1.Adder1.XOR.G2.x]; [----] Adder1.Adder1.XOR.G2.delayTime := if Adder1.Adder1.XOR.G2.lh > 0 then Adder1.Adder1.XOR.G2.tLH else if Adder1.Adder1.XOR.G2.lh < 0 then Adder1.Adder1.XOR.G2.tHL else 0.0; [----] Adder1.Adder1.XOR.G2.t_next := time + Adder1.Adder1.XOR.G2.delayTime; [----] if Adder1.Adder1.XOR.G2.lh == 0 or abs(Adder1.Adder1.XOR.G2.delayTime) < 1e-60 then [----] Adder1.Adder1.XOR.G2.y_auxiliary := Adder1.Adder1.XOR.G2.x; [----] end if; [----] Adder1.Adder1.XOR.G2.y := if Adder1.Adder1.XOR.G2.tLH > 0.0 or Adder1.Adder1.XOR.G2.tHL > 0.0 then Adder1.Adder1.XOR.G2.y_auxiliary else Adder1.Adder1.XOR.G2.x; Error: Internal error NBInitialization.main failed to apply modules!