/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 48 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2322.6-0735_daily_bin1
RA = 350.658, Dec = -7.5907
tmin = 239587201, tmax = 239846401
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='789541', job_status='RUN', time_executed='2021-09-29 13:26:41.253025', time_epoch_executed='1632947201.25' WHERE source_name='4FGL J2322.6-0735' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/789541

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/789541/ft1_4FGL_J2322.6-0735_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/789541/ft1_4FGL_J2322.6-0735_daily_bin1.fits outfile=/scratch/kocevski/789541/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin1.fits ra=350.658 dec=-7.5907 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.32
user 1.11
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.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/789541/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/789541/ltcube_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.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/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits
.....................!
real 12.27
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/789541/ltcube_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.fits outfile=/scratch/kocevski/789541/expmap_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.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/789541/ltcube_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.fits
.....................!
real 191.29
user 185.68
sys 5.26

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/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits scfile=/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits outfile=/scratch/kocevski/789541/cmap_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits scfile=/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits outfile=/scratch/kocevski/789541/cmap_HighResolution_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.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.53
user 0.34
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/789541/Model_4FGL_J2322.6-0735_daily_bin1.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/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits.....................!
real 60.20
user 58.75
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits', '/scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits', expMap='/scratch/kocevski/789541/expmap_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.fits', expCube='/scratch/kocevski/789541/ltcube_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/789541/Model_4FGL_J2322.6-0735_daily_bin1.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/789541/ft1_filtered_4FGL_J2322.6-0735_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/789541/ft2_4FGL_J2322.6-0735_daily_bin1.fits
Exposure map: /scratch/kocevski/789541/expmap_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.fits
Exposure cube: /scratch/kocevski/789541/ltcube_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/789541/Model_4FGL_J2322.6-0735_daily_bin1.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) = 6792.72046845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4292       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    93.841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.095       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20508E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .29777       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .89643E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11559E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53471E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2511       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.207       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14247E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.683       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1869       1.0000         .10000E-03   10000.    
    26 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1661       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22830E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73285       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90109       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=   6792.697     FROM MIGRAD    STATUS=CONVERGED   1396 CALLS     4624 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4288        7.5053        .13808E-03    .21391E-03
   2  Prefactor     24.116        44.671        .81576E-04    .24389E-04
   3  Prefactor     93.807        82.018        .20744E-03    .12989E-04
   4  Prefactor     .10000E-03    2.4635        .12621E-02** at limit **
   5  norm          .10000E-03    .17830        .33688E-03** at limit **
   6  Prefactor     12.096        16.019        .11518E-03   -.12180E-03
   7  Prefactor     .10000E-03    2.6987        .13208E-02** at limit **
   8  Prefactor     .10000E-03    2.1949        .11919E-02** at limit **
   9  norm          1.2433        3.8021        .27711E-03    .66750E-04
  10  Prefactor     35.366        17.290        .67391E-04   -.10291E-04
  11  Prefactor     .10000E-03    155.49        .18142E-02** at limit **
  12  Prefactor     .10000E-03    117.69        .56634E-02** at limit **
  13  Prefactor     .10000E-03    6.1005        .18142E-02** at limit **
  14  norm          .29784        .56841        .41661E-04   -.35475E-05
  15  norm          .10000E-03    1.2861        .91086E-03** at limit **
  16  Prefactor     30.090        45.527        .73045E-04   -.71594E-05
  17  Prefactor     .10000E-03    188.98        .41665E-03** at limit **
  18  Prefactor     .10000E-03    22.610        .18142E-02** at limit **
  19  Prefactor     .10000E-03    39.018        .18142E-02** at limit **
  20  Prefactor     .10000E-03    27.667        .37760E-02** at limit **
  21  norm          3.2645        13.482        .22462E-03   -.47576E-04
  22  Prefactor     23.205        31.770        .83149E-04    .20099E-04
  23  Prefactor     .10003E-03    21.639        .18228E-02** at limit **
  24  Prefactor     15.678        33.253        .10114E-03   -.14501E-04
  25  norm          1.1870        .48924        .35765E-04    .96188E-03
  26  norm          .10000E-03    2.7230        .13121E-02** at limit **
  27  Prefactor     3.1657        7.0961        .11389E-02    .14425E-04
  28  Prefactor     .84205E-02    6.8492        .42576E-01    .15938E-03
  29  Normalizat    .73303        .17752        .25713E-03    .31878E-04
  30  Prefactor     .90092        .14159        .19166E-03    .22516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.42877
  Prefactor  = 24.1163
  Prefactor  = 93.8068
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24329
  Prefactor  = 35.3661
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.297844
  norm       = 0.0001
  Prefactor  = 30.0901
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.26455
  Prefactor  = 23.2053
  Prefactor  = 0.000100026
  Prefactor  = 15.6776
  norm       = 1.18702
  norm       = 0.0001
  Prefactor  = 3.16575
  Prefactor  = 0.00842048
  Normalizat = 0.733027
  Prefactor  = 0.900922
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.697     FROM HESSE     STATUS=OK           568 CALLS     5192 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4288        7.4990        .55231E-05   -1.5127    
   2  Prefactor     24.116        44.668        .32630E-05   -1.4725    
   3  Prefactor     93.807        82.010        .82975E-05   -1.3768    
   4  Prefactor     .10000E-03    2.4635        .25241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .17831        .67375E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.096        16.016        .46073E-05   -1.5012    
   7  Prefactor     .10000E-03    2.6988        .26417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1949        .23838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2433        3.8019        .11084E-04   -1.5485    
  10  Prefactor     35.366        17.288        .26956E-05   -1.4518    
  11  Prefactor     .10000E-03    155.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    119.85        .11327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .29784        .56834        .16664E-05   -1.5599    
  15  norm          .10000E-03    1.2861        .18217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.090        45.521        .29218E-05   -1.4610    
  17  Prefactor     .10000E-03    188.99        .83330E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.790        .75521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2645        13.266        .89849E-05   -1.5347    
  22  Prefactor     23.205        31.765        .33259E-05   -1.4744    
  23  Prefactor     .10003E-03    22.012        .36455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.678        33.250        .40455E-05   -1.4916    
  25  norm          1.1870        .48918        .14306E-05   -1.5490    
  26  norm          .10000E-03    2.7237        .26242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.1657        7.0943        .45555E-04   -1.5352    
  28  Prefactor     .84205E-02    5.0252        .51429E-01   -1.5690    
  29  Normalizat    .73303        .17728        .10285E-04   -1.0260    
  30  Prefactor     .90092        .14164        .38332E-04   -.96109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43031e-09
Minuit parameter uncertainties:
  1  7.49987
  2  44.7304
  3  82.1088
  4  5.12233e-06
  5  1.01259e-06
  6  16.0218
  7  4.08532e-06
  8  1.95801e-07
  9  3.80264
  10  17.2908
  11  0.00031534
  12  0.000680825
  13  1.25284e-05
  14  0.568347
  15  1.75346e-06
  16  45.5731
  17  0.000772276
  18  2.18469e-05
  19  1.65713e-05
  20  0.000348623
  21  13.1666
  22  31.7881
  23  0.0015052
  24  33.2892
  25  0.489182
  26  2.71337e-06
  27  7.09613
  28  0.408995
  29  0.177422
  30  0.141697
Done.

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

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.000e-04  1.253e-05  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.009e-01  1.417e-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:  7.330e-01  1.774e-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: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/789541/likelihoodResults_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.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) = 6792.69745361
delta logL = -0.000781448033194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6792.69667227
delta logL = -1.0341318557e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3349       1.0000          .0000       10.000    
     3 'Normalizat'    .73296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90099       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=   6792.697     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    38.686        .18142E-02** at limit **
   2  Index         2.3130        5.6201        .50000        .13068E-04
   3  Normalizat    .73303        .92990E-02    .25713E-03    .50935E-04
   4  Prefactor     .90092        .76684E-02    .19166E-03    .61215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100216
  Index      = 2.31302
  Normalizat = 0.733028
  Prefactor  = 0.900921
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.697     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    190.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3130        5.6734        .50000       -.56735    
   3  Normalizat    .73303        .21279E-01    .10285E-04   -1.0260    
   4  Prefactor     .90092        .17545E-01    .76664E-05   -.96109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75279e-09
Minuit parameter uncertainties:
  1  0.01288
  2  351.319
  3  0.0212788
  4  0.0175448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/789541': 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) = 6792.69667207
delta logL = 9.22964318306e-08

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.002e-04  1.288e-02  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.313e+00  3.513e+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.009e-01  1.754e-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:  7.330e-01  2.128e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/789541/cmap_HighResolution_239587201_239846401_4FGL_J2322.6-0735_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-29 13:41:16.184822', job_id='789541', GAL2='0.90', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632948076.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1' AND source_name='4FGL J2322.6-0735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 789541: <4FGL_J2322.6-0735_daily_bin1> in cluster <slac> Done

Job <4FGL_J2322.6-0735_daily_bin1> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 13:25:41 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:25:42 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:25:42 2021
Terminated at Wed Sep 29 13:41:16 2021
Results reported at Wed Sep 29 13:41:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.6-0735_daily_bin1 350.658 -7.5907 239587201 239846401 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 :                                   875.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

