Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) 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_StateGraph2.Examples.Interactive.UseRadioButtonSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources") translateModel(Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 105.8 kB / 16.42 MB, free: 6.461 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.001142/0.001142, allocations: 189.9 kB / 17.36 MB, free: 5.73 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.195/1.195, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08281/0.08281, allocations: 13.55 MB / 304.8 MB, free: 1.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.65e-05/1.65e-05, allocations: 9.672 kB / 422.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources): time 0.002161/0.002185, allocations: 2.174 MB / 424.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.003772, allocations: 1.368 MB / 425.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.003924, allocations: 7.938 kB / 425.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006926/0.004622, allocations: 402.9 kB / 426.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004269/0.005057, allocations: 295 kB / 426.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000727/0.0058, allocations: 449.2 kB / 426.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004267/0.006234, allocations: 0.6236 MB / 427.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.006366, allocations: 64.72 kB / 427.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.006578, allocations: 239.2 kB / 427.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.006742, allocations: 207.1 kB / 428 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.914e-05/0.006787, allocations: 32 kB / 428 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.006945, allocations: 111.9 kB / 428.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002354/0.007187, allocations: 0.5911 MB / 428.7 MB, free: 7.898 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001151/0.007307, allocations: 378.5 kB / 429.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.774e-05/0.00737, allocations: 67.81 kB / 429.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.411e-05/0.007399, allocations: 11.98 kB / 429.2 MB, free: 7.445 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: 36 (27) * Number of variables: 36 (30) Notification: Performance of Bindings: time 0.0009468/0.00835, allocations: 1.599 MB / 430.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of FunctionAlias: time 8.765e-05/0.008444, allocations: 88.31 kB / 430.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0003159/0.008766, allocations: 0.5402 MB / 431.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simplify1: time 3.036e-05/0.008802, allocations: 31.94 kB / 431.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of Alias: time 0.0005298/0.009336, allocations: 0.6874 MB / 432.1 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simplify2: time 2.581e-05/0.009372, allocations: 27.95 kB / 432.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of Events: time 0.000148/0.009525, allocations: 173.2 kB / 432.3 MB, free: 4.082 MB / 302.1 MB Notification: Performance of Detect States: time 0.000252/0.009783, allocations: 374.7 kB / 432.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002022/0.009993, allocations: 287.8 kB / 433 MB, free: 3.387 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency shut.on could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) start.reset = {stop.on, shut.on} ($RES_BND_36) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (42/48) ************************** (1) [DISC] (1) Boolean $SEV_5 (2) [DISC] (1) Boolean stop.on (fixed = true, start = false) (3) [ALGB] (1) Real $FUN_3 (4) [DISC] (1) Boolean $SEV_4 (5) [ALGB] (1) Real $FUN_2 (6) [ALGB] (1) Real $FUN_1 (7) [DISC] (1) Boolean $SEV_2 (8) [DISS] (1) protected discrete Real start.table.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (9) [DISC] (1) Boolean $SEV_1 (10) [ALGB] (1) protected Real stop.table.realToBoolean.u (11) [ALGB] (1) protected Real[1] stop.table.combiTimeTable.y (12) [DISC] (1) protected Boolean stop.table.realToBoolean.y (13) [DISS] (1) protected discrete Real shut.table.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (14) [DISC] (1) Boolean start.on (fixed = true, start = false) (15) [ALGB] (1) protected Real[1] start.table.combiTimeTable.y (16) [DISC] (1) Boolean shut.on (fixed = true, start = false) (17) [DISC] (2) Boolean[2] start.reset = {stop.on, shut.on} (18) [DISS] (1) protected discrete Real stop.table.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (19) [DISC] (2) protected Boolean[2] shut.pre_reset (20) [DISS] (1) protected discrete Real start.table.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (21) [DISS] (1) protected discrete Real shut.table.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (22) [DISS] (1) protected discrete Real stop.table.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (23) [DISC] (2) Boolean[2] shut.reset = {start.on, stop.on} (24) [DISC] (1) Boolean $TEV_8 (25) [ALGB] (1) protected Real[1] shut.table.combiTimeTable.y (26) [DISC] (1) Boolean $TEV_7 (27) [DISC] (1) Boolean $TEV_6 (28) [DISC] (1) Boolean $TEV_5 (29) [DISC] (1) Boolean $TEV_4 (30) [DISC] (2) protected Boolean[2] stop.pre_reset (31) [DISC] (1) Boolean $TEV_3 (32) [DISC] (1) Boolean $TEV_2 (33) [DISC] (1) Boolean $TEV_1 (34) [DISC] (1) Boolean $TEV_0 (35) [ALGB] (1) protected Real shut.table.realToBoolean.u (36) [DISC] (2) Boolean[2] stop.reset = {start.on, shut.on} (37) [ALGB] (1) protected Real start.table.realToBoolean.u (38) [DISC] (2) protected Boolean[2] start.pre_reset (39) [DISC] (1) protected Boolean shut.table.realToBoolean.y (40) [DISC] (1) protected Boolean start.table.realToBoolean.y (41) [DISC] (1) Boolean $SEV_8 (42) [DISC] (1) Boolean $SEV_7 System Equations (39/48) ************************** (1) [ALGO] (3) ($RES_SIM_10) (1) [----] stop.pre_reset := $PRE.stop.reset; (1) [----] when stop.pre_reset then (1) [----] stop.on := false; (1) [----] end when; (1) [----] when change(stop.table.realToBoolean.y) then (1) [----] stop.on := true; (1) [----] end when; (2) [SCAL] (1) $SEV_7 = start.table.realToBoolean.u >= start.table.realToBoolean.threshold ($RES_EVT_58) (3) [ALGO] (3) ($RES_SIM_11) (3) [----] start.pre_reset := $PRE.start.reset; (3) [----] when start.pre_reset then (3) [----] start.on := false; (3) [----] end when; (3) [----] when change(start.table.realToBoolean.y) then (3) [----] start.on := true; (3) [----] end when; (4) [SCAL] (1) $SEV_8 = time >= $PRE.start.table.combiTimeTable.nextTimeEvent ($RES_EVT_59) (5) [SCAL] (1) $FUN_3 = Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(shut.table.combiTimeTable.tableID, 1, time, shut.table.combiTimeTable.nextTimeEventScaled, $TEV_8) ($RES_$AUX_39) (6) [SCAL] (1) shut.table.realToBoolean.y = $SEV_1 ($RES_SIM_13) (7) [SCAL] (1) shut.table.combiTimeTable.y[1] = shut.table.combiTimeTable.p_offset[1] + $FUN_3 ($RES_SIM_14) (8) [WHEN] (1)when {$SEV_2, initial()} then (8) [----] shut.table.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(shut.table.combiTimeTable.tableID, time) (8) [----] end when; (9) [SCAL] (1) shut.table.combiTimeTable.y[1] = shut.table.realToBoolean.u ($RES_SIM_31) (10) [WHEN] (1)when {$SEV_2, initial()} then (10) [----] shut.table.combiTimeTable.nextTimeEvent := if shut.table.combiTimeTable.nextTimeEventScaled < 1e60 then shut.table.combiTimeTable.nextTimeEventScaled else 1e60 (10) [----] end when; (11) [SCAL] (1) stop.table.combiTimeTable.y[1] = stop.table.realToBoolean.u ($RES_SIM_33) (12) [SCAL] (1) stop.table.realToBoolean.y = $SEV_4 ($RES_SIM_19) (13) [SCAL] (1) start.table.combiTimeTable.y[1] = start.table.realToBoolean.u ($RES_SIM_35) (14) [SCAL] (1) $TEV_0 = $PRE.shut.reset ($RES_EVT_42) (15) [SCAL] (1) $TEV_1 = $PRE.shut.pre_reset ($RES_EVT_43) (16) [SCAL] (1) $TEV_2 = $PRE.stop.reset ($RES_EVT_44) (17) [SCAL] (1) $TEV_3 = $PRE.stop.pre_reset ($RES_EVT_45) (18) [SCAL] (1) $FUN_2 = Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(stop.table.combiTimeTable.tableID, 1, time, stop.table.combiTimeTable.nextTimeEventScaled, $TEV_7) ($RES_$AUX_40) (19) [SCAL] (1) $TEV_4 = $PRE.start.reset ($RES_EVT_46) (20) [SCAL] (1) $FUN_1 = Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(start.table.combiTimeTable.tableID, 1, time, start.table.combiTimeTable.nextTimeEventScaled, $TEV_6) ($RES_$AUX_41) (21) [SCAL] (1) $TEV_5 = $PRE.start.pre_reset ($RES_EVT_47) (22) [SCAL] (1) $TEV_6 = $PRE.start.table.combiTimeTable.nextTimeEventScaled ($RES_EVT_48) (23) [SCAL] (1) $TEV_7 = $PRE.stop.table.combiTimeTable.nextTimeEventScaled ($RES_EVT_49) (24) [SCAL] (1) stop.table.combiTimeTable.y[1] = stop.table.combiTimeTable.p_offset[1] + $FUN_2 ($RES_SIM_20) (25) [WHEN] (1)when {$SEV_5, initial()} then (25) [----] stop.table.combiTimeTable.nextTimeEvent := if stop.table.combiTimeTable.nextTimeEventScaled < 1e60 then stop.table.combiTimeTable.nextTimeEventScaled else 1e60 (25) [----] end when; (26) [WHEN] (1)when {$SEV_5, initial()} then (26) [----] stop.table.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(stop.table.combiTimeTable.tableID, time) (26) [----] end when; (27) [SCAL] (1) start.table.realToBoolean.y = $SEV_7 ($RES_SIM_25) (28) [SCAL] (1) start.table.combiTimeTable.y[1] = start.table.combiTimeTable.p_offset[1] + $FUN_1 ($RES_SIM_26) (29) [WHEN] (1)when {$SEV_8, initial()} then (29) [----] start.table.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(start.table.combiTimeTable.tableID, time) (29) [----] end when; (30) [WHEN] (1)when {$SEV_8, initial()} then (30) [----] start.table.combiTimeTable.nextTimeEvent := if start.table.combiTimeTable.nextTimeEventScaled < 1e60 then start.table.combiTimeTable.nextTimeEventScaled else 1e60 (30) [----] end when; (31) [ARRY] (2) start.reset = {stop.on, shut.on} ($RES_BND_36) (32) [ARRY] (2) stop.reset = {start.on, shut.on} ($RES_BND_37) (33) [ARRY] (2) shut.reset = {start.on, stop.on} ($RES_BND_38) (34) [ALGO] (3) ($RES_SIM_9) (34) [----] shut.pre_reset := $PRE.shut.reset; (34) [----] when shut.pre_reset then (34) [----] shut.on := false; (34) [----] end when; (34) [----] when change(shut.table.realToBoolean.y) then (34) [----] shut.on := true; (34) [----] end when; (35) [SCAL] (1) $TEV_8 = $PRE.shut.table.combiTimeTable.nextTimeEventScaled ($RES_EVT_50) (36) [SCAL] (1) $SEV_1 = shut.table.realToBoolean.u >= shut.table.realToBoolean.threshold ($RES_EVT_52) (37) [SCAL] (1) $SEV_2 = time >= $PRE.shut.table.combiTimeTable.nextTimeEvent ($RES_EVT_53) (38) [SCAL] (1) $SEV_4 = stop.table.realToBoolean.u >= stop.table.realToBoolean.threshold ($RES_EVT_55) (39) [SCAL] (1) $SEV_5 = time >= $PRE.stop.table.combiTimeTable.nextTimeEvent ($RES_EVT_56)