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


Performing analysis on: 4FGL_J0522.9-3628_daily_bin726
RA = 80.737, Dec = -36.4686
tmin = 427507201, tmax = 427766401
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='250686', job_status='RUN', time_executed='2021-08-22 12:46:06.990404', time_epoch_executed='1629661566.99' WHERE source_name='4FGL J0522.9-3628' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250686/ft1_4FGL_J0522.9-3628_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250686/ft1_4FGL_J0522.9-3628_daily_bin726.fits outfile=/scratch/kocevski/250686/ft1_filteredMKT_4FGL_J0522.9-3628_daily_bin726.fits ra=80.737 dec=-36.4686 rad=12.0 tmin=427507201.0 tmax=427766401.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 6.11
user 5.12
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.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/250686/ft1_filteredMKT_4FGL_J0522.9-3628_daily_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.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.17
user 0.32
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/250686/ltcube_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.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/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits
.....................!
real 12.71
user 11.52
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/250686/ltcube_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.fits outfile=/scratch/kocevski/250686/expmap_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.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/250686/ltcube_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.fits
.....................!
real 192.61
user 186.75
sys 5.47

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/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits scfile=/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits outfile=/scratch/kocevski/250686/cmap_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.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 1.19
user 0.36
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits scfile=/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits outfile=/scratch/kocevski/250686/cmap_HighResolution_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.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 1.21
user 0.36
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250686/Model_4FGL_J0522.9-3628_daily_bin726.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/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits.....................!
real 83.76
user 81.40
sys 2.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits', '/scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits', expMap='/scratch/kocevski/250686/expmap_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.fits', expCube='/scratch/kocevski/250686/ltcube_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250686/Model_4FGL_J0522.9-3628_daily_bin726.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/250686/ft1_filtered_4FGL_J0522.9-3628_daily_bin726.fits
Spacecraft file(s): /scratch/kocevski/250686/ft2_4FGL_J0522.9-3628_daily_bin726.fits
Exposure map: /scratch/kocevski/250686/expmap_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.fits
Exposure cube: /scratch/kocevski/250686/ltcube_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250686/Model_4FGL_J0522.9-3628_daily_bin726.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) = 8078.72042894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0820       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2705       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7336       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0841       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.783       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0916       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12842E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3071       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    27.691       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.558       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4572       1.0000         .10000E-03   10000.    
    23 'norm      '    3.8150       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1859       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.905       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69011       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=   8078.708     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3705 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0830        15.069        .12891E-06    .15515E-04
   2  norm          6.2703        1.2459       -.21867E-08    .15414E-04
   3  norm          .10000E-03    2.4892       -.10021E-07** at limit **
   4  norm          .10000E-03    62.312        .86074E-06** at limit **
   5  norm          5.7350        1.8825       -.41371E-07    .67156E-03
   6  Prefactor     .10006E-03    1.5165       -.13197E-05** at limit **
   7  Prefactor     .10000E-03    24.185       -.15015E-05** at limit **
   8  norm          3.0834        2.5750        .66947E-07    .19475E-04
   9  norm          .10000E-03    2.6213        .11585E-06** at limit **
  10  Prefactor     .10000E-03    18.398        .22234E-05** at limit **
  11  Prefactor     .10000E-03    3.9069        .68305E-07** at limit **
  12  Prefactor     30.778        33.868        .65598E-06    .24408E-04
  13  Prefactor     4.0919        1.9817        .25963E-07    .25656E-03
  14  Prefactor     .10000E-03    1.3953       -.98544E-07** at limit **
  15  norm          4.9798        2.1410       -.11291E-06    .19420E-03
  16  Prefactor     .10000E-03    15.883       -.90265E-06** at limit **
  17  Prefactor     .10000E-03    2.0108       -.74393E-07** at limit **
  18  Prefactor     3.3083        9.9304        .50709E-05    .24353E-03
  19  Prefactor     .10000E-03    8.0832       -.11222E-05** at limit **
  20  norm          27.690        6.0377        .13253E-06    .86428E-03
  21  Prefactor     18.554        26.107       -.68368E-06    .22121E-04
  22  norm          2.4572        .84865        .47607E-08   -.58525E-05
  23  norm          3.8150        1.8910        .57764E-07    .19992E-03
  24  norm          .10000E-03    2.8099       -.30064E-07** at limit **
  25  Prefactor     9.1859        13.483        .38046E-06    .22695E-04
  26  Prefactor     10.905        11.083       -.27494E-06   -.21121E-03
  27  Prefactor     .10000E-03    7.8188        .81379E-06** at limit **
  28  Normalizat    1.0060        .16899       -.30488E-06    .12734E-03
  29  Prefactor     .69006        .13500       -.29175E-06    .22740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.08297
  norm       = 6.27029
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.73502
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  norm       = 3.08344
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7785
  Prefactor  = 4.09193
  Prefactor  = 0.0001
  norm       = 4.97985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30833
  Prefactor  = 0.0001
  norm       = 27.6903
  Prefactor  = 18.5542
  norm       = 2.4572
  norm       = 3.815
  norm       = 0.0001
  Prefactor  = 9.18585
  Prefactor  = 10.9054
  Prefactor  = 0.0001
  Normalizat = 1.006
  Prefactor  = 0.690056
 **********
 **   18 **HESSE 
 **********

 FCN=   8078.708     FROM HESSE     STATUS=OK           557 CALLS     4262 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0830        14.976        .15074E-03   -1.5176    
   2  norm          6.2703        1.2368        .16030E-04   -1.5207    
   3  norm          .10000E-03    2.4959        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    62.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7350        1.8027        .65653E-04   -1.5229    
   6  Prefactor     .10006E-03    9.7960        .15967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0834        2.5710        .12668E-03   -1.5357    
   9  norm          .10000E-03    2.6590        .14199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0691        .34657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.778        33.789        .72216E-04   -1.4598    
  13  Prefactor     4.0919        1.9786        .84825E-04   -1.5303    
  14  Prefactor     .10000E-03    5.3591        .19885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9798        2.1034        .79469E-04   -1.5262    
  16  Prefactor     .10000E-03    15.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0296        .12427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3083        10.158        .11131E-02   -1.5344    
  19  Prefactor     .10000E-03    8.1390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          27.690        6.0829        .76132E-04   -1.4655    
  21  Prefactor     18.554        26.098        .92974E-04   -1.4846    
  22  norm          2.4572        .84897        .46876E-04   -1.5394    
  23  norm          3.8150        1.8902        .82080E-04   -1.5317    
  24  norm          .10000E-03    2.8116        .14714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.1859        13.478        .66117E-03   -1.5102    
  26  Prefactor     10.905        11.106        .12132E-03   -1.5047    
  27  Prefactor     .10000E-03    7.8822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0060        .19109        .26757E-03   -.92830    
  29  Prefactor     .69006        .15410        .26716E-03   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98099e-09
Minuit parameter uncertainties:
  1  14.9839
  2  1.23684
  3  2.50202e-06
  4  9.56312e-05
  5  1.80274
  6  0.00148178
  7  1.5937e-06
  8  2.57111
  9  1.5195e-05
  10  0.000128511
  11  6.51988e-06
  12  33.8098
  13  1.9786
  14  5.09493e-05
  15  2.10341
  16  3.94732e-05
  17  7.89595e-06
  18  10.163
  19  5.96796e-05
  20  6.08306
  21  26.1139
  22  0.848977
  23  1.89026
  24  2.36558e-07
  25  13.4825
  26  11.1079
  27  2.60956e-05
  28  0.191216
  29  0.154191
Done.

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

Extracting fit parameters...

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  4.980e+00  2.103e+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:  6.901e-01  1.542e-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:  1.006e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.11
Ra Dec: 80.737 -36.469
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.92e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.14e-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) = 8078.59505324
delta logL = 0.112511579146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8078.59057823
delta logL = 0.116986593785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8744       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1359       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68058       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=   8078.591     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8744        2.2753        .45548E-02    .14910E-03
   2  alpha         2.1360        .41749        .36167       -.31776E-04
   3  Normalizat    1.0230        .15936        .42947E-01    .14948E-04
   4  Prefactor     .68053        .13370        .60773E-01    .24543E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.87443
  alpha      = 2.13596
  Normalizat = 1.02301
  Prefactor  = 0.680527
 **********
 **   18 **HESSE 
 **********

 FCN=   8078.591     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8744        2.1296        .80931E-04   -1.5266    
   2  alpha         2.1360        .46884        .13320E-01   -.14614    
   3  Normalizat    1.0230        .18186        .26567E-03   -.92263    
   4  Prefactor     .68053        .15135        .26881E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87628e-10
Minuit parameter uncertainties:
  1  2.12959
  2  0.471694
  3  0.181971
  4  0.151443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250686': 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) = 8078.59057815
delta logL = 0.11698667444

Extracting fit parameters...

4FGL J0522.9-3628
   Spectrum: LogParabola
276         norm:  4.874e+00  2.130e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.136e+00  4.717e-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:  6.805e-01  1.514e-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:  1.023e+00  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.30
Ra Dec: 80.737 -36.469
Photon Index (Free Index): 2.14 +/- 0.47
Photon Flux (Free Index): 7.60e-08 +/- 4.19e-08
Energy Flux (Free Index): 2.99e-05 +/- 1.50e-05

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/250686/cmap_HighResolution_427507201_427766401_4FGL_J0522.9-3628_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.92e-08', energy_flux2='2.99e-05', photon_flux_error='3.77e-08', dlogl='1.17e-01', energy_flux='2.69e-05', photon_flux2='7.60e-08', job_status='DONE', time_completed='2021-08-22 13:01:13.215132', photon_index_error2='0.47', photon_index2='2.14', ts='13.11', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.01', time_epoch_completed='1629662473.22', return_code='0', job_id='250686', GAL2='0.68', EG2='1.02', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.19e-08', ts2='13.30', photon_index='2.37' WHERE bin_id='726' AND source_name='4FGL J0522.9-3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 250686: <4FGL_J0522.9-3628_daily_bin726> in cluster <slac> Done

Job <4FGL_J0522.9-3628_daily_bin726> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 22 12:45:41 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 12:45: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 12:45:43 2021
Terminated at Sun Aug 22 13:01:14 2021
Results reported at Sun Aug 22 13:01:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0522.9-3628_daily_bin726 80.737 -36.4686 427507201 427766401 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 :                                   913.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

