Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001224/0.001224, allocations: 115.2 kB / 18.47 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001503/0.001503, allocations: 205 kB / 19.42 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.946e-05/1.946e-05, allocations: 2.281 kB / 359.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.0027/0.002727, allocations: 2.108 MB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.004859, allocations: 1.056 MB / 362.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.005008, allocations: 0 / 362.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.005199, allocations: 47.58 kB / 362.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.005354, allocations: 55.58 kB / 362.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.005756, allocations: 123.8 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004706/0.006234, allocations: 431.1 kB / 363.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.006445, allocations: 98.03 kB / 363.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009246/0.007377, allocations: 0.9864 MB / 364.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.007678, allocations: 199.2 kB / 364.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.943e-05/0.007785, allocations: 32 kB / 364.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.487e-05/0.007876, allocations: 36 kB / 364.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003754/0.008257, allocations: 475 kB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001438/0.008408, allocations: 256.2 kB / 365.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.516e-05/0.008499, allocations: 47.88 kB / 365.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.906e-05/0.008543, allocations: 7.938 kB / 365.2 MB, free: 7.004 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: 42 (30) * Number of variables: 42 (36) Notification: Performance of Bindings: time 0.001317/0.009865, allocations: 1.371 MB / 366.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.293e-05/0.009924, allocations: 39.92 kB / 366.7 MB, free: 5.484 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008635/0.01079, allocations: 0.8746 MB / 367.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simplify1: time 5.883e-05/0.01086, allocations: 27.89 kB / 367.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of Alias: time 0.0009813/0.01185, allocations: 0.8139 MB / 368.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simplify2: time 4.559e-05/0.0119, allocations: 27.89 kB / 368.4 MB, free: 3.629 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004374/0.01234, allocations: 413.9 kB / 368.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of Events: time 0.0005061/0.01286, allocations: 371.5 kB / 369.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003689/0.01324, allocations: 332.2 kB / 369.5 MB, free: 2.516 MB / 302.1 MB Notification: Performance of Causalize: time 0.00131/0.01455, allocations: 1.168 MB / 370.7 MB, free: 1.34 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009511/0.01551, allocations: 0.9678 MB / 371.6 MB, free: 352 kB / 302.1 MB Notification: Performance of Inline: time 0.1636/0.1791, allocations: 1.615 MB / 373.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of Partitioning: time 9.422e-05/0.1793, allocations: 65.39 kB / 373.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001066/0.1794, allocations: 110.1 kB / 373.4 MB, free: 15.73 MB / 302.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) Adder.XOR.G2.y_auxiliary = Adder.XOR.G2.y0 ($RES_SRT_58) slice: {}; [SCAL] (1) Adder.XOR.G2.x = $START.Adder.XOR.G2.x ($RES_SRT_56) slice: {}; [SCAL] (1) Adder.AND.G2.y_auxiliary = Adder.AND.G2.y0 ($RES_SRT_53) slice: {}; [SCAL] (1) $PRE.Adder.AND.G1.auxiliary_n = $START.Adder.AND.G1.auxiliary_n ($RES_SRT_50) slice: {}; [SCAL] (1) Adder.XOR.G2.y0 = Adder.XOR.y0 ($RES_BND_69) slice: {}; [SCAL] (1) Adder.AND.G2.y0 = Adder.AND.y0 ($RES_BND_64) slice: {}; Notification: Performance of Causalize: time 0.003163/0.1826, allocations: 2.832 MB / 376.2 MB, free: 15.34 MB / 302.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [ALGO] (6) ($RES_SIM_0) [----] Adder.XOR.G2.y_old := if initial() or $PRE.Adder.XOR.G2.y == Modelica.Electrical.Digital.Interfaces.Logic.'U' then Adder.XOR.G2.y0 else $PRE.Adder.XOR.G2.y; [----] Adder.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}})[Adder.XOR.G2.y_old, Adder.XOR.G2.x]; [----] Adder.XOR.G2.delayTime := if Adder.XOR.G2.lh > 0 then Adder.XOR.G2.tLH else if Adder.XOR.G2.lh < 0 then Adder.XOR.G2.tHL else 0.0; [----] Adder.XOR.G2.t_next := time + Adder.XOR.G2.delayTime; [----] if Adder.XOR.G2.lh == 0 or abs(Adder.XOR.G2.delayTime) < 2.2250738585072014e-308 then [----] Adder.XOR.G2.y_auxiliary := Adder.XOR.G2.x; [----] end if; [----] Adder.XOR.G2.y := if Adder.XOR.G2.tLH > 0.0 or Adder.XOR.G2.tHL > 0.0 then Adder.XOR.G2.y_auxiliary else Adder.XOR.G2.x; Error: Internal error NBInitialization.main failed to apply modules!