Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.HysteresisModelComparison.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) 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(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.HysteresisModelComparison,tolerance=1e-05,outputFormat="mat",numberOfIntervals=9332,variableFilter="time|preisachEverett.beta|preisachEverett.J|preisachEverett.MagRel|preisachEverett.v|preisachEverett.x|tellinenSoft.B|tellinenSoft.MagRel|tellinenTable.B|tellinenTable.MagRel|winding1.i|winding2.i|winding3.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.HysteresisModelComparison") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.HysteresisModelComparison,tolerance=1e-05,outputFormat="mat",numberOfIntervals=9332,variableFilter="time|preisachEverett.beta|preisachEverett.J|preisachEverett.MagRel|preisachEverett.v|preisachEverett.x|tellinenSoft.B|tellinenSoft.MagRel|tellinenTable.B|tellinenTable.MagRel|winding1.i|winding2.i|winding3.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.HysteresisModelComparison") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 115.3 kB / 17.75 MB, free: 5.195 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.001087/0.001087, allocations: 189.9 kB / 18.68 MB, free: 4.27 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.238/1.238, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.612e-05/2.613e-05, allocations: 5.797 kB / 351.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.HysteresisModelComparison): time 0.006157/0.006192, allocations: 5.044 MB / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004688/0.01092, allocations: 2.747 MB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000718/0.01166, allocations: 11.94 kB / 359.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00312/0.01479, allocations: 2.815 MB / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.016, allocations: 397.3 kB / 362.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.0178, allocations: 0.7386 MB / 363.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003422/0.02123, allocations: 3.16 MB / 366.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004115/0.02165, allocations: 274.5 kB / 367.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001342/0.023, allocations: 1.015 MB / 368.1 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.02476, allocations: 1.862 MB / 370 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002891/0.02506, allocations: 200 kB / 370.2 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1643/0.1894, allocations: 4.77 MB / 375 MB, free: 14.78 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.002111/0.1915, allocations: 2.43 MB / 377.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006194/0.1921, allocations: 1.027 MB / 378.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003133/0.1925, allocations: 174.6 kB / 378.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0002809/0.1928, allocations: 36.92 kB / 378.6 MB, free: 13.35 MB / 302.1 MB Error: Internal error NBackendDAE.lowerWhenBranchStatement for if preisachEverett.hmax < preisachEverett.eps then preisachEverett.aSavI = preisachEverett.mat.Hsat; preisachEverett.bSavI = -preisachEverett.mat.Hsat; elseif preisachEverett.asc and preisachEverett.x < 0.0 then preisachEverett.aSavI = preisachEverett.mat.Hsat; preisachEverett.bSavI = -preisachEverett.hmax; elseif preisachEverett.asc and preisachEverett.x > 0.0 then preisachEverett.aSavI = preisachEverett.hmax; preisachEverett.bSavI = preisachEverett.alpha; elseif not preisachEverett.asc and preisachEverett.x < 0.0 then preisachEverett.aSavI = preisachEverett.alpha; preisachEverett.bSavI = -preisachEverett.hmax; elseif true then preisachEverett.aSavI = preisachEverett.hmax; preisachEverett.bSavI = -preisachEverett.mat.Hsat; end if