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


Performing analysis on: 4FGL_J1322.6-0936_daily_bin998
RA = 200.664, Dec = -9.6075
tmin = 498009601, tmax = 498268801
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='521015', job_status='RUN', time_executed='2021-09-07 14:41:52.048059', time_epoch_executed='1631050912.05' WHERE source_name='4FGL J1322.6-0936' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521015/ft1_4FGL_J1322.6-0936_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521015/ft2_4FGL_J1322.6-0936_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521015/ft1_4FGL_J1322.6-0936_daily_bin998.fits outfile=/scratch/kocevski/521015/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin998.fits ra=200.664 dec=-9.6075 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.07
user 7.68
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521015/ft2_4FGL_J1322.6-0936_daily_bin998.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/521015/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/521015/ft1_filtered_4FGL_J1322.6-0936_daily_bin998.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521015/ft1_filtered_4FGL_J1322.6-0936_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/521015/ft2_4FGL_J1322.6-0936_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/521015/ltcube_498009601_498268801_4FGL_J1322.6-0936_daily_bin998.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/521015/ft2_4FGL_J1322.6-0936_daily_bin998.fits
.....................!
real 12.82
user 12.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521015/ft1_filtered_4FGL_J1322.6-0936_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/521015/ft2_4FGL_J1322.6-0936_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/521015/ltcube_498009601_498268801_4FGL_J1322.6-0936_daily_bin998.fits outfile=/scratch/kocevski/521015/expmap_498009601_498268801_4FGL_J1322.6-0936_daily_bin998.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/521015/ltcube_498009601_498268801_4FGL_J1322.6-0936_daily_bin998.fits
.....................!
real 193.69
user 186.74
sys 4.66

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/521015/ft1_filtered_4FGL_J1322.6-0936_daily_bin998.fits scfile=/scratch/kocevski/521015/ft2_4FGL_J1322.6-0936_daily_bin998.fits outfile=/scratch/kocevski/521015/cmap_498009601_498268801_4FGL_J1322.6-0936_daily_bin998.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/521015/ft1_filtered_4FGL_J1322.6-0936_daily_bin998.fits scfile=/scratch/kocevski/521015/ft2_4FGL_J1322.6-0936_daily_bin998.fits outfile=/scratch/kocevski/521015/cmap_HighResolution_498009601_498268801_4FGL_J1322.6-0936_daily_bin998.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/521015/ft1_filtered_4FGL_J1322.6-0936_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/521015/ft2_4FGL_J1322.6-0936_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/521015/Model_4FGL_J1322.6-0936_daily_bin998.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/521015/ft1_filtered_4FGL_J1322.6-0936_daily_bin998.fits.....................!
real 47.45
user 45.75
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.493       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.801       1.0000         .10000E-03   10000.    
     3 'norm      '    17.797       1.0000         .10000E-03   10000.    
     4 'norm      '    .86734       1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    31.591       1.0000         .10000E-03   10000.    
     8 'norm      '    35.210       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.903       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0117       1.0000         .10000E-03   10000.    
    14 'norm      '    15.226       1.0000         .10000E-03   10000.    
    15 'norm      '    6.5780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5216       1.0000         .10000E-03   10000.    
    21 'norm      '    7.0200       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99126       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2377       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=   5235.873     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2717 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.495        19.999       -.15800E-05   -.22312E-05
   2  Prefactor     46.807        60.732        .28105E-05   -.22889E-05
   3  norm          17.796        25.293        .16785E-06   -.94129E-06
   4  norm          .86734        .36602       -.58542E-07    .11431E-03
   5  norm          .10000E-03    19.267       -.59037E-06** at limit **
   6  Prefactor     .10000E-03    62.998       -.96713E-07** at limit **
   7  norm          31.593        19.758       -.10241E-05    .14746E-04
   8  norm          35.205        22.209        .24608E-05    .20983E-05
   9  Prefactor     .10000E-03    5.7023       -.13203E-06** at limit **
  10  Prefactor     37.911        28.295       -.58929E-05    .16227E-04
  11  Prefactor     69.394        21.533       -.17325E-05    .26061E-04
  12  Prefactor     .10000E-03    23.299        .43297E-06** at limit **
  13  norm          1.0137        1.8552       -.14449E-06   -.69608E-03
  14  norm          15.231        7.5528        .58749E-06   -.35732E-04
  15  norm          6.5762        11.280       -.20145E-05   -.10618E-03
  16  Prefactor     .10000E-03    15.365       -.11985E-06** at limit **
  17  norm          .10000E-03    16.908        .18964E-06** at limit **
  18  norm          .10000E-03    1.9684        .12474E-07** at limit **
  19  Prefactor     .10000E-03    1.9755        .52921E-07** at limit **
  20  Prefactor     8.4013        53.571       -.41042E-05   -.62648E-05
  21  norm          7.0177        8.1672       -.65450E-06   -.11396E-03
  22  norm          .10000E-03    1.7520       -.37968E-07** at limit **
  23  Normalizat    .99032        .32136        .45278E-05   -.28842E-04
  24  Prefactor     1.2383        .18148       -.41881E-06    .10364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4952
  Prefactor  = 46.8069
  norm       = 17.7956
  norm       = 0.867341
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.593
  norm       = 35.2052
  Prefactor  = 0.0001
  Prefactor  = 37.9107
  Prefactor  = 69.3943
  Prefactor  = 0.0001
  norm       = 1.01371
  norm       = 15.2312
  norm       = 6.57624
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.40131
  norm       = 7.01771
  norm       = 0.0001
  Normalizat = 0.990318
  Prefactor  = 1.23835
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.873     FROM HESSE     STATUS=OK           403 CALLS     3120 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.495        20.003        .73774E-04   -1.4621    
   2  Prefactor     46.807        60.998        .58611E-04   -1.4339    
   3  norm          17.796        25.289        .94939E-04   -1.4864    
   4  norm          .86734        .36652        .25543E-04   -1.5522    
   5  norm          .10000E-03    19.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          31.593        19.744        .71289E-04   -1.4583    
   8  norm          35.205        22.178        .67537E-04   -1.4521    
   9  Prefactor     .10000E-03    5.7127        .16874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.911        28.140        .65101E-04   -1.4476    
  11  Prefactor     69.394        21.441        .48187E-04   -1.4040    
  12  Prefactor     .10000E-03    23.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0137        1.6823        .12461E-02   -1.5507    
  14  norm          15.231        7.5422        .10264E-03   -1.4927    
  15  norm          6.5762        11.333        .15647E-03   -1.5195    
  16  Prefactor     .10000E-03    15.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9709        .99140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9784        .99287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4013        53.872        .13732E-03   -1.5128    
  21  norm          7.0177        8.1924        .15141E-03   -1.5178    
  22  norm          .10000E-03    1.7676        .93505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99032        .36172        .41166E-03   -.93355    
  24  Prefactor     1.2383        .20862        .22692E-03   -.85159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30438e-10
Minuit parameter uncertainties:
  1  20.008
  2  61.0793
  3  25.3038
  4  0.366517
  5  3.34693e-05
  6  4.32764e-05
  7  19.7485
  8  22.1837
  9  2.44293e-06
  10  28.1497
  11  21.4436
  12  1.63317e-05
  13  1.68233
  14  7.54269
  15  11.3372
  16  1.73348e-05
  17  2.79074e-06
  18  5.89141e-07
  19  1.87458e-06
  20  42.6045
  21  8.19369
  22  4.34248e-06
  23  0.36262
  24  0.208759
Done.

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

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  6.939e+01  2.144e+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:  1.238e+00  2.088e-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:  9.903e-01  3.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.09
Ra Dec: 200.664 -9.607
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 3.95e-07 +/- 1.22e-07
Energy Flux (Fixed Index): 1.02e-04 +/- 3.14e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5235.87288519
delta logL = 3.54523872375e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5235.87286395
delta logL = 5.66958351556e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.257       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6249       1.0000          .0000       10.000    
     3 'Normalizat'    .98933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2387       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.

 FCN=   5235.873     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      233 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.233        281.32        .12058E-02    .42426E-05
   2  Index         2.6245        3.1707        .95125E-01    .74498E-04
   3  Normalizat    .98954        .30402        .92975E-01    .17089E-04
   4  Prefactor     1.2387        .18834        .51325E-01   -.15533E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.2325
  Index      = 2.62452
  Normalizat = 0.98954
  Prefactor  = 1.2387
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.873     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .98E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.233        26.271        .48234E-04   -1.4042    
   2  Index         2.6245        .34686        .40257E-02   -.49507    
   3  Normalizat    .98954        .34649        .41180E-03   -.93382    
   4  Prefactor     1.2387        .20629        .22690E-03   -.85148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77823e-13
Minuit parameter uncertainties:
  1  26.2753
  2  0.347221
  3  0.347281
  4  0.206422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521015': 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) = 5235.8728613
delta logL = 5.93503509663e-05

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  6.923e+01  2.628e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.625e+00  3.472e-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:  1.239e+00  2.064e-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:  9.895e-01  3.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.22
Ra Dec: 200.664 -9.607
Photon Index (Free Index): 2.62 +/- 0.35
Photon Flux (Free Index): 3.96e-07 +/- 1.35e-07
Energy Flux (Free Index): 1.02e-04 +/- 3.45e-05

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/521015/cmap_HighResolution_498009601_498268801_4FGL_J1322.6-0936_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.95e-07', energy_flux2='1.02e-04', photon_flux_error='1.22e-07', dlogl='5.94e-05', energy_flux='1.02e-04', photon_flux2='3.96e-07', job_status='DONE', time_completed='2021-09-07 14:51:48.015720', photon_index_error2='0.35', photon_index2='2.62', ts='21.09', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='3.45e-05', EG='0.99', time_epoch_completed='1631051508.02', return_code='0', job_id='521015', GAL2='1.24', EG2='0.99', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='1.35e-07', ts2='21.22', photon_index='2.62' WHERE bin_id='998' AND source_name='4FGL J1322.6-0936' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:51:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 521015: <4FGL_J1322.6-0936_daily_bin998> in cluster <slac> Done

Job <4FGL_J1322.6-0936_daily_bin998> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 14:35:43 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:39:34 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:39:34 2021
Terminated at Tue Sep  7 14:51:48 2021
Results reported at Tue Sep  7 14:51:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.6-0936_daily_bin998 200.664 -9.6075 498009601 498268801 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 :                                   588.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            965 sec.

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

