Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.HysteresisAndMagnets.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.FluxTubes.Shapes.HysteresisAndMagnets,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Core.B|Core.MagRel|Core1.B|Core1.MagRel|Core2.B|Core2.MagRel|Core3.B|Core3.MagRel|Core4.J|Core4.MagRel|Core4.beta|Core4.v|Core4.x|PM.B|PM.MagRel|PM1.B",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.HysteresisAndMagnets") translateModel(ModelicaTest.FluxTubes.Shapes.HysteresisAndMagnets,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Core.B|Core.MagRel|Core1.B|Core1.MagRel|Core2.B|Core2.MagRel|Core3.B|Core3.MagRel|Core4.J|Core4.MagRel|Core4.beta|Core4.v|Core4.x|PM.B|PM.MagRel|PM1.B",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.HysteresisAndMagnets") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 111.7 kB / 17.1 MB, free: 5.785 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.001576/0.001576, allocations: 197.4 kB / 18.03 MB, free: 4.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2935/0.2935, allocations: 43.52 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.033e-05/3.033e-05, allocations: 2.281 kB / 442.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Shapes.HysteresisAndMagnets): time 0.005558/0.005596, allocations: 4.843 MB / 447.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005775/0.01139, allocations: 3.091 MB / 450.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008991/0.01231, allocations: 11.94 kB / 450.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003596/0.01591, allocations: 2.787 MB / 453.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.01761, allocations: 0.5086 MB / 453.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001759/0.01938, allocations: 0.6223 MB / 454.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006842/0.02624, allocations: 3.332 MB / 457.6 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005316/0.02681, allocations: 197.3 kB / 457.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.0289, allocations: 1.05 MB / 458.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002536/0.03145, allocations: 1.944 MB / 460.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003664/0.03183, allocations: 216 kB / 461 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007067/0.0389, allocations: 4.85 MB / 465.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.003835/0.04277, allocations: 2.727 MB / 468.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.00132/0.04411, allocations: 1.129 MB / 469.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006535/0.04478, allocations: 175.4 kB / 469.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.0005566/0.04535, allocations: 43.81 kB / 469.9 MB, free: 10.09 MB / 350.1 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if Core4.hmax < Core4.eps then Core4.aSavI = Core4.mat.Hsat; Core4.bSavI = -Core4.mat.Hsat; elseif Core4.asc and Core4.x < 0.0 then Core4.aSavI = Core4.mat.Hsat; Core4.bSavI = -Core4.hmax; elseif Core4.asc and Core4.x > 0.0 then Core4.aSavI = Core4.hmax; Core4.bSavI = Core4.alpha; elseif not Core4.asc and Core4.x < 0.0 then Core4.aSavI = Core4.alpha; Core4.bSavI = -Core4.hmax; elseif true then Core4.aSavI = Core4.hmax; Core4.bSavI = -Core4.mat.Hsat; end if