Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001035/0.001035, allocations: 106.7 kB / 16.42 MB, free: 6.492 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.001221/0.001221, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.278e-05/2.278e-05, allocations: 2.281 kB / 327.2 MB, free: 3.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002785/0.002815, allocations: 2.119 MB / 329.3 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.004833, allocations: 1.058 MB / 330.3 MB, free: 168 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.057e-05/0.004925, allocations: 3.938 kB / 330.3 MB, free: 164 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000164/0.005095, allocations: 39.66 kB / 330.4 MB, free: 124 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.67e-05/0.005208, allocations: 55.52 kB / 330.4 MB, free: 68 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.005583, allocations: 115.9 kB / 330.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/0.006038, allocations: 435 kB / 331 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.00624, allocations: 98.03 kB / 331.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008272/0.007074, allocations: 0.9631 MB / 332 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.007317, allocations: 199.2 kB / 332.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.518e-05/0.007389, allocations: 32 kB / 332.3 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.106e-05/0.007456, allocations: 36 kB / 332.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004102/0.007872, allocations: 475.1 kB / 332.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000159/0.008038, allocations: 248.3 kB / 333 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.677e-05/0.00811, allocations: 51.81 kB / 333.1 MB, free: 13.44 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.688e-05/0.008143, allocations: 7.938 kB / 333.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.001351/0.009499, allocations: 1.371 MB / 334.4 MB, free: 11.95 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001808/0.009687, allocations: 127.8 kB / 334.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008905/0.01059, allocations: 0.8864 MB / 335.4 MB, free: 10.91 MB / 286.1 MB Notification: Performance of simplify1: time 4.787e-05/0.01064, allocations: 23.97 kB / 335.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of Alias: time 0.0009616/0.01161, allocations: 0.8023 MB / 336.3 MB, free: 10 MB / 286.1 MB Notification: Performance of simplify2: time 3.376e-05/0.01165, allocations: 23.91 kB / 336.3 MB, free: 9.977 MB / 286.1 MB Notification: Performance of Events: time 0.0004926/0.01215, allocations: 359.6 kB / 336.6 MB, free: 9.625 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004994/0.01266, allocations: 467.1 kB / 337.1 MB, free: 9.152 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003707/0.01304, allocations: 348.2 kB / 337.4 MB, free: 8.805 MB / 286.1 MB Error: Internal error NBResolveSingularities.noIndexReduction failed. (4|4) Unmatched Variables *************************** [DISC] (1) protected Integer Adder.AND.G2.lh slice: {} [DISC] (1) protected Integer Adder.XOR.G2.lh slice: {} [DISC] (1) protected discrete Real Adder.XOR.G2.t_next slice: {} [DISC] (1) protected discrete Real Adder.AND.G2.t_next slice: {} (2|4) Unmatched Equations *************************** [ALGO] (6) ($RES_SIM_1) [----] when {initial(), ((Adder.AND.G2.tLH > 0.0 or Adder.AND.G2.tHL > 0.0) and change(Adder.AND.G2.x)) and not initial()} then [----] Adder.AND.G2.y_old := if initial() or $PRE.Adder.AND.G2.y == Modelica.Electrical.Digital.Interfaces.Logic.'U' then Adder.AND.G2.y0 else $PRE.Adder.AND.G2.y; [----] Adder.AND.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.AND.G2.y_old, Adder.AND.G2.x]; [----] Adder.AND.G2.delayTime := if Adder.AND.G2.lh > 0 then Adder.AND.G2.tLH else if Adder.AND.G2.lh < 0 then Adder.AND.G2.tHL else 0.0; [----] Adder.AND.G2.t_next := time + Adder.AND.G2.delayTime; [----] if Adder.AND.G2.lh == 0 or $FUN_1 < 1e-60 then [----] Adder.AND.G2.y_auxiliary := Adder.AND.G2.x; [----] end if; [----] elsewhen time >= Adder.AND.G2.t_next then [----] Adder.AND.G2.y_auxiliary := Adder.AND.G2.x; [----] end when; [----] Adder.AND.G2.y := if Adder.AND.G2.tLH > 0.0 or Adder.AND.G2.tHL > 0.0 then Adder.AND.G2.y_auxiliary else Adder.AND.G2.x; slice: {4, 5} [ALGO] (6) ($RES_SIM_0) [----] when {initial(), ((Adder.XOR.G2.tLH > 0.0 or Adder.XOR.G2.tHL > 0.0) and change(Adder.XOR.G2.x)) and not initial()} then [----] 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 $FUN_2 < 1e-60 then [----] Adder.XOR.G2.y_auxiliary := Adder.XOR.G2.x; [----] end if; [----] elsewhen time >= Adder.XOR.G2.t_next then [----] Adder.XOR.G2.y_auxiliary := Adder.XOR.G2.x; [----] end when; [----] 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; slice: {4, 5}