/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 68 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 = 7612
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0532.8-3941_daily_bin840
RA = 83.2, Dec = -39.6853
tmin = 457056001, tmax = 457315201
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='438160', job_status='RUN', time_executed='2021-08-22 23:22:12.016376', time_epoch_executed='1629699732.02' WHERE source_name='4FGL J0532.8-3941' and cadence='daily' and bin_id='840'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438160

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438160/ft1_4FGL_J0532.8-3941_daily_bin840.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438160/ft1_4FGL_J0532.8-3941_daily_bin840.fits outfile=/scratch/kocevski/438160/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin840.fits ra=83.2 dec=-39.6853 rad=12.0 tmin=457056001.0 tmax=457315201.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 5.30
user 4.13
sys 1.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.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/438160/ft1_filteredMKT_4FGL_J0532.8-3941_daily_bin840.fits evtable="EVENTS" outfile="/scratch/kocevski/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.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 1.40
user 0.34
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits" evtable="EVENTS" scfile=/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits sctable="SC_DATA" outfile=/scratch/kocevski/438160/ltcube_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.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/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits
.....................!
real 12.72
user 11.35
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits sctable="SC_DATA" expcube=/scratch/kocevski/438160/ltcube_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.fits outfile=/scratch/kocevski/438160/expmap_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.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/438160/ltcube_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.fits
.....................!
real 191.41
user 185.12
sys 5.92

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/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits scfile=/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits outfile=/scratch/kocevski/438160/cmap_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.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 1.40
user 0.36
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits scfile=/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits outfile=/scratch/kocevski/438160/cmap_HighResolution_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.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 1.41
user 0.38
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438160/Model_4FGL_J0532.8-3941_daily_bin840.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/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits.....................!
real 54.79
user 52.28
sys 2.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits', '/scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits', expMap='/scratch/kocevski/438160/expmap_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.fits', expCube='/scratch/kocevski/438160/ltcube_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438160/Model_4FGL_J0532.8-3941_daily_bin840.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/438160/ft1_filtered_4FGL_J0532.8-3941_daily_bin840.fits
Spacecraft file(s): /scratch/kocevski/438160/ft2_4FGL_J0532.8-3941_daily_bin840.fits
Exposure map: /scratch/kocevski/438160/expmap_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.fits
Exposure cube: /scratch/kocevski/438160/ltcube_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438160/Model_4FGL_J0532.8-3941_daily_bin840.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) = 4750.7576959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .26415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63389       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5177       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4674       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9466       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.759       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9492       1.0000         .10000E-03   10000.    
    16 'norm      '    .10967E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.381       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3765       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5281       1.0000         .10000E-03   10000.    
    23 'norm      '    .95700       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11283E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13917E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .85483       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0914       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=   4750.755     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     4386 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .79425        .14034E-07** at limit **
   2  norm          .10000E-03    2.6588        .11360E-07** at limit **
   3  norm          .26457        1.0392        .10273E-06   -.14173E-04
   4  Prefactor     .63335        2.6705       -.14106E-07   -.37427E-04
   5  Prefactor     .10000E-03    3.8251        .23637E-07** at limit **
   6  norm          .10000E-03    1.2168        .21286E-07** at limit **
   7  Prefactor     .10000E-03    17.901       -.26640E-06** at limit **
   8  Prefactor     .10000E-03    5.8888       -.79063E-07** at limit **
   9  Prefactor     .10000E-03    16.183        .10637E-06** at limit **
  10  Prefactor     7.3077        156.62        .18037E-04    .35885E-04
  11  Prefactor     2.4683        2.5036        .49022E-07   -.22984E-03
  12  Prefactor     4.9513        6.0008       -.19053E-07    .44178E-04
  13  norm          7.0424        4.2617       -.22884E-06   -.67242E-04
  14  Prefactor     55.762        58.756       -.20920E-06   -.86365E-05
  15  norm          5.9461        6.8897        .10341E-06   -.79967E-03
  16  norm          .10003E-03    4.2748        .13734E-05** at limit **
  17  Prefactor     10.781        7.8570        .12483E-06    .21863E-04
  18  Prefactor     .10000E-03    9.4707        .42846E-06** at limit **
  19  Prefactor     10.382        10.546       -.36697E-06   -.38520E-05
  20  norm          3.3760        6.3473        .13679E-05    .24738E-03
  21  Prefactor     .10000E-03    15.093        .23637E-06** at limit **
  22  norm          1.5282        1.0183        .24199E-07   -.24748E-03
  23  norm          .95791        3.1510        .31591E-06    .55851E-04
  24  norm          .10000E-03    4.2237       -.10355E-07** at limit **
  25  Prefactor     .10000E-03    91.227        .19209E-05** at limit **
  26  Prefactor     .10000E-03    17.308       -.10404E-06** at limit **
  27  Prefactor     .10000E-03    7.1837       -.16604E-06** at limit **
  28  norm          .10000E-03    98.918       -.57630E-06** at limit **
  29  Prefactor     .10000E-03    145.04       -.35709E-05** at limit **
  30  Prefactor     .10000E-03    6.7347        .11243E-06** at limit **
  31  Normalizat    .85458        .25355       -.37340E-06   -.10117E-03
  32  Prefactor     1.0915        .17978       -.35148E-06   -.15689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.26457
  Prefactor  = 0.633349
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.3077
  Prefactor  = 2.46832
  Prefactor  = 4.95131
  norm       = 7.04237
  Prefactor  = 55.7618
  norm       = 5.94606
  norm       = 0.000100026
  Prefactor  = 10.7805
  Prefactor  = 0.0001
  Prefactor  = 10.3815
  norm       = 3.37601
  Prefactor  = 0.0001
  norm       = 1.52817
  norm       = 0.95791
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.85458
  Prefactor  = 1.0915
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.755     FROM HESSE     STATUS=OK           655 CALLS     5041 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .79540        .59950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6608        .10974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .26457        1.1021        .11655E-02   -1.5605    
   4  Prefactor     .63335        2.5727        .17843E-03   -1.5549    
   5  Prefactor     .10000E-03    3.8262        .13165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2174        .74218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0669        .32662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3077        160.75        .14627E-03   -1.5167    
  11  Prefactor     2.4683        2.4865        .10274E-03   -1.5394    
  12  Prefactor     4.9513        5.9787        .80065E-03   -1.5263    
  13  norm          7.0424        4.2657        .95905E-04   -1.5177    
  14  Prefactor     55.762        58.300        .53720E-04   -1.4213    
  15  norm          5.9461        5.9228        .15417E-03   -1.5220    
  16  norm          .10003E-03    10.466        .21219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.781        7.8436        .61010E-03   -1.5051    
  18  Prefactor     .10000E-03    9.4971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.382        10.555        .12436E-03   -1.5063    
  20  norm          3.3760        6.4270        .10734E-02   -1.5340    
  21  Prefactor     .10000E-03    15.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5282        1.0119        .54469E-04   -1.5461    
  23  norm          .95791        3.0880        .20324E-03   -1.5512    
  24  norm          .10000E-03    4.2243        .13835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    91.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.2108        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    99.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    150.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.7770        .17469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .85458        .29094        .30771E-03   -.98075    
  32  Prefactor     1.0915        .20789        .21861E-03   -.89739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56171e-08
Minuit parameter uncertainties:
  1  1.93923e-07
  2  1.18845e-07
  3  1.07979
  4  2.55296
  5  7.09416e-07
  6  2.84763e-07
  7  2.89593e-05
  8  2.65605e-06
  9  6.72375e-06
  10  68.7587
  11  2.48662
  12  5.97939
  13  4.26584
  14  58.3598
  15  5.92342
  16  0.00104772
  17  7.84431
  18  1.83254e-05
  19  10.5568
  20  6.4283
  21  1.22018e-05
  22  1.01194
  23  3.0885
  24  1.64455e-07
  25  0.000297543
  26  3.22114e-06
  27  3.03522e-06
  28  5.49597e-05
  29  0.000317771
  30  7.03977e-06
  31  0.291472
  32  0.208047
Done.

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

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  1.078e+01  7.844e+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.091e+00  2.080e-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.546e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 83.200 -39.685
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.49e-08 +/- 5.45e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.44e-05

TS (Fixed Index): 3.25
Ra Dec: 83.200 -39.685
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438160/likelihoodResults_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.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) = 4750.75394823
delta logL = 0.000683694543113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4750.75361477
delta logL = 0.00101715678193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.559       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6219       1.0000          .0000       10.000    
     3 'Normalizat'    .85318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0923       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=   4750.754     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.559        9.3070        .12330E-03    .87889E-03
   2  Index         2.6221        .72464        .71818E-02    .17385E-03
   3  Normalizat    .85307        .25510        .30794E-03   -.13457E-03
   4  Prefactor     1.0924        .20162        .21853E-03   -.22617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5588
  Index      = 2.62209
  Normalizat = 0.85307
  Prefactor  = 1.09238
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.754     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.559        9.0174        .49319E-05   -1.5058    
   2  Index         2.6221        .70189        .28727E-03   -.49562    
   3  Normalizat    .85307        .25519        .12317E-04   -.98129    
   4  Prefactor     1.0924        .20168        .43707E-04   -.89710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82843e-10
Minuit parameter uncertainties:
  1  9.01859
  2  0.7049
  3  0.25555
  4  0.201821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438160': 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) = 4750.7536145
delta logL = 0.00101742585866

Extracting fit parameters...

4FGL J0532.8-3941
   Spectrum: PowerLaw
285    Prefactor:  1.056e+01  9.019e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.622e+00  7.049e-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.092e+00  2.018e-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.531e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 83.200 -39.685
Photon Index (Free Index): 2.62 +/- 0.70
Photon Flux (Free Index): 7.62e-08 +/- 6.04e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/438160/cmap_HighResolution_457056001_457315201_4FGL_J0532.8-3941_daily_bin840.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', photon_flux='7.49e-08', energy_flux2='1.96e-05', photon_flux_error='5.45e-08', dlogl='1.02e-03', energy_flux='1.98e-05', photon_flux2='7.62e-08', job_status='DONE', time_completed='2021-08-22 23:36:14.607455', photon_index_error2='0.70', photon_index2='2.62', ts='3.25', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.48e-05', EG='0.85', time_epoch_completed='1629700574.61', return_code='0', job_id='438160', GAL2='1.09', EG2='0.85', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.04e-08', ts2='3.26', photon_index='2.59' WHERE bin_id='840' AND source_name='4FGL J0532.8-3941' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 23:36:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 438160: <4FGL_J0532.8-3941_daily_bin840> in cluster <slac> Done

Job <4FGL_J0532.8-3941_daily_bin840> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 22 23:20:38 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 23:20:40 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:20:40 2021
Terminated at Sun Aug 22 23:36:15 2021
Results reported at Sun Aug 22 23:36:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.8-3941_daily_bin840 83.2 -39.6853 457056001 457315201 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 :                                   855.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             299.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

