Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 113.1 kB / 17.75 MB, free: 5.289 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.001826/0.001826, allocations: 188.6 kB / 18.69 MB, free: 4.363 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.205/1.205, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1607/0.1607, allocations: 38.05 MB / 330.6 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.477e-05/1.477e-05, allocations: 2.281 kB / 458.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007471/0.007495, allocations: 6.491 MB / 465.3 MB, free: 352 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.009717, allocations: 1.313 MB / 466.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002493/0.009981, allocations: 31.81 kB / 466.6 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003337/0.01032, allocations: 126.9 kB / 466.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008526/0.01121, allocations: 429.9 kB / 467.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000437/0.01166, allocations: 235.6 kB / 467.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001208/0.01288, allocations: 1.215 MB / 468.6 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003538/0.01324, allocations: 249.6 kB / 468.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006608/0.01391, allocations: 0.4981 MB / 469.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000507/0.01443, allocations: 402.4 kB / 469.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.589e-05/0.01451, allocations: 48 kB / 469.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.01463, allocations: 48 kB / 469.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.0007121/0.01535, allocations: 1.04 MB / 470.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004004/0.01576, allocations: 0.6944 MB / 471.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.01588, allocations: 99.69 kB / 471.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.498e-05/0.01597, allocations: 19.88 kB / 471.7 MB, free: 9.891 MB / 350.1 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if noEvent(time < (pre(dc_ac.modulator.t0) + 2.495e-4)) then dc_ac.modulator.gates[{1, 2}] = pre(dc_ac.modulator.gates[{2, 1}]); dc_ac.modulator.gates[{3, 4}] = pre(dc_ac.modulator.gates[{4, 3}]); dc_ac.modulator.sigdel_t = -pre(dc_ac.modulator.sigdel_t); dc_ac.modulator.t0 = pre(dc_ac.modulator.t0) + 5e-4; elseif true then dc_ac.modulator.gates = pre(dc_ac.modulator.gates); dc_ac.modulator.sigdel_t = pre(dc_ac.modulator.sigdel_t); dc_ac.modulator.t0 = pre(dc_ac.modulator.t0) + 0.001; end if