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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(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.001298/0.001298, allocations: 117.1 kB / 17.75 MB, free: 5.172 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.001212/0.001213, allocations: 183.1 kB / 18.68 MB, free: 4.25 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.613/1.613, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1747/0.1747, allocations: 37.98 MB / 309.9 MB, free: 5.949 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.2e-05/3.201e-05, allocations: 2.281 kB / 432.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007051/0.007092, allocations: 6.552 MB / 439 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.01011, allocations: 1.703 MB / 440.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002881/0.01041, allocations: 23.88 kB / 440.8 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005273/0.01095, allocations: 166.7 kB / 440.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008101/0.01177, allocations: 437.9 kB / 441.4 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.01236, allocations: 343.4 kB / 441.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.01346, allocations: 1.41 MB / 443.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003292/0.0138, allocations: 228 kB / 443.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006251/0.01444, allocations: 0.5995 MB / 443.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005781/0.01503, allocations: 478.3 kB / 444.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.307e-05/0.01512, allocations: 68 kB / 444.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.01531, allocations: 83.94 kB / 444.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0007143/0.01603, allocations: 1.126 MB / 445.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003454/0.01638, allocations: 0.6983 MB / 446.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.01651, allocations: 107.6 kB / 446.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.967e-05/0.01662, allocations: 19.94 kB / 446.5 MB, free: 1.637 MB / 318.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