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


Performing analysis on: 4FGL_J1322.6-0936_daily_bin515
RA = 200.664, Dec = -9.6075
tmin = 372816001, tmax = 373075201
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='519291', job_status='RUN', time_executed='2021-09-07 14:34:32.380891', time_epoch_executed='1631050472.38' WHERE source_name='4FGL J1322.6-0936' and cadence='daily' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519291

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519291/ft1_4FGL_J1322.6-0936_daily_bin515.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519291/ft2_4FGL_J1322.6-0936_daily_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519291/ft1_4FGL_J1322.6-0936_daily_bin515.fits outfile=/scratch/kocevski/519291/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin515.fits ra=200.664 dec=-9.6075 rad=12.0 tmin=372816001.0 tmax=373075201.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 4.47
user 4.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519291/ft1_filtered_4FGL_J1322.6-0936_daily_bin515.fits" evtable="EVENTS" scfile=/scratch/kocevski/519291/ft2_4FGL_J1322.6-0936_daily_bin515.fits sctable="SC_DATA" outfile=/scratch/kocevski/519291/ltcube_372816001_373075201_4FGL_J1322.6-0936_daily_bin515.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/519291/ft2_4FGL_J1322.6-0936_daily_bin515.fits
.....................!
real 16.08
user 15.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519291/ft1_filtered_4FGL_J1322.6-0936_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/519291/ft2_4FGL_J1322.6-0936_daily_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/519291/ltcube_372816001_373075201_4FGL_J1322.6-0936_daily_bin515.fits outfile=/scratch/kocevski/519291/expmap_372816001_373075201_4FGL_J1322.6-0936_daily_bin515.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/519291/ltcube_372816001_373075201_4FGL_J1322.6-0936_daily_bin515.fits
.....................!
real 192.82
user 187.73
sys 4.65

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/519291/ft1_filtered_4FGL_J1322.6-0936_daily_bin515.fits scfile=/scratch/kocevski/519291/ft2_4FGL_J1322.6-0936_daily_bin515.fits outfile=/scratch/kocevski/519291/cmap_372816001_373075201_4FGL_J1322.6-0936_daily_bin515.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519291/ft1_filtered_4FGL_J1322.6-0936_daily_bin515.fits scfile=/scratch/kocevski/519291/ft2_4FGL_J1322.6-0936_daily_bin515.fits outfile=/scratch/kocevski/519291/cmap_HighResolution_372816001_373075201_4FGL_J1322.6-0936_daily_bin515.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.481       1.0000         .10000E-03   10000.    
     4 'norm      '    .31662E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.229       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8147       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3351       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80930       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9057       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5081       1.0000         .10000E-03   10000.    
    15 'norm      '    .11227E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .48848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.912       1.0000         .10000E-03   10000.    
    20 'Prefactor '    102.94       1.0000         .10000E-03   10000.    
    21 'norm      '    7.5547       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4770       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3431       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1786       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=   6926.653     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2797 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8013        15.867        .28463E-05    .11721E-03
   2  Prefactor     .10000E-03    243.30       -.25019E-05** at limit **
   3  norm          29.477        31.224        .46284E-06    .19278E-04
   4  norm          .31073E-01    .16242        .16632E-06   -.10514E-02
   5  norm          4.4494        8.0575        .71283E-06    .75045E-04
   6  Prefactor     .10000E-03    38.749        .45115E-06** at limit **
   7  norm          37.222        17.235        .11158E-05    .63817E-03
   8  norm          .10000E-03    7.6062        .53680E-07** at limit **
   9  Prefactor     4.8150        6.5038        .13845E-05    .10798E-03
  10  Prefactor     7.3375        19.954        .22421E-06   -.74967E-04
  11  Prefactor     30.539        14.654        .87344E-07    .87589E-04
  12  Prefactor     .78695        13.499       -.40877E-05    .72962E-03
  13  norm          2.9054        1.8726        .13856E-06    .22947E-04
  14  norm          5.5138        4.1285        .12343E-06    .79327E-03
  15  norm          .10000E-03    3.8847        .45617E-06** at limit **
  16  Prefactor     .10000E-03    5.2728       -.17772E-07** at limit **
  17  norm          .10000E-03    20.384        .75932E-07** at limit **
  18  norm          .48600        4.4564       -.35773E-06    .11716E-04
  19  Prefactor     10.912        7.9866       -.81411E-06    .10373E-03
  20  Prefactor     102.97        70.540        .32742E-05    .46065E-03
  21  norm          7.5532        11.482        .39840E-05    .62369E-04
  22  norm          2.4767        4.1518        .47917E-06   -.82360E-05
  23  Normalizat    1.3432        .28030       -.24527E-05   -.15320E-04
  24  Prefactor     1.1786        .15380       -.89271E-06   -.33208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80126
  Prefactor  = 0.000100001
  norm       = 29.4768
  norm       = 0.0310734
  norm       = 4.44938
  Prefactor  = 0.0001
  norm       = 37.2224
  norm       = 0.0001
  Prefactor  = 4.815
  Prefactor  = 7.33751
  Prefactor  = 30.5395
  Prefactor  = 0.786952
  norm       = 2.90543
  norm       = 5.51377
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.485999
  Prefactor  = 10.9125
  Prefactor  = 102.969
  norm       = 7.55319
  norm       = 2.4767
  Normalizat = 1.3432
  Prefactor  = 1.17863
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.653     FROM HESSE     STATUS=OK           413 CALLS     3210 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8013        16.110        .20694E-03   -1.5318    
   2  Prefactor     .10000E-03    249.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.477        31.222        .73789E-04   -1.4622    
   4  norm          .31073E-01    .38025        .60113E-03   -1.5673    
   5  norm          4.4494        8.0601        .19088E-03   -1.5286    
   6  Prefactor     .10000E-03    38.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.222        17.569        .65685E-04   -1.4487    
   8  norm          .10000E-03    7.6758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8150        6.5247        .91671E-03   -1.5269    
  10  Prefactor     7.3375        20.053        .14809E-03   -1.5166    
  11  Prefactor     30.539        14.689        .72501E-04   -1.4602    
  12  Prefactor     .78695        65.204        .47095E-02   -1.5531    
  13  norm          2.9054        1.8708        .86786E-04   -1.5367    
  14  norm          5.5138        4.2988        .12675E-03   -1.5238    
  15  norm          .10000E-03    10.962        .31265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.2803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .48600        11.058        .32965E-02   -1.5569    
  19  Prefactor     10.912        7.9934        .12129E-03   -1.5047    
  20  Prefactor     102.97        74.194        .19815E-03   -1.3675    
  21  norm          7.5532        11.775        .72953E-03   -1.5158    
  22  norm          2.4767        4.1370        .20887E-03   -1.5393    
  23  Normalizat    1.3432        .32500        .36271E-03   -.82286    
  24  Prefactor     1.1786        .18063        .22987E-03   -.86991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31436e-08
Minuit parameter uncertainties:
  1  15.6581
  2  0.00121222
  3  31.2389
  4  0.217052
  5  8.06205
  6  0.000126861
  7  17.5711
  8  4.62031e-06
  9  6.52562
  10  20.0712
  11  14.6904
  12  14.3418
  13  1.87088
  14  4.29901
  15  0.000161197
  16  2.20655e-06
  17  3.18034e-05
  18  4.63684
  19  7.99419
  20  74.2607
  21  11.7785
  22  4.13752
  23  0.325501
  24  0.180728
Done.

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

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  3.054e+01  1.469e+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.179e+00  1.807e-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.343e+00  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 200.664 -9.607
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 1.74e-07 +/- 8.36e-08
Energy Flux (Fixed Index): 4.48e-05 +/- 2.15e-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) = 6926.57127688
delta logL = 0.0816910706817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6926.56798336
delta logL = 0.0849845897137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.710       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8258       1.0000          .0000       10.000    
     3 'Normalizat'    1.3220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1882       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=   6926.568     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      304 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.714        17.246        .77515E-04    .39013E-04
   2  Index         2.8257        .53933        .59479E-02    .36874E-03
   3  Normalizat    1.3220        .29909        .36508E-03    .30299E-04
   4  Prefactor     1.1882        .17606        .22910E-03   -.66536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7142
  Index      = 2.82567
  Normalizat = 1.32198
  Prefactor  = 1.1882
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.568     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.714        16.651        .31006E-05   -1.4674    
   2  Index         2.8257        .52047        .11896E-02   -.44989    
   3  Normalizat    1.3220        .29926        .14603E-04   -.82912    
   4  Prefactor     1.1882        .17609        .45819E-04   -.86695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19444e-11
Minuit parameter uncertainties:
  1  16.6543
  2  0.521633
  3  0.299651
  4  0.176181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519291': 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) = 6926.5679833
delta logL = 0.0849846512338

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  2.671e+01  1.665e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.826e+00  5.216e-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.188e+00  1.762e-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.322e+00  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.27
Ra Dec: 200.664 -9.607
Photon Index (Free Index): 2.83 +/- 0.52
Photon Flux (Free Index): 1.92e-07 +/- 9.77e-08
Energy Flux (Free Index): 4.24e-05 +/- 2.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/519291/cmap_HighResolution_372816001_373075201_4FGL_J1322.6-0936_daily_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-07', energy_flux2='4.24e-05', photon_flux_error='8.36e-08', dlogl='8.50e-02', energy_flux='4.48e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-09-07 14:45:39.012441', photon_index_error2='0.52', photon_index2='2.83', ts='7.06', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.34', time_epoch_completed='1631051139.01', return_code='0', job_id='519291', GAL2='1.19', EG2='1.32', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='9.77e-08', ts2='7.27', photon_index='2.62' WHERE bin_id='515' AND source_name='4FGL J1322.6-0936' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 519291: <4FGL_J1322.6-0936_daily_bin515> in cluster <slac> Done

Job <4FGL_J1322.6-0936_daily_bin515> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 14:30:55 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:31:17 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:31:17 2021
Terminated at Tue Sep  7 14:45:39 2021
Results reported at Tue Sep  7 14:45:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.6-0936_daily_bin515 200.664 -9.6075 372816001 373075201 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 :                                   665.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            884 sec.

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

