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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1399
RA = 203.059, Dec = 47.3728
tmin = 601948801, tmax = 602208001
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='754652', job_status='RUN', time_executed='2021-09-08 02:25:48.654087', time_epoch_executed='1631093148.65' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754652

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754652/ft1_4FGL_J1332.2+4722_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754652/ft1_4FGL_J1332.2+4722_daily_bin1399.fits outfile=/scratch/kocevski/754652/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1399.fits ra=203.059 dec=47.3728 rad=12.0 tmin=601948801.0 tmax=602208001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.89
user 3.65
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.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/754652/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1399.fits evtable="EVENTS" outfile="/scratch/kocevski/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/754652/ltcube_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.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/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits
.....................!
real 16.24
user 15.62
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/754652/ltcube_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.fits outfile=/scratch/kocevski/754652/expmap_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.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/754652/ltcube_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.fits
.....................!
real 192.16
user 186.72
sys 4.51

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

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits scfile=/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits outfile=/scratch/kocevski/754652/cmap_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.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=203.059 yref=47.3728 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits scfile=/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits outfile=/scratch/kocevski/754652/cmap_HighResolution_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.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=203.059 yref=47.3728 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/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754652/Model_4FGL_J1332.2+4722_daily_bin1399.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/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits.....................!
real 47.11
user 45.79
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits', '/scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits', expMap='/scratch/kocevski/754652/expmap_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.fits', expCube='/scratch/kocevski/754652/ltcube_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/754652/Model_4FGL_J1332.2+4722_daily_bin1399.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/754652/ft1_filtered_4FGL_J1332.2+4722_daily_bin1399.fits
Spacecraft file(s): /scratch/kocevski/754652/ft2_4FGL_J1332.2+4722_daily_bin1399.fits
Exposure map: /scratch/kocevski/754652/expmap_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.fits
Exposure cube: /scratch/kocevski/754652/ltcube_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/754652/Model_4FGL_J1332.2+4722_daily_bin1399.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) = 5343.40288475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5222       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.202       1.0000         .10000E-03   10000.    
     8 'norm      '    13.830       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16030E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11273E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0507       1.0000         .10000E-03   10000.    
    18 'norm      '    .10249E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5133       1.0000         .10000E-03   10000.    
    20 'norm      '    30.447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.447       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5685       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3558       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6339       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    67.202       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.5885       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89802       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5343.391     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4147 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5229        6.2633       -.80153E-07   -.39985E-04
   2  Prefactor     .10000E-03    32.564       -.37333E-06** at limit **
   3  Prefactor     .10000E-03    4.5839       -.13200E-09** at limit **
   4  norm          2.5822        1.7111       -.20453E-07    .67718E-06
   5  Prefactor     68.287        51.424       -.22947E-05    .31949E-04
   6  Prefactor     .10000E-03    3.1514       -.32115E-08** at limit **
   7  Prefactor     33.206        18.785       -.91361E-06    .37528E-04
   8  norm          13.828        12.165       -.80808E-07    .89626E-05
   9  norm          2.4207        2.4435       -.55934E-09    .47829E-05
  10  Prefactor     .10042E-03    27.008        .63013E-06** at limit **
  11  Prefactor     9.0315        12.961       -.42709E-06   -.27539E-04
  12  Prefactor     10.074        29.017       -.77211E-06   -.38686E-04
  13  norm          .10000E-03    1.1571        .16548E-07** at limit **
  14  Prefactor     .10000E-03    79.796       -.64544E-06** at limit **
  15  Prefactor     31.903        70.843        .22539E-04   -.96488E-04
  16  Prefactor     .10000E-03    21.440        .12780E-07** at limit **
  17  norm          2.0517        1.3840       -.35503E-07   -.22685E-03
  18  norm          .10000E-03    25.402       -.18915E-06** at limit **
  19  norm          5.5149        4.2383        .21397E-07   -.91473E-04
  20  norm          30.450        17.605       -.39095E-05    .18148E-03
  21  Prefactor     45.450        43.558       -.43011E-06    .33226E-04
  22  Prefactor     4.5692        13.934       -.21802E-06   -.47184E-04
  23  Prefactor     7.3794        47.516       -.17382E-04    .54086E-04
  24  Prefactor     .10000E-03    1.9035        .11490E-06** at limit **
  25  Prefactor     .10000E-03    11.576        .14569E-06** at limit **
  26  Prefactor     1.6341        2.3354       -.43034E-08   -.40342E-03
  27  Prefactor     .10000E-03    28.473        .50492E-06** at limit **
  28  Prefactor     67.207        70.114        .22428E-05    .23553E-04
  29  Prefactor     8.5873        20.678       -.28558E-05   -.66463E-03
  30  Normalizat    .89737        .16322       -.72139E-07    .14834E-04
  31  Prefactor     .80839        .19364        .11304E-05   -.39977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.52286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58221
  Prefactor  = 68.287
  Prefactor  = 0.0001
  Prefactor  = 33.206
  norm       = 13.8285
  norm       = 2.42069
  Prefactor  = 0.000100415
  Prefactor  = 9.03149
  Prefactor  = 10.0742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9029
  Prefactor  = 0.0001
  norm       = 2.05169
  norm       = 0.0001
  norm       = 5.51491
  norm       = 30.4502
  Prefactor  = 45.4499
  Prefactor  = 4.5692
  Prefactor  = 7.3794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63408
  Prefactor  = 0.0001
  Prefactor  = 67.2065
  Prefactor  = 8.5873
  Normalizat = 0.89737
  Prefactor  = 0.80839
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.391     FROM HESSE     STATUS=OK           628 CALLS     4775 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5229        6.2539        .14622E-03   -1.5159    
   2  Prefactor     .10000E-03    33.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5869        .15285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5822        1.7125        .75503E-04   -1.5387    
   5  Prefactor     68.287        51.455        .48579E-04   -1.4053    
   6  Prefactor     .10000E-03    3.1594        .12673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.206        18.799        .69542E-04   -1.4555    
   8  norm          13.828        12.167        .10770E-03   -1.4964    
   9  norm          2.4207        2.4454        .11104E-03   -1.5397    
  10  Prefactor     .10042E-03    31.851        .10313       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.0315        12.972        .13339E-03   -1.5107    
  12  Prefactor     10.074        29.039        .12585E-03   -1.5073    
  13  norm          .10000E-03    1.1621        .76719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    80.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.903        70.038        .71035E-04   -1.4578    
  16  Prefactor     .10000E-03    21.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0517        1.3811        .66719E-04   -1.5421    
  18  norm          .10000E-03    25.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5149        4.2359        .12547E-03   -1.5238    
  20  norm          30.450        17.502        .72613E-04   -1.4604    
  21  Prefactor     45.450        43.476        .59474E-04   -1.4359    
  22  Prefactor     4.5692        13.922        .18833E-03   -1.5280    
  23  Prefactor     7.3794        47.381        .14788E-03   -1.5165    
  24  Prefactor     .10000E-03    1.9115        .98470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.6341        2.3041        .12624E-03   -1.5452    
  27  Prefactor     .10000E-03    28.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     67.207        70.771        .48960E-04   -1.4067    
  29  Prefactor     8.5873        21.627        .68391E-03   -1.5122    
  30  Normalizat    .89737        .19748        .21143E-03   -.96553    
  31  Prefactor     .80839        .23164        .27745E-03   -.99420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90468e-09
Minuit parameter uncertainties:
  1  6.25446
  2  3.2422e-06
  3  2.73724e-07
  4  1.71251
  5  51.4889
  6  7.50105e-07
  7  18.8025
  8  12.169
  9  2.44547
  10  0.00727584
  11  12.9764
  12  29.0798
  13  1.73953e-06
  14  7.10539e-05
  15  70.2191
  16  2.36686e-06
  17  1.38117
  18  5.82151e-06
  19  4.23613
  20  17.505
  21  43.5059
  22  13.9322
  23  37.4409
  24  1.59966e-05
  25  4.9155e-05
  26  2.30426
  27  3.31445e-05
  28  70.8599
  29  21.6466
  30  0.197642
  31  0.231915
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.007e+01  2.908e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.084e-01  2.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  8.974e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754652/likelihoodResults_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.37053903
delta logL = 0.020089634424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.36466566
delta logL = 0.0259630077835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3857       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0433       1.0000          .0000       10.000    
     3 'Normalizat'    .89287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   5343.365     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      241 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3767        29.306        .14758E-03   -.20244E-03
   2  Index         3.0448        2.1773        .13472E-01   -.60323E-04
   3  Normalizat    .89265        .18322        .21193E-03   -.22015E-02
   4  Prefactor     .81237        .22748        .27660E-03   -.14657E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.37669
  Index      = 3.0448
  Normalizat = 0.892647
  Prefactor  = 0.812369
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.365     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3767        23.822        .59032E-05   -1.5165    
   2  Index         3.0448        1.7931        .53888E-03   -.40176    
   3  Normalizat    .89265        .18343        .42387E-04   -.96719    
   4  Prefactor     .81237        .22752        .55321E-04   -.99274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46696e-09
Minuit parameter uncertainties:
  1  23.8528
  2  1.84188
  3  0.183555
  4  0.227781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754652': 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) = 5343.36466446
delta logL = 0.0259642028304

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  7.377e+00  2.385e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  3.045e+00  1.842e+00  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  8.124e-01  2.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  8.926e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 203.059 47.373

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/754652/cmap_HighResolution_601948801_602208001_4FGL_J1332.2+4722_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-08 02:41:11.028763', job_id='754652', GAL2='0.81', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1631094071.03', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.60e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1399' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 754652: <4FGL_J1332.2+4722_daily_bin1399> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1399> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 02:25:24 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:25:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:25:33 2021
Terminated at Wed Sep  8 02:41:11 2021
Results reported at Wed Sep  8 02:41:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1399 203.059 47.3728 601948801 602208001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.2+4722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   914.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            947 sec.

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

