Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.0009763/0.0009763, allocations: 111.3 kB / 18.41 MB, free: 4.555 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.0009901/0.0009902, allocations: 193.4 kB / 19.35 MB, free: 3.629 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.396/1.396, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.388e-05/2.389e-05, allocations: 7.062 kB / 329.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FullAdder): time 0.00541/0.005444, allocations: 4.901 MB / 334.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004575/0.01004, allocations: 2.199 MB / 336.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009382/0.011, allocations: 19.88 kB / 336.3 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007134/0.01172, allocations: 194.2 kB / 336.5 MB, free: 12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009775/0.01277, allocations: 178.4 kB / 336.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.01448, allocations: 0.7141 MB / 337.4 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002344/0.01683, allocations: 2.095 MB / 339.5 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000998/0.01784, allocations: 0.7782 MB / 340.2 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002773/0.02063, allocations: 2.604 MB / 342.8 MB, free: 5.594 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.02189, allocations: 1.031 MB / 343.9 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004325/0.02233, allocations: 236 kB / 344.1 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004098/0.02275, allocations: 236 kB / 344.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001813/0.02457, allocations: 2.174 MB / 346.5 MB, free: 1.902 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006967/0.02528, allocations: 1.105 MB / 347.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000378/0.02566, allocations: 231.4 kB / 347.8 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002589/0.02593, allocations: 59.48 kB / 347.9 MB, free: 0.4961 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: 324 (294) * Number of variables: 324 (250) Notification: Performance of Bindings: time 0.00672/0.03266, allocations: 6.804 MB / 354.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000472/0.03314, allocations: 379.2 kB / 355.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of Early Inline: time 0.004914/0.03807, allocations: 4.802 MB / 359.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simplify1: time 0.0004099/0.03849, allocations: 259.3 kB / 360.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of Alias: time 0.006164/0.04467, allocations: 5.419 MB / 365.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simplify2: time 0.0004088/0.04511, allocations: 195.4 kB / 365.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of Events: time 0.001763/0.04688, allocations: 1.451 MB / 367.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of Detect States: time 0.002547/0.04944, allocations: 2.474 MB / 369.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of Partitioning: time 0.002193/0.05165, allocations: 1.914 MB / 371.6 MB, free: 8.078 MB / 318.1 MB Notification: Performance of Causalize: time 0.1854/0.237, allocations: 8.203 MB / 379.8 MB, free: 36.77 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.007137/0.2442, allocations: 4.704 MB / 384.5 MB, free: 36.53 MB / 318.1 MB Notification: Performance of Inline: time 0.0103/0.2546, allocations: 8.044 MB / 392.5 MB, free: 33.47 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0005364/0.2551, allocations: 413.5 kB / 392.9 MB, free: 33.21 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0009116/0.2561, allocations: 467.5 kB / 393.4 MB, free: 32.94 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.02063/0.2767, allocations: 19.69 MB / 413.1 MB, free: 24.46 MB / 318.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!