Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.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(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 115.8 kB / 17.76 MB, free: 5.336 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.001325/0.001325, allocations: 185.8 kB / 18.68 MB, free: 4.414 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.281/1.281, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1662/0.1662, allocations: 38.03 MB / 330.6 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.464e-05/2.464e-05, allocations: 2.281 kB / 458.8 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008164/0.008188, allocations: 6.569 MB / 465.3 MB, free: 292 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002949/0.01114, allocations: 1.66 MB / 467 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002972/0.01144, allocations: 27.81 kB / 467 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004918/0.01193, allocations: 154.8 kB / 467.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008074/0.01273, allocations: 449.8 kB / 467.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006167/0.01335, allocations: 355.4 kB / 468 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.01462, allocations: 1.395 MB / 469.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.01486, allocations: 132 kB / 469.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006633/0.01552, allocations: 0.5995 MB / 470.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005521/0.01607, allocations: 478.2 kB / 470.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.01618, allocations: 68 kB / 470.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001888/0.01636, allocations: 83.98 kB / 470.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.0008695/0.01723, allocations: 1.138 MB / 471.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004448/0.01768, allocations: 0.6944 MB / 472.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.01781, allocations: 103.7 kB / 472.6 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.473e-05/0.0179, allocations: 15.94 kB / 472.6 MB, free: 8.934 MB / 350.1 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if noEvent(time < (pre(inverter.modulator.t0) + 2.495e-4)) then inverter.modulator.gates[{1, 2}] = pre(inverter.modulator.gates[{2, 1}]); inverter.modulator.gates[{3, 4}] = pre(inverter.modulator.gates[{4, 3}]); inverter.modulator.sigdel_t = -pre(inverter.modulator.sigdel_t); inverter.modulator.t0 = pre(inverter.modulator.t0) + 5e-4; elseif true then inverter.modulator.gates = pre(inverter.modulator.gates); inverter.modulator.sigdel_t = pre(inverter.modulator.sigdel_t); inverter.modulator.t0 = pre(inverter.modulator.t0) + 0.001; end if