Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001115/0.001116, allocations: 110.6 kB / 17.75 MB, free: 5.312 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.001133/0.001133, allocations: 183.1 kB / 18.68 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.768e-05/2.77e-05, allocations: 5.656 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FullAdder): time 0.005636/0.005675, allocations: 4.897 MB / 356.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004594/0.01029, allocations: 2.155 MB / 359 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.01137, allocations: 23.88 kB / 359 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007369/0.01212, allocations: 198.2 kB / 359.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008019/0.01299, allocations: 170.4 kB / 359.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.01458, allocations: 0.7102 MB / 360.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00217/0.01676, allocations: 2.087 MB / 362.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009186/0.01769, allocations: 0.8016 MB / 363 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002777/0.02048, allocations: 2.6 MB / 365.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00175/0.02225, allocations: 1.027 MB / 366.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000502/0.02276, allocations: 232 kB / 366.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004339/0.0232, allocations: 236 kB / 367.1 MB, free: 4.102 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.00214/0.02535, allocations: 2.185 MB / 369.2 MB, free: 1.895 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0007776/0.02615, allocations: 1.101 MB / 370.3 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005862/0.02674, allocations: 231.4 kB / 370.6 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0004466/0.0272, allocations: 55.5 kB / 370.6 MB, free: 0.4961 MB / 302.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.2184/0.2456, allocations: 6.788 MB / 377.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0004399/0.2461, allocations: 377.6 kB / 377.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Early Inline: time 0.00481/0.2509, allocations: 4.8 MB / 382.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simplify1: time 0.0005654/0.2515, allocations: 257.4 kB / 382.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Alias: time 0.006723/0.2582, allocations: 5.426 MB / 388.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simplify2: time 0.0005879/0.2588, allocations: 207.2 kB / 388.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of Events: time 0.001945/0.2608, allocations: 1.439 MB / 389.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of Detect States: time 0.002466/0.2633, allocations: 2.484 MB / 392.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of Partitioning: time 0.002461/0.2657, allocations: 1.904 MB / 394.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of Causalize: time 0.009385/0.2751, allocations: 8.214 MB / 402.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.005172/0.2804, allocations: 4.724 MB / 407.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of Inline: time 0.008798/0.2892, allocations: 8.04 MB / 415.3 MB, free: 5.531 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0007363/0.29, allocations: 411 kB / 415.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0008737/0.2908, allocations: 468.8 kB / 416.1 MB, free: 4.711 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_390) slice: {}; [SCAL] (1) $PRE.Adder1.Adder1.XOR.G1.auxiliary_n = $START.Adder1.Adder1.XOR.G1.auxiliary_n ($RES_SRT_387) slice: {}; [SCAL] (1) Adder1.Adder1.AND.G2.y_auxiliary = Adder1.Adder1.AND.G2.y0 ($RES_SRT_385) slice: {}; [SCAL] (1) Adder1.Adder1.AND.G2.x = $START.Adder1.Adder1.AND.G2.x ($RES_SRT_383) slice: {}; [SCAL] (1) Adder1.Adder2.XOR.G2.y_auxiliary = Adder1.Adder2.XOR.G2.y0 ($RES_SRT_380) slice: {}; [SCAL] (1) $PRE.Adder1.Adder2.XOR.G1.auxiliary_n = $START.Adder1.Adder2.XOR.G1.auxiliary_n ($RES_SRT_377) slice: {}; [SCAL] (1) Adder1.Adder2.AND.G2.y_auxiliary = Adder1.Adder2.AND.G2.y0 ($RES_SRT_375) slice: {}; [SCAL] (1) $PRE.Adder1.Adder2.AND.G1.auxiliary_n = $START.Adder1.Adder2.AND.G1.auxiliary_n ($RES_SRT_372) slice: {}; [SCAL] (1) Adder1.Adder1.XOR.G2.y0 = Adder1.Adder1.XOR.y0 ($RES_BND_446) slice: {}; [SCAL] (1) Adder1.Adder1.AND.G2.y0 = Adder1.Adder1.AND.y0 ($RES_BND_441) slice: {}; [SCAL] (1) Adder1.Adder2.XOR.G2.y0 = Adder1.Adder2.XOR.y0 ($RES_BND_436) slice: {}; [SCAL] (1) Adder1.Adder2.AND.G2.y0 = Adder1.Adder2.AND.y0 ($RES_BND_431) slice: {}; Notification: Performance of Causalize: time 0.0254/0.3162, allocations: 19.68 MB / 435.8 MB, free: 0.9219 MB / 334.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!