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


Performing analysis on: 4FGL_J1322.6-0936_daily_bin648
RA = 200.664, Dec = -9.6075
tmin = 407289601, tmax = 407548801
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='519497', job_status='RUN', time_executed='2021-09-07 14:32:48.899753', time_epoch_executed='1631050368.9' WHERE source_name='4FGL J1322.6-0936' and cadence='daily' and bin_id='648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519497/ft1_4FGL_J1322.6-0936_daily_bin648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519497/ft1_4FGL_J1322.6-0936_daily_bin648.fits outfile=/scratch/kocevski/519497/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin648.fits ra=200.664 dec=-9.6075 rad=12.0 tmin=407289601.0 tmax=407548801.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.58
user 3.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.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/519497/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin648.fits evtable="EVENTS" outfile="/scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits" evtable="EVENTS" scfile=/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits sctable="SC_DATA" outfile=/scratch/kocevski/519497/ltcube_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.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/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits
.....................!
real 17.48
user 17.04
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits evtable="EVENTS" scfile=/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits sctable="SC_DATA" expcube=/scratch/kocevski/519497/ltcube_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.fits outfile=/scratch/kocevski/519497/expmap_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.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/519497/ltcube_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.fits
.....................!
real 192.56
user 186.87
sys 4.99

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

Setting source of interest to:
4FGL J1322.6-0936 @ 200.664 -9.6075

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits scfile=/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits outfile=/scratch/kocevski/519497/cmap_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.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=200.664 yref=-9.6075 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits scfile=/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits outfile=/scratch/kocevski/519497/cmap_HighResolution_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.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=200.664 yref=-9.6075 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits evtable="EVENTS" scfile=/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/519497/Model_4FGL_J1322.6-0936_daily_bin648.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/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits.....................!
real 79.98
user 78.36
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits', '/scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits', expMap='/scratch/kocevski/519497/expmap_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.fits', expCube='/scratch/kocevski/519497/ltcube_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/519497/Model_4FGL_J1322.6-0936_daily_bin648.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.6-0936'

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  4.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  5.620e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/519497/ft1_filtered_4FGL_J1322.6-0936_daily_bin648.fits
Spacecraft file(s): /scratch/kocevski/519497/ft2_4FGL_J1322.6-0936_daily_bin648.fits
Exposure map: /scratch/kocevski/519497/expmap_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.fits
Exposure cube: /scratch/kocevski/519497/ltcube_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/519497/Model_4FGL_J1322.6-0936_daily_bin648.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) = 10312.3026375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.771       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6221       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.507       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.089       1.0000         .10000E-03   10000.    
    13 'norm      '    .65445       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.6574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4597       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.263       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.9986       1.0000         .10000E-03   10000.    
    22 'norm      '    6.4572       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9230       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61672       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10312.25     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2350 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6274        9.0374       -.57331E-07   -.31105E-04
   2  Prefactor     15.625        37.952       -.28204E-05    .19852E-04
   3  norm          .10000E-03    8.5284       -.68884E-05** at limit **
   4  norm          2.6228        .36423        .57676E-08    .77602E-04
   5  norm          .10000E-03    2.6779       -.77762E-07** at limit **
   6  Prefactor     .10000E-03    22.578        .26086E-05** at limit **
   7  norm          .10000E-03    7.8348        .73422E-06** at limit **
   8  norm          7.6770        7.1453        .79894E-06    .12492E-02
   9  Prefactor     .10000E-03    9.2743        .36496E-05** at limit **
  10  Prefactor     .10000E-03    7.0485       -.54975E-05** at limit **
  11  Prefactor     55.507        12.917       -.12873E-06   -.67273E-05
  12  Prefactor     15.089        14.636       -.42232E-05    .11126E-03
  13  norm          .65425        .94163       -.24916E-06   -.21728E-02
  14  norm          .10000E-03    2.4697        .42791E-06** at limit **
  15  norm          9.6575        6.5477        .66847E-06   -.76874E-04
  16  Prefactor     .10000E-03    2.4153        .35484E-07** at limit **
  17  norm          .10000E-03    7.4359        .83349E-05** at limit **
  18  norm          3.4600        3.8828        .54207E-06   -.78591E-03
  19  Prefactor     10.264        5.8180       -.57553E-06    .36669E-05
  20  Prefactor     .10000E-03    20.086       -.27192E-05** at limit **
  21  norm          4.9986        4.8696       -.76950E-06    .22410E-04
  22  norm          6.4572        2.8589       -.38625E-06   -.30090E-02
  23  Normalizat    1.9230        .21241        .14654E-05   -.65701E-04
  24  Prefactor     .61670        .11331       -.30539E-06    .46478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.62742
  Prefactor  = 15.6253
  norm       = 0.000100001
  norm       = 2.62275
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.5066
  Prefactor  = 15.0893
  norm       = 0.654253
  norm       = 0.0001
  norm       = 9.65755
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 3.45995
  Prefactor  = 10.2637
  Prefactor  = 0.0001
  norm       = 4.99863
  norm       = 6.45715
  Normalizat = 1.92302
  Prefactor  = 0.616701
 **********
 **   18 **HESSE 
 **********

 FCN=   10312.25     FROM HESSE     STATUS=OK           401 CALLS     2751 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6274        9.0569        .12915E-03   -1.5087    
   2  Prefactor     15.625        38.129        .10085E-03   -1.4917    
   3  norm          .10000E-03    8.4051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6228        .36870        .20961E-04   -1.5384    
   5  norm          .10000E-03    2.6915        .16227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.0450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6770        7.2910        .72366E-03   -1.5154    
   9  Prefactor     .10000E-03    9.4867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.507        12.975        .53841E-04   -1.4217    
  12  Prefactor     15.089        14.525        .10311E-03   -1.4931    
  13  norm          .65425        .80959        .11457E-02   -1.5546    
  14  norm          .10000E-03    2.5173        .30928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6575        6.5197        .12895E-03   -1.5086    
  16  Prefactor     .10000E-03    2.4184        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.2467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4600        3.8658        .20210E-03   -1.5336    
  19  Prefactor     10.264        5.8151        .12507E-03   -1.5067    
  20  Prefactor     .10000E-03    20.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.9986        4.8581        .17987E-03   -1.5261    
  22  norm          6.4572        2.9275        .56568E-03   -1.5200    
  23  Normalizat    1.9230        .24958        .30254E-03   -.66494    
  24  Prefactor     .61670        .13176        .27726E-03   -1.0689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48691e-09
Minuit parameter uncertainties:
  1  9.05815
  2  38.1883
  3  0.000148375
  4  0.368702
  5  1.52179e-06
  6  0.000100565
  7  3.3333e-05
  8  7.29189
  9  8.34765e-05
  10  0.000108378
  11  12.9758
  12  14.5287
  13  0.809607
  14  7.06147e-05
  15  6.52014
  16  1.3579e-06
  17  0.000168876
  18  3.86608
  19  5.81543
  20  9.31992e-05
  21  4.85844
  22  2.9276
  23  0.249746
  24  0.131822
Done.

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

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  5.551e+01  1.298e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  5.620e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.167e-01  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.923e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.92
Ra Dec: 200.664 -9.607
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 3.16e-07 +/- 7.38e-08
Energy Flux (Fixed Index): 8.13e-05 +/- 1.90e-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) = 10312.1665453
delta logL = 0.0845645626541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10312.1389881
delta logL = 0.112121840466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.317       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5074       1.0000          .0000       10.000    
     3 'Normalizat'    1.9436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+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=   10312.14     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      289 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.322        15.825        .52093E-04    .74201E-04
   2  Index         2.5073        .23816        .43577E-02    .48348E-04
   3  Normalizat    1.9436        .23940        .30142E-03    .12110E-03
   4  Prefactor     .60813        .13041        .27897E-03    .64388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.3217
  Index      = 2.50728
  Normalizat = 1.94356
  Prefactor  = 0.608129
 **********
 **   18 **HESSE 
 **********

 FCN=   10312.14     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.322        15.637        .20837E-05   -1.4166    
   2  Index         2.5073        .23520        .17431E-03   -.52192    
   3  Normalizat    1.9436        .23957        .60284E-04   -.65973    
   4  Prefactor     .60813        .13048        .11159E-04   -1.0725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00665e-11
Minuit parameter uncertainties:
  1  15.638
  2  0.235318
  3  0.239715
  4  0.130541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519497': 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) = 10312.1389879
delta logL = 0.112121984095

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  5.932e+01  1.564e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.507e+00  2.353e-01  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  5.620e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.081e-01  1.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.944e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.65
Ra Dec: 200.664 -9.607
Photon Index (Free Index): 2.51 +/- 0.24
Photon Flux (Free Index): 2.99e-07 +/- 8.01e-08
Energy Flux (Free Index): 8.60e-05 +/- 2.30e-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/519497/cmap_HighResolution_407289601_407548801_4FGL_J1322.6-0936_daily_bin648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-07', energy_flux2='8.60e-05', photon_flux_error='7.38e-08', dlogl='1.12e-01', energy_flux='8.13e-05', photon_flux2='2.99e-07', job_status='DONE', time_completed='2021-09-07 14:46:09.665543', photon_index_error2='0.24', photon_index2='2.51', ts='39.92', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.92', time_epoch_completed='1631051169.67', return_code='0', job_id='519497', GAL2='0.61', EG2='1.94', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='8.01e-08', ts2='39.65', photon_index='2.62' WHERE bin_id='648' AND source_name='4FGL J1322.6-0936' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 519497: <4FGL_J1322.6-0936_daily_bin648> in cluster <slac> Done

Job <4FGL_J1322.6-0936_daily_bin648> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 14:31:13 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:32:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:32:40 2021
Terminated at Tue Sep  7 14:46:10 2021
Results reported at Tue Sep  7 14:46:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.6-0936_daily_bin648 200.664 -9.6075 407289601 407548801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.6-0936 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   799.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            897 sec.

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

