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


Performing analysis on: 4FGL_J1322.6-0936_daily_bin908
RA = 200.664, Dec = -9.6075
tmin = 474681601, tmax = 474940801
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='520882', job_status='RUN', time_executed='2021-09-07 14:38:49.542177', time_epoch_executed='1631050729.54' WHERE source_name='4FGL J1322.6-0936' and cadence='daily' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520882

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520882/ft1_4FGL_J1322.6-0936_daily_bin908.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520882/ft1_4FGL_J1322.6-0936_daily_bin908.fits outfile=/scratch/kocevski/520882/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin908.fits ra=200.664 dec=-9.6075 rad=12.0 tmin=474681601.0 tmax=474940801.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.65
user 3.43
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.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/520882/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin908.fits evtable="EVENTS" outfile="/scratch/kocevski/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits" evtable="EVENTS" scfile=/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits sctable="SC_DATA" outfile=/scratch/kocevski/520882/ltcube_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.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/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits
.....................!
real 15.14
user 14.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits sctable="SC_DATA" expcube=/scratch/kocevski/520882/ltcube_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.fits outfile=/scratch/kocevski/520882/expmap_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.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/520882/ltcube_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.fits
.....................!
real 191.50
user 186.23
sys 4.84

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/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits scfile=/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits outfile=/scratch/kocevski/520882/cmap_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits scfile=/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits outfile=/scratch/kocevski/520882/cmap_HighResolution_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520882/Model_4FGL_J1322.6-0936_daily_bin908.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/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits.....................!
real 58.59
user 56.89
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits', '/scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits', expMap='/scratch/kocevski/520882/expmap_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.fits', expCube='/scratch/kocevski/520882/ltcube_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/520882/Model_4FGL_J1322.6-0936_daily_bin908.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/520882/ft1_filtered_4FGL_J1322.6-0936_daily_bin908.fits
Spacecraft file(s): /scratch/kocevski/520882/ft2_4FGL_J1322.6-0936_daily_bin908.fits
Exposure map: /scratch/kocevski/520882/expmap_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.fits
Exposure cube: /scratch/kocevski/520882/ltcube_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/520882/Model_4FGL_J1322.6-0936_daily_bin908.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) = 7028.03690069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    70.170       1.0000         .10000E-03   10000.    
     3 'norm      '    28.997       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7473       1.0000         .10000E-03   10000.    
     5 'norm      '    7.2121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .99822E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8520       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.545       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6197       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9753       1.0000         .10000E-03   10000.    
    15 'norm      '    10.185       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.100       1.0000         .10000E-03   10000.    
    17 'norm      '    28.677       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1241       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.5038       1.0000         .10000E-03   10000.    
    22 'norm      '    .96289       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4956       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70582       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=   7028.032     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2752 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.762        13.228        .10144E-05    .12235E-03
   2  Prefactor     70.152        66.719       -.15306E-05   -.18870E-04
   3  norm          28.996        27.964        .32053E-07   -.39354E-05
   4  norm          2.7475        .44051        .50410E-07   -.25913E-03
   5  norm          7.2110        7.4788        .26306E-06    .14402E-04
   6  Prefactor     .10000E-03    75.880        .16621E-06** at limit **
   7  norm          .10668E-03    8.1031       -.48877E-06** at limit **
   8  norm          .10000E-03    3.5824        .46952E-07** at limit **
   9  Prefactor     .10000E-03    11.831        .52076E-06** at limit **
  10  Prefactor     14.822        18.997       -.65534E-06   -.55745E-04
  11  Prefactor     9.8551        10.423        .66682E-06    .48920E-04
  12  Prefactor     27.525        24.083       -.84904E-06    .18456E-04
  13  norm          2.6200        1.6426        .89817E-07   -.31971E-04
  14  norm          1.9803        5.0469        .12881E-05   -.99353E-04
  15  norm          10.182        6.5259       -.37890E-06   -.92506E-04
  16  Prefactor     10.096        15.981        .10233E-05    .28239E-04
  17  norm          28.675        25.453        .79249E-07   -.71557E-06
  18  norm          .10000E-03    2.1198        .67880E-07** at limit **
  19  Prefactor     1.1233        4.7980        .22885E-05   -.10333E-03
  20  Prefactor     .10000E-03    19.909        .68311E-07** at limit **
  21  norm          5.5030        4.5147       -.24898E-06   -.12205E-03
  22  norm          .96243        1.9554        .45700E-06    .34391E-03
  23  Normalizat    1.4956        .24149       -.10161E-05   -.20825E-04
  24  Prefactor     .70591        .13011       -.24672E-06   -.82691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7622
  Prefactor  = 70.1524
  norm       = 28.9963
  norm       = 2.7475
  norm       = 7.21103
  Prefactor  = 0.0001
  norm       = 0.000106676
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8217
  Prefactor  = 9.8551
  Prefactor  = 27.5249
  norm       = 2.62003
  norm       = 1.98032
  norm       = 10.1824
  Prefactor  = 10.0961
  norm       = 28.6753
  norm       = 0.0001
  Prefactor  = 1.12332
  Prefactor  = 0.0001
  norm       = 5.50299
  norm       = 0.962433
  Normalizat = 1.49564
  Prefactor  = 0.705914
 **********
 **   18 **HESSE 
 **********

 FCN=   7028.032     FROM HESSE     STATUS=OK           415 CALLS     3167 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.762        13.354        .92461E-04   -1.4841    
   2  Prefactor     70.152        67.401        .47921E-04   -1.4031    
   3  norm          28.996        27.971        .74401E-04   -1.4630    
   4  norm          2.7475        .44589        .19695E-04   -1.5376    
   5  norm          7.2110        7.4816        .14936E-03   -1.5171    
   6  Prefactor     .10000E-03    76.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10668E-03    11.855        .72043E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5839        .15496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.822        19.235        .10405E-03   -1.4938    
  11  Prefactor     9.8551        10.470        .12767E-03   -1.5080    
  12  Prefactor     27.525        23.901        .76333E-04   -1.4658    
  13  norm          2.6200        1.6416        .80301E-04   -1.5384    
  14  norm          1.9803        4.9643        .19922E-03   -1.5427    
  15  norm          10.182        6.5113        .12555E-03   -1.5070    
  16  Prefactor     10.096        16.032        .12608E-03   -1.5072    
  17  norm          28.675        25.455        .74814E-04   -1.4636    
  18  norm          .10000E-03    2.1396        .11916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1233        4.7533        .33605E-03   -1.5496    
  20  Prefactor     .10000E-03    19.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5030        4.5007        .15394E-03   -1.5239    
  22  norm          .96243        1.6998        .16644E-02   -1.5512    
  23  Normalizat    1.4956        .28085        .30741E-03   -.77901    
  24  Prefactor     .70591        .15004        .24671E-03   -1.0330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43719e-10
Minuit parameter uncertainties:
  1  13.356
  2  67.4747
  3  27.9835
  4  0.445895
  5  7.48255
  6  8.42925e-05
  7  0.0177969
  8  1.35269e-07
  9  1.68631e-05
  10  19.2426
  11  10.4724
  12  23.9096
  13  1.64159
  14  4.96534
  15  6.51179
  16  16.039
  17  25.4643
  18  6.49339e-07
  19  4.6219
  20  4.00442e-06
  21  4.50093
  22  1.69991
  23  0.281138
  24  0.15013
Done.

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

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  9.855e+00  1.047e+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:  7.059e-01  1.501e-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.496e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 200.664 -9.607
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 5.96e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.53e-05

TS (Fixed Index): 1.16
Ra Dec: 200.664 -9.607
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520882/likelihoodResults_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.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): 0
logL (Free Index) = 7027.79040005
delta logL = 0.242036621583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7027.7888656
delta logL = 0.243571071401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3487       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2380       1.0000          .0000       10.000    
     3 'Normalizat'    1.4594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71919       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=   7027.789     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3501        10.167        .14796E-03    .14031E-03
   2  Index         3.2383        1.0294        .79415E-02    .42633E-04
   3  Normalizat    1.4593        .26380        .31042E-03    .69863E-03
   4  Prefactor     .71911        .14804        .24465E-03    .69006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.35012
  Index      = 3.23827
  Normalizat = 1.45935
  Prefactor  = 0.719108
 **********
 **   18 **HESSE 
 **********

 FCN=   7027.789     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3501        9.1700        .59182E-05   -1.5166    
   2  Index         3.2383        .92844        .31766E-03   -.36008    
   3  Normalizat    1.4593        .26410        .62084E-04   -.78927    
   4  Prefactor     .71911        .14809        .48931E-04   -1.0278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44703e-10
Minuit parameter uncertainties:
  1  9.17173
  2  0.93464
  3  0.264345
  4  0.148175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520882': 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) = 7027.78886478
delta logL = 0.243571892045

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  7.350e+00  9.172e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.238e+00  9.346e-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:  7.191e-01  1.482e-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.459e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 200.664 -9.607
Photon Index (Free Index): 3.24 +/- 0.93
Photon Flux (Free Index): 8.81e-08 +/- 8.12e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.39e-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/520882/cmap_HighResolution_474681601_474940801_4FGL_J1322.6-0936_daily_bin908.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='1.59e-05', photon_flux_error='5.96e-08', dlogl='2.44e-01', energy_flux='1.44e-05', photon_flux2='8.81e-08', job_status='DONE', time_completed='2021-09-07 14:51:19.637271', photon_index_error2='0.93', photon_index2='3.24', ts='1.16', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.39e-05', EG='1.50', time_epoch_completed='1631051479.64', return_code='0', job_id='520882', GAL2='0.72', EG2='1.46', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='8.12e-08', ts2='1.69', photon_index='2.62' WHERE bin_id='908' AND source_name='4FGL J1322.6-0936' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 520882: <4FGL_J1322.6-0936_daily_bin908> in cluster <slac> Done

Job <4FGL_J1322.6-0936_daily_bin908> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 14:35:33 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:38:32 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:38:32 2021
Terminated at Tue Sep  7 14:51:20 2021
Results reported at Tue Sep  7 14:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.6-0936_daily_bin908 200.664 -9.6075 474681601 474940801 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 :                                   748.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            947 sec.

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

