Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,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.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,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.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 113.3 kB / 17.75 MB, free: 5.301 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.001067/0.001067, allocations: 184.4 kB / 18.69 MB, free: 4.379 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.107/1.107, 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-master/package.mo): time 0.1498/0.1498, allocations: 38.04 MB / 330.6 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.574e-05/1.575e-05, allocations: 2.281 kB / 458.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006057/0.006081, allocations: 5.954 MB / 464.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.008454, allocations: 1.558 MB / 466.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.00878, allocations: 27.81 kB / 466.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004493/0.009236, allocations: 138.9 kB / 466.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006984/0.009945, allocations: 366.1 kB / 466.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005498/0.01051, allocations: 319.5 kB / 467.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.01166, allocations: 1.215 MB / 468.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002907/0.01196, allocations: 207 kB / 468.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006986/0.01267, allocations: 0.5334 MB / 469.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00052/0.0132, allocations: 426.5 kB / 469.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.266e-05/0.01329, allocations: 64 kB / 469.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.01345, allocations: 79.94 kB / 469.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.000693/0.01415, allocations: 0.9867 MB / 470.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003325/0.01449, allocations: 0.6017 MB / 471.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.463e-05/0.01459, allocations: 91.69 kB / 471.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.93e-05/0.01467, allocations: 19.88 kB / 471.3 MB, free: 10.26 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