Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001282/0.001282, allocations: 114.8 kB / 17.75 MB, free: 5.219 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.001218/0.001218, allocations: 192.6 kB / 18.68 MB, free: 4.293 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.313/1.313, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/1.985e-05, allocations: 2.281 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002884/0.002912, allocations: 2.095 MB / 354 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.004926, allocations: 1.025 MB / 355 MB, free: 160 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.395e-05/0.005021, allocations: 0 / 355 MB, free: 160 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.005215, allocations: 39.59 kB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.005336, allocations: 55.56 kB / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003799/0.005722, allocations: 125.6 kB / 355.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004357/0.006165, allocations: 431 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.006379, allocations: 94.05 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008859/0.007272, allocations: 0.9864 MB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.007526, allocations: 199.2 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.959e-05/0.007603, allocations: 36 kB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.253e-05/0.007671, allocations: 36 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003863/0.008062, allocations: 475.1 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001312/0.0082, allocations: 248.2 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.855e-05/0.008277, allocations: 47.88 kB / 357.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.252e-05/0.008317, allocations: 11.94 kB / 357.8 MB, free: 13.39 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.001272/0.009594, allocations: 1.374 MB / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FunctionAlias: time 4.479e-05/0.009645, allocations: 31.97 kB / 359.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008372/0.01049, allocations: 0.8708 MB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simplify1: time 4.638e-05/0.01054, allocations: 31.95 kB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Alias: time 0.0009376/0.01149, allocations: 0.8178 MB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simplify2: time 3.362e-05/0.01153, allocations: 31.88 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Events: time 0.0004909/0.01203, allocations: 363.5 kB / 361.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004605/0.0125, allocations: 467.2 kB / 361.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000356/0.01287, allocations: 332.2 kB / 362.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of Causalize: time 0.001251/0.01413, allocations: 1.179 MB / 363.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009159/0.01505, allocations: 0.9756 MB / 364.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of Inline: time 0.001567/0.01663, allocations: 1.606 MB / 365.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of Partitioning: time 7.668e-05/0.01672, allocations: 74.34 kB / 365.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of Cleanup: time 0.00011/0.01683, allocations: 103.8 kB / 366 MB, free: 4.844 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.003068/0.01991, allocations: 2.83 MB / 368.9 MB, free: 1.973 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) < 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!