Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.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.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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 108 kB / 18.41 MB, free: 4.535 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.001136/0.001136, allocations: 194.7 kB / 19.35 MB, free: 3.609 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.638/1.638, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.466e-05, allocations: 2.281 kB / 329.2 MB, free: 3.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003405/0.003438, allocations: 2.107 MB / 331.3 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.00571, allocations: 1.062 MB / 332.3 MB, free: 188 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.005825, allocations: 0 / 332.3 MB, free: 188 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.006038, allocations: 39.59 kB / 332.4 MB, free: 148 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.006155, allocations: 51.58 kB / 332.4 MB, free: 96 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003983/0.006578, allocations: 119.9 kB / 332.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000494/0.007081, allocations: 438.9 kB / 333 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.007302, allocations: 101 kB / 333.1 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009245/0.008235, allocations: 0.9903 MB / 334.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.008504, allocations: 191.3 kB / 334.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.575e-05/0.008588, allocations: 36 kB / 334.3 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.27e-05/0.008656, allocations: 39.94 kB / 334.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003881/0.009049, allocations: 467.2 kB / 334.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001571/0.009212, allocations: 252.2 kB / 335 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.305e-05/0.009301, allocations: 43.88 kB / 335.1 MB, free: 13.44 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.814e-05/0.009347, allocations: 15.94 kB / 335.1 MB, free: 13.43 MB / 286.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.001422/0.01077, allocations: 1.374 MB / 336.4 MB, free: 11.94 MB / 286.1 MB Notification: Performance of FunctionAlias: time 4.911e-05/0.01083, allocations: 35.92 kB / 336.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008956/0.01173, allocations: 0.8707 MB / 337.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simplify1: time 5.342e-05/0.01179, allocations: 31.95 kB / 337.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of Alias: time 0.00103/0.01283, allocations: 0.814 MB / 338.2 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simplify2: time 3.598e-05/0.01288, allocations: 31.89 kB / 338.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of Events: time 0.0005347/0.01342, allocations: 371.4 kB / 338.6 MB, free: 9.684 MB / 286.1 MB Notification: Performance of Detect States: time 0.0005159/0.01394, allocations: 459.2 kB / 339 MB, free: 9.219 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003881/0.01434, allocations: 336 kB / 339.4 MB, free: 8.883 MB / 286.1 MB Notification: Performance of Causalize: time 0.001363/0.01571, allocations: 1.168 MB / 340.5 MB, free: 7.707 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009693/0.01669, allocations: 0.9795 MB / 341.5 MB, free: 6.699 MB / 286.1 MB Notification: Performance of Inline: time 0.001734/0.01843, allocations: 1.602 MB / 343.1 MB, free: 5.059 MB / 286.1 MB Notification: Performance of Partitioning: time 8.479e-05/0.01853, allocations: 74.28 kB / 343.2 MB, free: 4.98 MB / 286.1 MB Notification: Performance of Cleanup: time 0.000116/0.01865, allocations: 103.9 kB / 343.3 MB, free: 4.879 MB / 286.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.003384/0.02204, allocations: 2.85 MB / 346.1 MB, free: 1.98 MB / 286.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) < 1e-60 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!