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


Performing analysis on: 4FGL_J0522.9-3628_daily_bin487
RA = 80.737, Dec = -36.4686
tmin = 365558401, tmax = 365817601
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='249078', job_status='RUN', time_executed='2021-08-22 12:42:10.652011', time_epoch_executed='1629661330.65' WHERE source_name='4FGL J0522.9-3628' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249078

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249078/ft1_4FGL_J0522.9-3628_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249078/ft1_4FGL_J0522.9-3628_daily_bin487.fits outfile=/scratch/kocevski/249078/ft1_filteredMKT_4FGL_J0522.9-3628_daily_bin487.fits ra=80.737 dec=-36.4686 rad=12.0 tmin=365558401.0 tmax=365817601.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 8.96
user 3.31
sys 5.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.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/249078/ft1_filteredMKT_4FGL_J0522.9-3628_daily_bin487.fits evtable="EVENTS" outfile="/scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.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 5.60
user 0.34
sys 5.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/249078/ltcube_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.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/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits
.....................!
real 18.48
user 11.79
sys 6.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/249078/ltcube_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.fits outfile=/scratch/kocevski/249078/expmap_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.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/249078/ltcube_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.fits
.....................!
real 196.84
user 185.50
sys 10.91

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J0522.9-3628 @ 80.737 -36.4686

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits scfile=/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits outfile=/scratch/kocevski/249078/cmap_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.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=80.737 yref=-36.4686 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 5.98
user 0.37
sys 5.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits scfile=/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits outfile=/scratch/kocevski/249078/cmap_HighResolution_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.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=80.737 yref=-36.4686 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 5.86
user 0.38
sys 5.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/249078/Model_4FGL_J0522.9-3628_daily_bin487.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/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits.....................!
real 72.77
user 64.15
sys 8.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits', '/scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits', expMap='/scratch/kocevski/249078/expmap_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.fits', expCube='/scratch/kocevski/249078/ltcube_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/249078/Model_4FGL_J0522.9-3628_daily_bin487.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0522.9-3628'

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  6.364e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.372e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  7.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.972e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/249078/ft1_filtered_4FGL_J0522.9-3628_daily_bin487.fits
Spacecraft file(s): /scratch/kocevski/249078/ft2_4FGL_J0522.9-3628_daily_bin487.fits
Exposure map: /scratch/kocevski/249078/expmap_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.fits
Exposure cube: /scratch/kocevski/249078/ltcube_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/249078/Model_4FGL_J0522.9-3628_daily_bin487.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) = 5833.71494266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0581       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5213       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0872       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.9527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.276       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72078       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11515E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31424       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26908E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.539       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.360       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.028       1.0000         .10000E-03   10000.    
    20 'norm      '    4.3116       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1443       1.0000         .10000E-03   10000.    
    23 'norm      '    5.8211       1.0000         .10000E-03   10000.    
    24 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.626       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.9910       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88461       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5833.711     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3777 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0632        12.639        .34530E-05   -.16564E-04
   2  norm          1.5216        .74106       -.17578E-06    .11255E-02
   3  norm          .10000E-03    6.5216        .51362E-07** at limit **
   4  norm          .10000E-03    97.856       -.18596E-04** at limit **
   5  norm          1.0871        1.1984        .21167E-07    .13375E-03
   6  Prefactor     4.2183        4.6227        .30949E-05    .41238E-03
   7  Prefactor     .10000E-03    58.520       -.15026E-04** at limit **
   8  norm          .10000E-03    1.7667       -.54197E-07** at limit **
   9  norm          7.9498        8.1877       -.80348E-06    .33706E-03
  10  Prefactor     60.197        79.133       -.85860E-04   -.13879E-05
  11  Prefactor     .75860        4.0252       -.19643E-05   -.68884E-05
  12  Prefactor     .10000E-03    73.250        .34324E-04** at limit **
  13  Prefactor     .31453        1.7746       -.53371E-06    .29774E-04
  14  Prefactor     .10005E-03    3.0900        .56658E-07** at limit **
  15  norm          12.538        4.1827        .10781E-06    .90737E-04
  16  Prefactor     .10000E-03    8.8855        .55397E-06** at limit **
  17  Prefactor     9.7575        7.8616        .17407E-06   -.46692E-05
  18  Prefactor     13.348        22.780       -.21092E-05   -.64376E-05
  19  Prefactor     10.027        10.271       -.89463E-06    .49749E-04
  20  norm          4.3165        7.0682       -.16652E-05   -.33514E-03
  21  Prefactor     .10000E-03    12.908       -.10237E-06** at limit **
  22  norm          4.1446        1.4341       -.16761E-06    .32246E-03
  23  norm          5.8235        3.0426       -.55609E-06   -.14633E-04
  24  norm          .10000E-03    16.505        .23196E-06** at limit **
  25  Prefactor     39.630        43.377        .23257E-05    .11328E-04
  26  Prefactor     10.280        14.854       -.14443E-05   -.22899E-04
  27  Prefactor     8.9890        12.100       -.14657E-05   -.30540E-04
  28  Normalizat    .88368        .25455        .10023E-04    .11388E-03
  29  Prefactor     1.0970        .18797        .14844E-07    .38338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.06321
  norm       = 1.52157
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.08709
  Prefactor  = 4.21827
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.94981
  Prefactor  = 60.1973
  Prefactor  = 0.758599
  Prefactor  = 0.000100003
  Prefactor  = 0.314531
  Prefactor  = 0.000100052
  norm       = 12.5376
  Prefactor  = 0.0001
  Prefactor  = 9.7575
  Prefactor  = 13.3477
  Prefactor  = 10.0268
  norm       = 4.31654
  Prefactor  = 0.0001
  norm       = 4.1446
  norm       = 5.82352
  norm       = 0.0001
  Prefactor  = 39.6295
  Prefactor  = 10.2801
  Prefactor  = 8.98897
  Normalizat = 0.883685
  Prefactor  = 1.097
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.711     FROM HESSE     STATUS=OK           563 CALLS     4340 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0632        12.867        .14124E-03   -1.5140    
   2  norm          1.5216        .75134        .41026E-04   -1.5461    
   3  norm          .10000E-03    6.5520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    97.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0871        1.1975        .45983E-04   -1.5499    
   6  Prefactor     4.2183        4.6162        .13657E-03   -1.5297    
   7  Prefactor     .10000E-03    58.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7783        .99065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.9498        8.1303        .14218E-03   -1.5144    
  10  Prefactor     60.197        79.394        .25840E-03   -1.4155    
  11  Prefactor     .75860        15.227        .27773E-02   -1.5534    
  12  Prefactor     .10000E-03    73.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .31453        9.0380        .18336E-02   -1.5596    
  14  Prefactor     .10005E-03    14.282        .23983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.538        4.0869        .78893E-04   -1.5000    
  16  Prefactor     .10000E-03    8.8866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7575        7.7491        .12828E-03   -1.5083    
  18  Prefactor     13.348        22.559        .10959E-03   -1.4977    
  19  Prefactor     10.027        10.240        .12654E-03   -1.5075    
  20  norm          4.3165        7.0437        .19401E-03   -1.5292    
  21  Prefactor     .10000E-03    12.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1446        1.4334        .51159E-04   -1.5301    
  23  norm          5.8235        3.0606        .89995E-04   -1.5225    
  24  norm          .10000E-03    16.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     39.630        43.411        .63675E-04   -1.4448    
  26  Prefactor     10.280        14.875        .12495E-03   -1.5067    
  27  Prefactor     8.9890        12.104        .13367E-03   -1.5108    
  28  Normalizat    .88368        .30218        .33091E-03   -.97036    
  29  Prefactor     1.0970        .22278        .25457E-03   -.89562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07178e-08
Minuit parameter uncertainties:
  1  12.8717
  2  0.75134
  3  9.64271e-06
  4  2.16199e-05
  5  1.19748
  6  4.61659
  7  0.000466654
  8  1.22342e-05
  9  8.13145
  10  79.534
  11  6.79892
  12  0.000967278
  13  3.3721
  14  0.00172486
  15  4.087
  16  9.87324e-06
  17  7.74992
  18  22.573
  19  10.2418
  20  7.04507
  21  7.26969e-06
  22  1.43339
  23  3.06065
  24  6.44599e-05
  25  43.4461
  26  14.8801
  27  12.107
  28  0.30276
  29  0.222966
Done.

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

Extracting fit parameters...

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  1.254e+01  4.087e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.372e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  7.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.972e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.097e+00  2.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  8.837e-01  3.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.27
Ra Dec: 80.737 -36.469
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 7.32e-08
Energy Flux (Fixed Index): 6.77e-05 +/- 2.21e-05

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) = 5833.35941122
delta logL = 0.351359014906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5833.32648601
delta logL = 0.384284222876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.906       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6671       1.0000          .0000       5.0000    
     3 'Normalizat'    .84577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1177       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5833.326     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.909        6.6896        .29024E-02    .58887E-03
   2  alpha         2.6667        .59331        .20933        .11023E-03
   3  Normalizat    .84578        .21918        .76148E-01    .11253E-03
   4  Prefactor     1.1178        .18503        .57075E-01    .57771E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9088
  alpha      = 2.66667
  Normalizat = 0.845781
  Prefactor  = 1.11776
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.326     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.909        3.7610        .72967E-04   -1.5018    
   2  alpha         2.6667        .34158        .90719E-03    .66718E-01
   3  Normalizat    .84578        .25300        .33704E-03   -.98392    
   4  Prefactor     1.1178        .21191        .25237E-03   -.88901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34449e-10
Minuit parameter uncertainties:
  1  3.7611
  2  0.342655
  3  0.253357
  4  0.212068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249078': 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) = 5833.32648502
delta logL = 0.384285215279

Extracting fit parameters...

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  1.191e+01  3.761e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.667e+00  3.427e-01  0.000e+00  5.000e+00 ( 1.000e+00)
278         beta:  7.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.972e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.118e+00  2.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  8.458e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.04
Ra Dec: 80.737 -36.469
Photon Index (Free Index): 2.67 +/- 0.34
Photon Flux (Free Index): 2.63e-07 +/- 8.65e-08
Energy Flux (Free Index): 6.28e-05 +/- 1.90e-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/249078/cmap_HighResolution_365558401_365817601_4FGL_J0522.9-3628_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='6.28e-05', photon_flux_error='7.32e-08', dlogl='3.84e-01', energy_flux='6.77e-05', photon_flux2='2.63e-07', job_status='DONE', time_completed='2021-08-22 12:55:42.364716', photon_index_error2='0.34', photon_index2='2.67', ts='26.27', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.88', time_epoch_completed='1629662142.36', return_code='0', job_id='249078', GAL2='1.12', EG2='0.85', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='8.65e-08', ts2='27.04', photon_index='2.37' WHERE bin_id='487' AND source_name='4FGL J0522.9-3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 12:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 249078: <4FGL_J0522.9-3628_daily_bin487> in cluster <slac> Done

Job <4FGL_J0522.9-3628_daily_bin487> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 12:40:29 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 12:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 12:40:31 2021
Terminated at Sun Aug 22 12:55:44 2021
Results reported at Sun Aug 22 12:55:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0522.9-3628_daily_bin487 80.737 -36.4686 365558401 365817601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0522.9-3628 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   894.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

