Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.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.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 113 kB / 17.75 MB, free: 5.352 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.001635/0.001635, allocations: 188.8 kB / 18.68 MB, free: 4.426 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.318/1.318, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.167/0.167, allocations: 38.04 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.392e-05, allocations: 2.281 kB / 458.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.009289/0.009321, allocations: 7.425 MB / 466.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009183/0.01853, allocations: 5.235 MB / 471.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.01961, allocations: 27.88 kB / 471.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01232/0.03195, allocations: 5.738 MB / 477.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002677/0.03465, allocations: 0.6961 MB / 477.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001832/0.0365, allocations: 0.5185 MB / 478.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004927/0.04144, allocations: 2.632 MB / 481 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001827/0.04329, allocations: 0.9324 MB / 482 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002215/0.04551, allocations: 0.7592 MB / 482.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001733/0.04727, allocations: 0.5953 MB / 483.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004403/0.04773, allocations: 88 kB / 483.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005865/0.05361, allocations: 2.624 MB / 486 MB, free: 11.55 MB / 366.1 MB Notification: Performance of combineBinaries: time 0.00175/0.05538, allocations: 1.593 MB / 487.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 0.0008229/0.05621, allocations: 1.046 MB / 488.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003665/0.05659, allocations: 155.6 kB / 488.8 MB, free: 8.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 0.0002562/0.05686, allocations: 19.94 kB / 488.8 MB, free: 8.715 MB / 366.1 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if noEvent(time < (pre(inverter.modulator.t0[k]) + 2.495e-4)) then inverter.modulator.gates[{({1, 3, 5})[k], ({2, 4, 6})[k]}] = pre(inverter.modulator.gates[{({2, 4, 6})[k], ({1, 3, 5})[k]}]); inverter.modulator.sigdel_t[k] = -pre(inverter.modulator.sigdel_t[k]); inverter.modulator.t0[k] = pre(inverter.modulator.t0[k]) + 5e-4; elseif true then inverter.modulator.gates[{({1, 3, 5})[k], ({2, 4, 6})[k]}] = pre(inverter.modulator.gates[{({1, 3, 5})[k], ({2, 4, 6})[k]}]); inverter.modulator.sigdel_t[k] = pre(inverter.modulator.sigdel_t[k]); inverter.modulator.t0[k] = pre(inverter.modulator.t0[k]) + 0.001; end if