/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 34 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1
RA = 203.059, Dec = 47.3728
tmin = 239587201, tmax = 239846401
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='743553', job_status='RUN', time_executed='2021-09-08 01:56:49.234802', time_epoch_executed='1631091409.23' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743553

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743553/ft1_4FGL_J1332.2+4722_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743553/ft1_4FGL_J1332.2+4722_daily_bin1.fits outfile=/scratch/kocevski/743553/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1.fits ra=203.059 dec=47.3728 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.33
user 1.13
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/743553/ltcube_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.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/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits
.....................!
real 17.42
user 17.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/743553/ltcube_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.fits outfile=/scratch/kocevski/743553/expmap_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.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/743553/ltcube_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.fits
.....................!
real 192.10
user 186.52
sys 5.06

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/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits scfile=/scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits outfile=/scratch/kocevski/743553/cmap_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.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.57
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits scfile=/scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits outfile=/scratch/kocevski/743553/cmap_HighResolution_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743553/Model_4FGL_J1332.2+4722_daily_bin1.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/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits.....................!
real 37.50
user 36.14
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits', '/scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits', expMap='/scratch/kocevski/743553/expmap_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.fits', expCube='/scratch/kocevski/743553/ltcube_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/743553/Model_4FGL_J1332.2+4722_daily_bin1.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/743553/ft1_filtered_4FGL_J1332.2+4722_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/743553/ft2_4FGL_J1332.2+4722_daily_bin1.fits
Exposure map: /scratch/kocevski/743553/expmap_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.fits
Exposure cube: /scratch/kocevski/743553/ltcube_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/743553/Model_4FGL_J1332.2+4722_daily_bin1.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) = 3661.88425722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.925       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4260       1.0000         .10000E-03   10000.    
    13 'norm      '    20.348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.689       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4593       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .46786       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11968E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .48142       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7290       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28336E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.3538       1.0000         .10000E-03   10000.    
    27 'Prefactor '    53.997       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .87630       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92582       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=   3661.871     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4126 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9682        .13342E-06** at limit **
   2  Prefactor     5.1453        20.206       -.10185E-05    .24753E-04
   3  Prefactor     17.918        20.420        .15572E-06    .41607E-05
   4  norm          .10000E-03    .84158       -.24523E-07** at limit **
   5  Prefactor     .10000E-03    33.269        .72267E-07** at limit **
   6  Prefactor     .10000E-03    7.2284       -.47239E-07** at limit **
   7  Prefactor     .10000E-03    27.387       -.57734E-06** at limit **
   8  norm          .10000E-03    10.349       -.86612E-07** at limit **
   9  norm          .10000E-03    1.1371       -.16499E-07** at limit **
  10  Prefactor     .10000E-03    15.097       -.86972E-06** at limit **
  11  Prefactor     .10000E-03    28.883        .58883E-06** at limit **
  12  Prefactor     9.4239        22.788       -.45699E-06    .70093E-05
  13  norm          20.345        7.7985        .27101E-06   -.41851E-03
  14  Prefactor     .10000E-03    41.631        .33867E-06** at limit **
  15  Prefactor     18.669        109.24        .34333E-05   -.19040E-06
  16  Prefactor     .10000E-03    28.278        .41753E-06** at limit **
  17  norm          2.4589        1.6413       -.52022E-07   -.14973E-03
  18  norm          .10000E-03    37.334       -.15472E-05** at limit **
  19  norm          .44106        4.4913        .14639E-05    .89402E-04
  20  norm          .10000E-03    6.6711       -.95526E-07** at limit **
  21  Prefactor     .10004E-03    373.78        .18020E-04** at limit **
  22  Prefactor     .41564        169.84       -.60033E-04    .12616E-04
  23  Prefactor     2.7462        297.66        .61100E-05    .13404E-04
  24  Prefactor     .10000E-03    4.4413       -.45380E-06** at limit **
  25  Prefactor     .10000E-03    16.656        .18175E-05** at limit **
  26  Prefactor     2.3490        6.4640       -.25722E-05   -.21183E-03
  27  Prefactor     54.083        69.121        .10922E-06   -.12777E-03
  28  Prefactor     .10001E-03    155.10       -.12201E-04** at limit **
  29  Prefactor     .10000E-03    17.928       -.19642E-05** at limit **
  30  Normalizat    .87651        .20117        .45202E-06   -.10827E-03
  31  Prefactor     .92582        .22715        .83473E-06   -.12807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.14531
  Prefactor  = 17.9177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 9.42386
  norm       = 20.3451
  Prefactor  = 0.0001
  Prefactor  = 18.6695
  Prefactor  = 0.0001
  norm       = 2.45888
  norm       = 0.0001
  norm       = 0.441061
  norm       = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.415641
  Prefactor  = 2.7462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.349
  Prefactor  = 54.0828
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 0.876509
  Prefactor  = 0.925818
 **********
 **   18 **HESSE 
 **********

 FCN=   3661.871     FROM HESSE     STATUS=OK           618 CALLS     4744 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9816        .13115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1453        20.109        .17724E-03   -1.5254    
   3  Prefactor     17.918        20.451        .94599E-04   -1.4861    
   4  norm          .10000E-03    .84516        .54208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2828        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1379        .63017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.4239        22.774        .13053E-03   -1.5094    
  13  norm          20.345        7.7859        .88792E-04   -1.4806    
  14  Prefactor     .10000E-03    41.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.669        112.85        .92646E-04   -1.4844    
  16  Prefactor     .10000E-03    28.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4589        1.6410        .60631E-04   -1.5394    
  18  norm          .10000E-03    37.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .44106        21.000        .23183E-02   -1.5575    
  20  norm          .10000E-03    6.6868        .15264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    384.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .41564        167.75        .48237E-02   -1.5579    
  23  Prefactor     2.7462        278.10        .24650E-03   -1.5377    
  24  Prefactor     .10000E-03    21.762        .23662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.3490        6.5900        .16859E-03   -1.5401    
  27  Prefactor     54.083        69.782        .54585E-04   -1.4236    
  28  Prefactor     .10001E-03    154.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .87651        .23913        .21743E-03   -.97291    
  31  Prefactor     .92582        .26666        .26028E-03   -.95245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90668e-10
Minuit parameter uncertainties:
  1  5.64485e-05
  2  20.1356
  3  20.459
  4  1.69562e-06
  5  2.36993e-05
  6  7.31056e-06
  7  6.83339e-05
  8  1.14411e-05
  9  3.05301e-06
  10  2.51323e-05
  11  0.000586184
  12  22.7951
  13  7.78633
  14  7.63926e-05
  15  92.0615
  16  8.30372e-06
  17  1.64107
  18  1.3014e-05
  19  6.08843
  20  2.21262e-05
  21  0.00774231
  22  16.7458
  23  55.5373
  24  7.04165e-05
  25  1.71057e-05
  26  6.59199
  27  69.8876
  28  0.00196116
  29  0.000160769
  30  0.239417
  31  0.267035
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  9.424e+00  2.280e+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:  9.258e-01  2.670e-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.765e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/743553/likelihoodResults_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.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) = 3661.62845145
delta logL = 0.242050581942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3661.62808522
delta logL = 0.242416811552

Fit tolerance = 1e-08

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

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

 FCN=   3661.628     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.083        51.511        .22421E-02    .53284E-04
   2  Index         1.8162        1.1616        .27007       -.23768E-04
   3  Normalizat    .88553        .18338        .44717E-01    .48029E-04
   4  Prefactor     .91344        .22641        .45177E-01    .35640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0831
  Index      = 1.81616
  Normalizat = 0.885534
  Prefactor  = 0.913435
 **********
 **   18 **HESSE 
 **********

 FCN=   3661.628     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.083        31.588        .44842E-03   -1.4811    
   2  Index         1.8162        .90754        .10984E-01   -.69030    
   3  Normalizat    .88553        .21184        .21639E-03   -.96970    
   4  Prefactor     .91344        .26131        .26162E-03   -.95673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01232e-12
Minuit parameter uncertainties:
  1  31.6145
  2  0.916141
  3  0.212042
  4  0.261667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743553': 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) = 3661.62806095
delta logL = 0.242441080359

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  2.008e+01  3.161e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  1.816e+00  9.161e-01  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:  9.134e-01  2.617e-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.855e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/743553/cmap_HighResolution_239587201_239846401_4FGL_J1332.2+4722_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.65e-08', time_completed='2021-09-08 02:08:33.342253', job_id='743553', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.88', time_epoch_completed='1631092113.34', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.42e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:08:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 743553: <4FGL_J1332.2+4722_daily_bin1> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:55:26 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:56:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:56:06 2021
Terminated at Wed Sep  8 02:08:34 2021
Results reported at Wed Sep  8 02:08:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1 203.059 47.3728 239587201 239846401 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 :                                   702.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            788 sec.

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

