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


Performing analysis on: 4FGL_J1322.6-0936_daily_bin906
RA = 200.664, Dec = -9.6075
tmin = 474163201, tmax = 474422401
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='520879', job_status='RUN', time_executed='2021-09-07 14:38:47.724988', time_epoch_executed='1631050727.73' WHERE source_name='4FGL J1322.6-0936' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520879/ft1_4FGL_J1322.6-0936_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520879/ft2_4FGL_J1322.6-0936_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520879/ft1_4FGL_J1322.6-0936_daily_bin906.fits outfile=/scratch/kocevski/520879/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin906.fits ra=200.664 dec=-9.6075 rad=12.0 tmin=474163201.0 tmax=474422401.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 5.62
user 5.30
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520879/ft1_filtered_4FGL_J1322.6-0936_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/520879/ft2_4FGL_J1322.6-0936_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/520879/ltcube_474163201_474422401_4FGL_J1322.6-0936_daily_bin906.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/520879/ft2_4FGL_J1322.6-0936_daily_bin906.fits
.....................!
real 15.71
user 15.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520879/ft1_filtered_4FGL_J1322.6-0936_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/520879/ft2_4FGL_J1322.6-0936_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/520879/ltcube_474163201_474422401_4FGL_J1322.6-0936_daily_bin906.fits outfile=/scratch/kocevski/520879/expmap_474163201_474422401_4FGL_J1322.6-0936_daily_bin906.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/520879/ltcube_474163201_474422401_4FGL_J1322.6-0936_daily_bin906.fits
.....................!
real 192.47
user 186.11
sys 5.44

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/520879/ft1_filtered_4FGL_J1322.6-0936_daily_bin906.fits scfile=/scratch/kocevski/520879/ft2_4FGL_J1322.6-0936_daily_bin906.fits outfile=/scratch/kocevski/520879/cmap_474163201_474422401_4FGL_J1322.6-0936_daily_bin906.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.59
user 0.39
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520879/ft1_filtered_4FGL_J1322.6-0936_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/520879/ft2_4FGL_J1322.6-0936_daily_bin906.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520879/Model_4FGL_J1322.6-0936_daily_bin906.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/520879/ft1_filtered_4FGL_J1322.6-0936_daily_bin906.fits.....................!
real 34.36
user 32.94
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.658       1.0000         .10000E-03   10000.    
     2 'Prefactor '    200.00       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3643       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.003       1.0000         .10000E-03   10000.    
     8 'norm      '    20.762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.867       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7611       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.280       1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6922       1.0000         .10000E-03   10000.    
    22 'norm      '    6.0391       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1515       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0145       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=   3383.963     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2716 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.636        25.294        .61745E-06   -.75526E-04
   2  Prefactor     200.07        127.86        .27273E-05    .38869E-04
   3  norm          .10000E-03    27.448        .28433E-06** at limit **
   4  norm          1.3642        .55420       -.28266E-07    .15031E-03
   5  norm          .10000E-03    17.354        .56679E-06** at limit **
   6  Prefactor     .10000E-03    43.563        .17131E-06** at limit **
   7  norm          12.003        15.706        .17321E-05   -.35179E-04
   8  norm          20.767        17.388        .40139E-06   -.15625E-05
   9  Prefactor     .10000E-03    14.726        .40075E-06** at limit **
  10  Prefactor     .10000E-03    24.727        .26151E-06** at limit **
  11  Prefactor     .10000E-03    5.3367        .65531E-07** at limit **
  12  Prefactor     47.835        68.937        .11768E-04    .17637E-03
  13  norm          .10000E-03    .76221        .14760E-06** at limit **
  14  norm          2.7569        19.212       -.10418E-04   -.11359E-03
  15  norm          .10000E-03    11.428        .12888E-05** at limit **
  16  Prefactor     40.290        26.130       -.14906E-06    .10491E-03
  17  norm          .10000E-03    17.193        .13711E-07** at limit **
  18  norm          .10000E-03    7.8100       -.49276E-06** at limit **
  19  Prefactor     .10000E-03    4.8884       -.10013E-06** at limit **
  20  Prefactor     .10005E-03    1664.9       -.74751E-04** at limit **
  21  norm          7.6933        12.191       -.43612E-07    .89887E-04
  22  norm          6.0390        6.2193        .63799E-06    .73627E-05
  23  Normalizat    1.1518        .34448       -.63968E-06    .12175E-03
  24  Prefactor     1.0143        .20883       -.59518E-05    .48601E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6356
  Prefactor  = 200.07
  norm       = 0.0001
  norm       = 1.36415
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0027
  norm       = 20.7667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.8351
  norm       = 0.0001
  norm       = 2.7569
  norm       = 0.000100001
  Prefactor  = 40.2903
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  norm       = 7.69332
  norm       = 6.039
  Normalizat = 1.15179
  Prefactor  = 1.01434
 **********
 **   18 **HESSE 
 **********

 FCN=   3383.963     FROM HESSE     STATUS=OK           389 CALLS     3105 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.636        25.300        .62865E-04   -1.4432    
   2  Prefactor     200.07        129.37        .14286E-03   -1.2870    
   3  norm          .10000E-03    27.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3642        .56074        .24226E-04   -1.5474    
   5  norm          .10000E-03    17.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.003        15.709        .57812E-03   -1.5015    
   8  norm          20.767        17.390        .87903E-04   -1.4796    
   9  Prefactor     .10000E-03    15.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3524        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.835        65.701        .57957E-04   -1.4324    
  13  norm          .10000E-03    .76896        .49602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7569        17.322        .23485E-03   -1.5376    
  15  norm          .10000E-03    11.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.290        26.150        .63158E-04   -1.4438    
  17  norm          .10000E-03    17.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.0344        .31713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9031        .12543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    1642.8        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6933        12.174        .14459E-03   -1.5153    
  22  norm          6.0390        6.2125        .13910E-03   -1.5216    
  23  Normalizat    1.1518        .39680        .35261E-03   -.88106    
  24  Prefactor     1.0143        .23244        .22136E-03   -.92253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59419e-09
Minuit parameter uncertainties:
  1  25.3064
  2  129.557
  3  3.93495e-05
  4  0.560738
  5  0.000102035
  6  7.96294e-05
  7  15.7144
  8  17.3939
  9  0.000107686
  10  2.41697e-05
  11  1.41143e-05
  12  65.8004
  13  5.10041e-06
  14  13.8266
  15  0.000225733
  16  26.1576
  17  7.60799e-06
  18  0.000108091
  19  4.48267e-05
  20  0.0181683
  21  12.1779
  22  6.21317
  23  0.397836
  24  0.232667
Done.

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

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.411e-05  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.014e+00  2.327e-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.152e+00  3.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/520879/likelihoodResults_474163201_474422401_4FGL_J1322.6-0936_daily_bin906.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) = 3383.96408376
delta logL = -0.000883131833689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3383.96320061
delta logL = 2.26650627155e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6120       1.0000          .0000       10.000    
     3 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0144       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=   3383.963     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.099        .13167E-01** at limit **
   2  Index         2.2161        5.9765        .50000       -.88639E-06
   3  Normalizat    1.1518        .24215E-01    .35261E-03   -.90115E-05
   4  Prefactor     1.0143        .14461E-01    .22136E-03   -.94757E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21613
  Normalizat = 1.1518
  Prefactor  = 1.01433
 **********
 **   18 **HESSE 
 **********

 FCN=   3383.963     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    516.58        .13664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2161        8.8163        .50000       -.59050    
   3  Normalizat    1.1518        .94246E-01    .14104E-04   -.88106    
   4  Prefactor     1.0143        .56287E-01    .88543E-05   -.92253    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0507e-07
Minuit parameter uncertainties:
  1  9.15455e-05
  2  1555.76
  3  0.0942596
  4  0.0562901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520879': 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) = 3383.96319991
delta logL = 7.18272076483e-07

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  9.155e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.216e+00  1.556e+03  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.014e+00  5.629e-02  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.152e+00  9.426e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.664 -9.607

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/520879/cmap_HighResolution_474163201_474422401_4FGL_J1322.6-0936_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-07 14:47:39.331767', job_id='520879', GAL2='1.01', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631051259.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='906' AND source_name='4FGL J1322.6-0936' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:47:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 520879: <4FGL_J1322.6-0936_daily_bin906> in cluster <slac> Done

Job <4FGL_J1322.6-0936_daily_bin906> 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) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:38:31 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:31 2021
Terminated at Tue Sep  7 14:47:39 2021
Results reported at Tue Sep  7 14:47:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.6-0936_daily_bin906 200.664 -9.6075 474163201 474422401 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 :                                   529.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   548 sec.
    Turnaround time :                            726 sec.

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

