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.001359/0.001359, allocations: 119.7 kB / 18.47 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001533, allocations: 205.1 kB / 19.42 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 247.6 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.328e-05, allocations: 2.281 kB / 359.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003038/0.00307, allocations: 2.111 MB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.005247, allocations: 1.052 MB / 362.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.647e-05/0.005355, allocations: 3.938 kB / 362.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001779/0.00554, allocations: 43.59 kB / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.005676, allocations: 51.58 kB / 362.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.006075, allocations: 123.8 kB / 362.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004336/0.006517, allocations: 427.1 kB / 363.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.006735, allocations: 102 kB / 363.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009305/0.007673, allocations: 0.9903 MB / 364.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.007941, allocations: 199.2 kB / 364.4 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.91e-05/0.008018, allocations: 36 kB / 364.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.377e-05/0.008099, allocations: 40 kB / 364.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003821/0.008487, allocations: 471 kB / 364.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001395/0.008633, allocations: 252.3 kB / 365.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.524e-05/0.008704, allocations: 47.86 kB / 365.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.157e-05/0.008752, allocations: 15.92 kB / 365.3 MB, free: 7.059 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.00133/0.01009, allocations: 1.367 MB / 366.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of FunctionAlias: time 5.429e-05/0.01015, allocations: 31.94 kB / 366.7 MB, free: 5.551 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008839/0.01104, allocations: 0.8708 MB / 367.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simplify1: time 5.18e-05/0.0111, allocations: 31.95 kB / 367.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of Alias: time 0.001005/0.01211, allocations: 0.8255 MB / 368.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simplify2: time 3.091e-05/0.01215, allocations: 23.91 kB / 368.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of Events: time 0.0005242/0.01268, allocations: 359.7 kB / 368.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004915/0.01318, allocations: 471.1 kB / 369.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003688/0.01356, allocations: 336.2 kB / 369.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of Causalize: time 0.001318/0.01489, allocations: 1.175 MB / 370.7 MB, free: 1.336 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001031/0.01593, allocations: 0.9716 MB / 371.7 MB, free: 348 kB / 302.1 MB Notification: Performance of Inline: time 0.2095/0.2254, allocations: 1.603 MB / 373.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001124/0.2255, allocations: 64.5 kB / 373.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001156/0.2257, allocations: 112.9 kB / 373.5 MB, free: 15.67 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.003529/0.2292, allocations: 2.834 MB / 376.3 MB, free: 15.29 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!