/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 53 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7389
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0532.8-3941_daily_bin386
RA = 83.2, Dec = -39.6853
tmin = 339379201, tmax = 339638401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='433397', job_status='RUN', time_executed='2021-08-22 23:06:45.979160', time_epoch_executed='1629698805.98' WHERE source_name='4FGL J0532.8-3941' and cadence='daily' and bin_id='386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433397

Creating custom pfile directory:
/scratch/kocevski/433397/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=339379201.0 && nMetStart<339638401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=339379201.0 && nMetStart<339638401.0' /Data/Flight/Level1/LPA

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433397/ft1_4FGL_J0532.8-3941_daily_bin386.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=339379201.0 && nMetStart<339638401.0' /Data/Flight/Level1/LPA

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433397/ft1_4FGL_J0532.8-3941_daily_bin386.fits outfile=/scratch/kocevski/433397/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin386.fits ra=83.2 dec=-39.6853 rad=12.0 tmin=339379201.0 tmax=339638401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.41
user 4.19
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/433397/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin386.fits evtable="EVENTS" outfile="/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.41
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits" evtable="EVENTS" scfile=/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits sctable="SC_DATA" outfile=/scratch/kocevski/433397/ltcube_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits
.....................!
real 8.48
user 8.19
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits sctable="SC_DATA" expcube=/scratch/kocevski/433397/ltcube_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits outfile=/scratch/kocevski/433397/expmap_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/433397/ltcube_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits
.....................!
real 141.77
user 138.09
sys 3.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J0532.8-3941 @ 83.2 -39.6853

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits scfile=/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits outfile=/scratch/kocevski/433397/cmap_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=83.2 yref=-39.6853 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.46
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits scfile=/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits outfile=/scratch/kocevski/433397/cmap_HighResolution_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=83.2 yref=-39.6853 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.44
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433397/Model_4FGL_J0532.8-3941_daily_bin386.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits.....................!
real 52.97
user 51.88
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits', '/scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits', expMap='/scratch/kocevski/433397/expmap_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits', expCube='/scratch/kocevski/433397/ltcube_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433397/Model_4FGL_J0532.8-3941_daily_bin386.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.8-3941'

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  2.458e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/433397/ft1_filtered_4FGL_J0532.8-3941_daily_bin386.fits
Spacecraft file(s): /scratch/kocevski/433397/ft2_4FGL_J0532.8-3941_daily_bin386.fits
Exposure map: /scratch/kocevski/433397/expmap_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits
Exposure cube: /scratch/kocevski/433397/ltcube_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433397/Model_4FGL_J0532.8-3941_daily_bin386.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6939.6209226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6939.61441509

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74083E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.819       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9851       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.436       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2697       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9885       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.873       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3380       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7314       1.0000         .10000E-03   10000.    
    23 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    61.361       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.6137       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .21313E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3104       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.5890       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .81126       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6939.614     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4369 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0335        .46255E-06** at limit **
   2  norm          .10000E-03    9.8256        .34954E-06** at limit **
   3  norm          2.4272        1.6122       -.63622E-08   -.43042E-05
   4  Prefactor     4.6149        3.4726        .40397E-06   -.27357E-03
   5  Prefactor     .10000E-03    59.968        .31039E-05** at limit **
   6  norm          .10000E-03    4.6530        .17760E-06** at limit **
   7  Prefactor     23.723        46.535       -.18074E-04   -.51129E-03
   8  Prefactor     .10000E-03    2.9134        .24719E-06** at limit **
   9  Prefactor     .10000E-03    11.622       -.73471E-06** at limit **
  10  Prefactor     .10000E-03    16.290        .86593E-06** at limit **
  11  Prefactor     .10000E-03    .70707        .50937E-07** at limit **
  12  Prefactor     .10000E-03    1.3735       -.35244E-06** at limit **
  13  norm          4.9849        2.3683       -.17583E-06   -.15107E-03
  14  Prefactor     24.435        29.788       -.45654E-07   -.10721E-04
  15  norm          .10000E-03    1.8346        .79969E-07** at limit **
  16  norm          8.2702        4.1630        .59636E-07   -.21541E-04
  17  Prefactor     3.9871        5.1637        .67900E-05   -.13929E-02
  18  Prefactor     12.872        11.460       -.16829E-05   -.50969E-04
  19  Prefactor     .10000E-03    3.9500       -.15709E-06** at limit **
  20  norm          1.3387        3.4362        .72669E-06   -.12518E-03
  21  Prefactor     .10000E-03    40.894       -.65763E-06** at limit **
  22  norm          3.7313        1.1463       -.74136E-07   -.18562E-03
  23  norm          .10000E-03    1.0246        .17451E-06** at limit **
  24  norm          .10000E-03    3.1342        .34292E-07** at limit **
  25  Prefactor     61.357        37.977       -.75960E-07   -.39647E-04
  26  Prefactor     5.6180        13.751       -.99484E-06    .85741E-04
  27  Prefactor     .10000E-03    30.349       -.29259E-05** at limit **
  28  norm          .10000E-03    41.328        .21335E-05** at limit **
  29  Prefactor     4.3114        16.657        .23486E-06    .43035E-05
  30  Prefactor     7.5891        4.9279        .11125E-07    .10055E-04
  31  Normalizat    .81134        .20875       -.49492E-06   -.83485E-04
  32  Prefactor     1.1822        .15748       -.60512E-06   -.19094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.42716
  Prefactor  = 4.61486
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7228
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.98489
  Prefactor  = 24.4352
  norm       = 0.0001
  norm       = 8.27019
  Prefactor  = 3.98714
  Prefactor  = 12.8723
  Prefactor  = 0.0001
  norm       = 1.33874
  Prefactor  = 0.000100002
  norm       = 3.73133
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 61.3567
  Prefactor  = 5.61797
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.31142
  Prefactor  = 7.58906
  Normalizat = 0.811338
  Prefactor  = 1.18219
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.614     FROM HESSE     STATUS=OK           657 CALLS     5026 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1556        .32413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.8971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4272        1.6151        .80278E-04   -1.5396    
   4  Prefactor     4.6149        3.4570        .11730E-03   -1.5278    
   5  Prefactor     .10000E-03    62.092        .37214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.7330        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.723        49.667        .82075E-04   -1.4733    
   8  Prefactor     .10000E-03    23.550        .27412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .71524        .68359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3944        .95327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9849        2.3641        .83240E-04   -1.5261    
  14  Prefactor     24.435        29.819        .81034E-04   -1.4719    
  15  norm          .10000E-03    1.8484        .11003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2702        4.1575        .11572E-03   -1.5133    
  17  Prefactor     3.9871        5.3502        .10097E-02   -1.5309    
  18  Prefactor     12.872        11.461        .11164E-03   -1.4990    
  19  Prefactor     .10000E-03    3.9517        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3387        3.3837        .23378E-03   -1.5477    
  21  Prefactor     .10000E-03    41.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7313        1.1454        .47430E-04   -1.5322    
  23  norm          .10000E-03    1.0723        .16449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.1348        .14404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     61.357        37.988        .51223E-04   -1.4140    
  26  Prefactor     5.6180        13.641        .16955E-03   -1.5234    
  27  Prefactor     .10000E-03    31.139        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    41.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.3114        16.649        .19404E-03   -1.5293    
  30  Prefactor     7.5891        4.9297        .14523E-03   -1.5157    
  31  Normalizat    .81134        .23559        .32395E-03   -.99649    
  32  Prefactor     1.1822        .17966        .21962E-03   -.86881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24759e-09
Minuit parameter uncertainties:
  1  1.3605e-05
  2  3.78818e-05
  3  1.61515
  4  3.45716
  5  3.45035e-06
  6  1.96653e-05
  7  49.7535
  8  0.000416518
  9  8.46458e-05
  10  0.000137747
  11  2.98452e-07
  12  1.29198e-05
  13  2.36417
  14  29.837
  15  5.431e-07
  16  4.15764
  17  5.35083
  18  11.4626
  19  1.19609e-05
  20  3.38418
  21  0.000501735
  22  1.14545
  23  6.55822e-07
  24  7.45657e-07
  25  38.0029
  26  13.6489
  27  0.000231654
  28  0.000373714
  29  16.6672
  30  4.92993
  31  0.23589
  32  0.179752
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6939.61434321

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  3.987e+00  5.351e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.182e+00  1.798e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  8.113e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 83.200 -39.685
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433397/likelihoodResults_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6939.60146767
delta logL = 0.0128755452879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6939.59843804
delta logL = 0.0159051750043

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5856       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7553       1.0000          .0000       10.000    
     3 'Normalizat'    .80844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1835       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6939.598     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5851        5.6948        .19308E-03    .46939E-03
   2  Index         2.7539        .98475        .11099E-01    .10707E-03
   3  Normalizat    .80827        .21724        .32450E-03   -.18096E-03
   4  Prefactor     1.1837        .17398        .21949E-03   -.23306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58513
  Index      = 2.75391
  Normalizat = 0.808271
  Prefactor  = 1.18375
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.598     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5851        5.3871        .77233E-05   -1.5329    
   2  Index         2.7539        .93222        .44396E-03   -.46589    
   3  Normalizat    .80827        .21742        .12980E-04   -.99763    
   4  Prefactor     1.1837        .17408        .43898E-04   -.86833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05215e-10
Minuit parameter uncertainties:
  1  5.3878
  2  0.939118
  3  0.217655
  4  0.174161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433397': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6939.59843477
delta logL = 0.0159084473462

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  3.585e+00  5.388e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.754e+00  9.391e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  6.147e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.184e+00  1.742e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  8.083e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
Ra Dec: 83.200 -39.685

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/433397/cmap_HighResolution_339379201_339638401_4FGL_J0532.8-3941_daily_bin386.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/433397

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-08-22 23:20:11.989475', job_id='433397', GAL2='1.18', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1629699611.99', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.59e-02', ts2='0.80', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='386' AND source_name='4FGL J0532.8-3941' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 23:20:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 433397: <4FGL_J0532.8-3941_daily_bin386> in cluster <slac> Done

Job <4FGL_J0532.8-3941_daily_bin386> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 23:05:40 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 23:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 23:05:43 2021
Terminated at Sun Aug 22 23:20:12 2021
Results reported at Sun Aug 22 23:20:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.8-3941_daily_bin386 83.2 -39.6853 339379201 339638401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0532.8-3941 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   800.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

The output (if any) is above this job summary.

