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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001295/0.001295, allocations: 196.5 kB / 17.29 MB, free: 4.488 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.786/1.786, allocations: 194.2 MB / 212.2 MB, free: 2.379 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002053/0.002053, allocations: 122.4 kB / 256.6 MB, free: 4.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2011/0.2011, allocations: 37.95 MB / 338.8 MB, free: 2.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.493e-05/4.495e-05, allocations: 2.281 kB / 401.8 MB, free: 68.82 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007718/0.007784, allocations: 7.796 MB / 409.5 MB, free: 60.99 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003893/0.01172, allocations: 2.078 MB / 411.6 MB, free: 58.9 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006717/0.01247, allocations: 51.69 kB / 411.7 MB, free: 58.85 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005508/0.01303, allocations: 131.1 kB / 411.8 MB, free: 58.72 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000919/0.01396, allocations: 410.2 kB / 412.2 MB, free: 58.32 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006458/0.01462, allocations: 315.6 kB / 412.5 MB, free: 58.01 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008939/0.01553, allocations: 1.25 MB / 413.8 MB, free: 56.76 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003202/0.01586, allocations: 228 kB / 414 MB, free: 56.53 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005742/0.01644, allocations: 0.5721 MB / 414.6 MB, free: 55.96 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004858/0.01694, allocations: 466.3 kB / 415 MB, free: 55.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.146e-05/0.01703, allocations: 68 kB / 415.1 MB, free: 55.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.01723, allocations: 95.92 kB / 415.2 MB, free: 55.34 MB / 314.7 MB Notification: Performance of combineBinaries: time 0.0006575/0.01789, allocations: 1.153 MB / 416.3 MB, free: 54.18 MB / 314.7 MB Notification: Performance of replaceArrayConstructors: time 0.0002903/0.01819, allocations: 0.6671 MB / 417 MB, free: 53.5 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.01831, allocations: 111.7 kB / 417.1 MB, free: 53.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.358e-05/0.0184, allocations: 7.938 kB / 417.1 MB, free: 53.38 MB / 314.7 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if noEvent(time < (pre(inverter.modulator.t0) + 0.0002495)) 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) + 0.0005; 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