Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 110.6 kB / 17.75 MB, free: 5.324 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.0009302/0.0009301, allocations: 187.1 kB / 18.68 MB, free: 4.41 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.352/1.352, 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.1646/0.1646, allocations: 38.04 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.327e-05, allocations: 2.281 kB / 458.8 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl): time 0.008591/0.008622, allocations: 7.486 MB / 466.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005168/0.01383, allocations: 3.183 MB / 469.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000751/0.01461, allocations: 35.81 kB / 469.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.01586, allocations: 397.5 kB / 469.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002008/0.01792, allocations: 0.7854 MB / 470.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.01899, allocations: 467.8 kB / 471.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002258/0.02125, allocations: 1.871 MB / 473 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.02271, allocations: 1.158 MB / 474.1 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.02384, allocations: 0.7203 MB / 474.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007591/0.02461, allocations: 0.6148 MB / 475.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.02475, allocations: 112 kB / 475.6 MB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001297/0.02606, allocations: 0.749 MB / 476.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.001208/0.02728, allocations: 1.709 MB / 478 MB, free: 3.523 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006713/0.02796, allocations: 1.072 MB / 479.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002504/0.02822, allocations: 167.5 kB / 479.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.0003016/0.02853, allocations: 35.75 kB / 479.3 MB, free: 2.238 MB / 350.1 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if noEvent(time < (pre(sm_ctrl.inverter.modulator.t0[k]) + 2.495e-4)) then sm_ctrl.inverter.modulator.gates[{({1, 3, 5})[k], ({2, 4, 6})[k]}] = pre(sm_ctrl.inverter.modulator.gates[{({2, 4, 6})[k], ({1, 3, 5})[k]}]); sm_ctrl.inverter.modulator.sigdel_t[k] = -pre(sm_ctrl.inverter.modulator.sigdel_t[k]); sm_ctrl.inverter.modulator.t0[k] = pre(sm_ctrl.inverter.modulator.t0[k]) + 5e-4; elseif true then sm_ctrl.inverter.modulator.gates[{({1, 3, 5})[k], ({2, 4, 6})[k]}] = pre(sm_ctrl.inverter.modulator.gates[{({1, 3, 5})[k], ({2, 4, 6})[k]}]); sm_ctrl.inverter.modulator.sigdel_t[k] = pre(sm_ctrl.inverter.modulator.sigdel_t[k]); sm_ctrl.inverter.modulator.t0[k] = pre(sm_ctrl.inverter.modulator.t0[k]) + 0.001; end if