/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 2 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2322.6-0735_daily_bin148
RA = 350.658, Dec = -7.5907
tmin = 277689601, tmax = 277948801
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='790498', job_status='RUN', time_executed='2021-09-29 13:30:48.182528', time_epoch_executed='1632947448.18' WHERE source_name='4FGL J2322.6-0735' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790498/ft1_4FGL_J2322.6-0735_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790498/ft1_4FGL_J2322.6-0735_daily_bin148.fits outfile=/scratch/kocevski/790498/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin148.fits ra=350.658 dec=-7.5907 rad=12.0 tmin=277689601.0 tmax=277948801.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 3.74
user 3.51
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.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/790498/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/790498/ltcube_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.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/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits
.....................!
real 12.16
user 11.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/790498/ltcube_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.fits outfile=/scratch/kocevski/790498/expmap_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.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/790498/ltcube_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.fits
.....................!
real 192.48
user 187.19
sys 4.96

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

Setting source of interest to:
4FGL J2322.6-0735 @ 350.658 -7.5907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits scfile=/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits outfile=/scratch/kocevski/790498/cmap_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.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=350.658 yref=-7.5907 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits scfile=/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits outfile=/scratch/kocevski/790498/cmap_HighResolution_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.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=350.658 yref=-7.5907 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790498/Model_4FGL_J2322.6-0735_daily_bin148.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/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits....................!
real 51.20
user 49.94
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits', '/scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits', expMap='/scratch/kocevski/790498/expmap_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.fits', expCube='/scratch/kocevski/790498/ltcube_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790498/Model_4FGL_J2322.6-0735_daily_bin148.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.6-0735'

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.363e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790498/ft1_filtered_4FGL_J2322.6-0735_daily_bin148.fits
Spacecraft file(s): /scratch/kocevski/790498/ft2_4FGL_J2322.6-0735_daily_bin148.fits
Exposure map: /scratch/kocevski/790498/expmap_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.fits
Exposure cube: /scratch/kocevski/790498/ltcube_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790498/Model_4FGL_J2322.6-0735_daily_bin148.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) = 5644.7937932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.430       1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16600E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.876       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1067       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2673       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4356       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .46717       1.0000         .10000E-03   10000.    
    26 'norm      '    2.2765       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.897       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .93905E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .58575       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5644.779     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3985 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2988        .28188E-07** at limit **
   2  Prefactor     .10000E-03    25.369        .29034E-05** at limit **
   3  Prefactor     .10000E-03    42.690       -.13513E-04** at limit **
   4  Prefactor     11.414        10.713       -.43607E-06    .40698E-03
   5  norm          .10000E-03    .76077        .15844E-06** at limit **
   6  Prefactor     .10000E-03    40.797       -.16115E-04** at limit **
   7  Prefactor     .10000E-03    4.4602        .79829E-07** at limit **
   8  Prefactor     .10193E-03    6.3283       -.25869E-05** at limit **
   9  norm          .10000E-03    15.558       -.62044E-05** at limit **
  10  Prefactor     .10000E-03    6.4641        .27912E-06** at limit **
  11  Prefactor     39.040        31.765       -.23691E-05    .20038E-04
  12  Prefactor     .10000E-03    9.4680       -.63267E-05** at limit **
  13  Prefactor     .10000E-03    2.5488        .90338E-07** at limit **
  14  norm          .10000E-03    .34010        .16714E-06** at limit **
  15  norm          .10000E-03    2.2427        .89161E-07** at limit **
  16  Prefactor     44.830        50.610       -.42968E-04   -.54405E-04
  17  Prefactor     .10000E-03    23.696        .75217E-05** at limit **
  18  Prefactor     5.1076        9.7742       -.85698E-06   -.79387E-04
  19  Prefactor     9.9423        487.45       -.29447E-04   -.97258E-05
  20  Prefactor     7.2705        11.194        .24299E-05   -.24345E-03
  21  norm          .10000E-03    11.489        .42769E-05** at limit **
  22  Prefactor     .10000E-03    9.1044        .42560E-05** at limit **
  23  Prefactor     3.4351        3.4395       -.12555E-06   -.38366E-03
  24  Prefactor     .10000E-03    63.074        .46835E-04** at limit **
  25  norm          .46716        .36859       -.75546E-07   -.49168E-03
  26  norm          2.2765        2.1630       -.33787E-07    .12034E-03
  27  Prefactor     23.897        17.384       -.67531E-06   -.42817E-04
  28  Prefactor     .10061E-03    3.0946       -.23272E-06** at limit **
  29  Normalizat    .58581        .16067        .16499E-05    .37065E-03
  30  Prefactor     .96270        .12749        .23360E-05    .20251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4139
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101927
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 44.8298
  Prefactor  = 0.0001
  Prefactor  = 5.10762
  Prefactor  = 9.94226
  Prefactor  = 7.27049
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43507
  Prefactor  = 0.0001
  norm       = 0.467162
  norm       = 2.27649
  Prefactor  = 23.897
  Prefactor  = 0.000100615
  Normalizat = 0.585807
  Prefactor  = 0.962703
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.779     FROM HESSE     STATUS=OK           596 CALLS     4581 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3017        .11124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.414        8.7662        .11850E-03   -1.5032    
   5  norm          .10000E-03    1.1012        .10386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4909        .15494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10193E-03    104.23        .35830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.040        31.775        .64147E-04   -1.4458    
  12  Prefactor     .10000E-03    9.4924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5545        .11703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .49795        .83677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3083        .21963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.830        50.781        .59849E-04   -1.4368    
  17  Prefactor     .10000E-03    23.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1076        9.7708        .17792E-03   -1.5256    
  19  Prefactor     9.9423        479.87        .12702E-03   -1.5077    
  20  Prefactor     7.2705        11.014        .14879E-03   -1.5169    
  21  norm          .10000E-03    11.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4351        3.4127        .12511E-03   -1.5337    
  24  Prefactor     .10000E-03    63.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .46716        .35743        .38451E-03   -1.5571    
  26  norm          2.2765        2.1790        .10289E-03   -1.5406    
  27  Prefactor     23.897        17.376        .81942E-04   -1.4730    
  28  Prefactor     .10061E-03    7.9311        .42578E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .58581        .19058        .27165E-03   -1.0859    
  30  Prefactor     .96270        .15244        .17903E-03   -.93983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84354e-08
Minuit parameter uncertainties:
  1  4.30688e-06
  2  3.76574e-05
  3  3.67966e-05
  4  8.76718
  5  1.38762e-06
  6  9.8307e-05
  7  1.10214e-05
  8  0.0283912
  9  2.26869e-05
  10  3.3183e-05
  11  31.7892
  12  9.68996e-06
  13  3.14306e-06
  14  9.05698e-06
  15  3.97515e-06
  16  50.8296
  17  3.78309e-05
  18  9.77381
  19  139.346
  20  11.0169
  21  4.10536e-06
  22  2.96953e-06
  23  3.41286
  24  0.000190413
  25  0.357435
  26  2.17911
  27  17.3793
  28  0.00441623
  29  0.190793
  30  0.152507
Done.

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

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.000e-04  3.143e-06  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.627e-01  1.525e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  5.858e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.658 -7.591
Photon Flux Upper Limit: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790498/likelihoodResults_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.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): 102
logL (Free Index) = 5644.7807259
delta logL = -0.0018605618925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5644.77886429
delta logL = 1.04731770989e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3090       1.0000          .0000       10.000    
     3 'Normalizat'    .58580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   5644.779     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.662        .12359E-01** at limit **
   2  Index         1.6004        9.1597        .50000       -.35170E-06
   3  Normalizat    .58580        .56566E-02    .27165E-03   -.30886E-04
   4  Prefactor     .96270        .47297E-02    .17903E-03   -.47295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60037
  Normalizat = 0.585803
  Prefactor  = 0.962705
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.779     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.181        .16322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6004        8.8282        .50000       -.74766    
   3  Normalizat    .58580        .16820E-01    .10866E-04   -1.0859    
   4  Prefactor     .96270        .14064E-01    .35807E-04   -.93983    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24273e-09
Minuit parameter uncertainties:
  1  1.29838e-05
  2  381.099
  3  0.0168201
  4  0.014064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790498': 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): 102
logL (Free Index) = 5644.77885583
delta logL = 9.5027144198e-06

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.000e-04  1.298e-05  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  1.600e+00  3.811e+02  0.000e+00  1.000e+01 (-1.000e+00)
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.627e-01  1.406e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  5.858e-01  1.682e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.658 -7.591

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/790498/cmap_HighResolution_277689601_277948801_4FGL_J2322.6-0735_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-09-29 13:43:31.361577', job_id='790498', GAL2='0.96', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632948211.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='148' AND source_name='4FGL J2322.6-0735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:43:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 790498: <4FGL_J2322.6-0735_daily_bin148> in cluster <slac> Done

Job <4FGL_J2322.6-0735_daily_bin148> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:30:35 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:30:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:30:37 2021
Terminated at Wed Sep 29 13:43:32 2021
Results reported at Wed Sep 29 13:43:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.6-0735_daily_bin148 350.658 -7.5907 277689601 277948801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.6-0735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

