/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 118 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.2+0842_daily_bin906
RA = 200.551, Dec = 8.7036
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='514833', job_status='RUN', time_executed='2021-09-07 14:18:48.082713', time_epoch_executed='1631049528.08' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514833

Creating custom pfile directory:
/scratch/kocevski/514833/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/514833/ft1_4FGL_J1322.2+0842_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/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514833/ft1_4FGL_J1322.2+0842_daily_bin906.fits outfile=/scratch/kocevski/514833/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin906.fits ra=200.551 dec=8.7036 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.57
user 5.28
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_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/514833/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/514833/ltcube_474163201_474422401_4FGL_J1322.2+0842_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/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits
.....................!
real 16.67
user 16.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/514833/ltcube_474163201_474422401_4FGL_J1322.2+0842_daily_bin906.fits outfile=/scratch/kocevski/514833/expmap_474163201_474422401_4FGL_J1322.2+0842_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/514833/ltcube_474163201_474422401_4FGL_J1322.2+0842_daily_bin906.fits
.....................!
real 193.52
user 188.40
sys 4.70

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

Setting source of interest to:
4FGL J1322.2+0842 @ 200.551 8.7036

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits scfile=/scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits outfile=/scratch/kocevski/514833/cmap_474163201_474422401_4FGL_J1322.2+0842_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.551 yref=8.7036 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits scfile=/scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits outfile=/scratch/kocevski/514833/cmap_HighResolution_474163201_474422401_4FGL_J1322.2+0842_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.551 yref=8.7036 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514833/Model_4FGL_J1322.2+0842_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/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits.....................!
real 28.85
user 27.57
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits', '/scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits', expMap='/scratch/kocevski/514833/expmap_474163201_474422401_4FGL_J1322.2+0842_daily_bin906.fits', expCube='/scratch/kocevski/514833/ltcube_474163201_474422401_4FGL_J1322.2+0842_daily_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514833/Model_4FGL_J1322.2+0842_daily_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.2+0842'

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.652e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514833/ft1_filtered_4FGL_J1322.2+0842_daily_bin906.fits
Spacecraft file(s): /scratch/kocevski/514833/ft2_4FGL_J1322.2+0842_daily_bin906.fits
Exposure map: /scratch/kocevski/514833/expmap_474163201_474422401_4FGL_J1322.2+0842_daily_bin906.fits
Exposure cube: /scratch/kocevski/514833/ltcube_474163201_474422401_4FGL_J1322.2+0842_daily_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514833/Model_4FGL_J1322.2+0842_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) = 2642.83134588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.365       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.369       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0643       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2642.801     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     1556 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3033        3.3684       -.48685E-07    .19316E-04
   2  Prefactor     .10000E-03    74.231       -.35893E-04** at limit **
   3  Prefactor     24.340        82.190       -.10749E-03    .16060E-05
   4  Prefactor     13.364        16.942        .11337E-04    .24733E-04
   5  Prefactor     .10000E-03    6.7997        .34372E-05** at limit **
   6  Prefactor     .10000E-03    29.704        .99284E-05** at limit **
   7  Prefactor     .10000E-03    5.6402        .11148E-05** at limit **
   8  Prefactor     40.344        48.624       -.27878E-04   -.28797E-05
   9  Prefactor     .10000E-03    65.975        .25213E-04** at limit **
  10  norm          .10000E-03    17.802       -.23019E-04** at limit **
  11  Prefactor     9.1411        8.3428       -.11692E-05   -.12073E-03
  12  Prefactor     .10000E-03    8.7533       -.27637E-05** at limit **
  13  Prefactor     .10000E-03    4.2883       -.12737E-06** at limit **
  14  Prefactor     .10000E-03    15.311        .17358E-04** at limit **
  15  Prefactor     .10000E-03    6.0719       -.31260E-05** at limit **
  16  Normalizat    1.0643        .28754        .38211E-05   -.83260E-04
  17  Prefactor     .95228        .23032        .34268E-05   -.10170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30326
  Prefactor  = 0.0001
  Prefactor  = 24.3399
  Prefactor  = 13.3638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.3444
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.14108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06431
  Prefactor  = 0.952276
 **********
 **   18 **HESSE 
 **********

 FCN=   2642.801     FROM HESSE     STATUS=OK           217 CALLS     1773 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3033        3.3615        .91755E-04   -1.5344    
   2  Prefactor     .10000E-03    74.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.340        82.229        .81095E-04   -1.4721    
   4  Prefactor     13.364        16.950        .10957E-03   -1.4977    
   5  Prefactor     .10000E-03    6.8082        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6435        .11924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.344        48.638        .63089E-04   -1.4437    
   9  Prefactor     .10000E-03    66.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1411        8.3669        .13143E-03   -1.5103    
  12  Prefactor     .10000E-03    8.7554        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3333        .10395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0770        .12374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0643        .34505        .25926E-03   -.90906    
  17  Prefactor     .95228        .27606        .22145E-03   -.94338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70703e-11
Minuit parameter uncertainties:
  1  3.36174
  2  7.3293e-05
  3  82.6159
  4  16.9565
  5  9.78554e-06
  6  0.000135541
  7  4.87003e-06
  8  48.6859
  9  7.40433e-05
  10  4.78652e-06
  11  8.36792
  12  6.55927e-06
  13  2.13828e-05
  14  0.000123104
  15  5.96064e-06
  16  0.345779
  17  0.276472
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.870e-06  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.523e-01  2.765e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.064e+00  3.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 9.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514833/likelihoodResults_474163201_474422401_4FGL_J1322.2+0842_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) = 2642.80178266
delta logL = -0.000831698690035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2642.80095104
delta logL = -7.84020812716e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2387       1.0000          .0000       10.000    
     3 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2642.801     FROM MIGRAD    STATUS=FAILED        89 CALLS      242 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10819E-03    21.843        .12189E-01** at limit **
   2  Index         1.7950        5.8769        .50000        .10057E-04
   3  Normalizat    1.0643        .11837E-01    .25926E-03    .12256E-04
   4  Prefactor     .95228        .96736E-02    .22145E-03   -.38503E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2642.801     FROM SIMPLEX   STATUS=PROGRESS     104 CALLS      346 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10146E-03    21.843        .36293E-03** at limit **
   2  Index         1.7893        5.8769        .20799E-02    .10057E-04
   3  Normalizat    1.0643        .11837E-01    .15612E-04    .12256E-04
   4  Prefactor     .95225        .96736E-02    .11532E-04   -.38503E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2642.801     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      423 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1370.2        .28137E-03** at limit **
   2  Index         1.6019        5.9143        .50000       -.42087E-07
   3  Normalizat    1.0643        .13288        .20741E-05    .20281E-04
   4  Prefactor     .95228        .10861        .17716E-05    .57113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60194
  Normalizat = 1.06431
  Prefactor  = 0.952278
 **********
 **   18 **HESSE 
 **********

 FCN=   2642.801     FROM HESSE     STATUS=OK            29 CALLS      452 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4417        .56274E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6019        9.1904        .50000       -.74723    
   3  Normalizat    1.0643        .32439        .41482E-06   -.90906    
   4  Prefactor     .95228        .26511        .35432E-06   -.94338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6238e-11
Minuit parameter uncertainties:
  1  3.7695e-05
  2  198.605
  3  0.325001
  4  0.265475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514833': 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) = 2642.80094823
delta logL = 2.72929764833e-06

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.770e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.602e+00  1.986e+02  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.523e-01  2.655e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.064e+00  3.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.551 8.704

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/514833/cmap_HighResolution_474163201_474422401_4FGL_J1322.2+0842_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-09-07 14:25:58.075050', job_id='514833', GAL2='0.95', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631049958.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='906' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:25:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 514833: <4FGL_J1322.2+0842_daily_bin906> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin906> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:15:30 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:16:39 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:16:39 2021
Terminated at Tue Sep  7 14:25:58 2021
Results reported at Tue Sep  7 14:25:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin906 200.551 8.7036 474163201 474422401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.2+0842 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   429.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            628 sec.

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

