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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1171
RA = 203.059, Dec = 47.3728
tmin = 542851201, tmax = 543110401
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='753195', job_status='RUN', time_executed='2021-09-08 02:22:56.406094', time_epoch_executed='1631092976.41' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/753195

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/753195/ft1_4FGL_J1332.2+4722_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/753195/ft2_4FGL_J1332.2+4722_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/753195/ft1_4FGL_J1332.2+4722_daily_bin1171.fits outfile=/scratch/kocevski/753195/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1171.fits ra=203.059 dec=47.3728 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.80
user 0.60
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/753195/ft2_4FGL_J1332.2+4722_daily_bin1171.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/753195/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/753195/ft1_filtered_4FGL_J1332.2+4722_daily_bin1171.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.48
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/753195/ft1_filtered_4FGL_J1332.2+4722_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/753195/ft2_4FGL_J1332.2+4722_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/753195/ltcube_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.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/753195/ft2_4FGL_J1332.2+4722_daily_bin1171.fits
.....................!
real 1.96
user 1.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/753195/ft1_filtered_4FGL_J1332.2+4722_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/753195/ft2_4FGL_J1332.2+4722_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/753195/ltcube_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.fits outfile=/scratch/kocevski/753195/expmap_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.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/753195/ltcube_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.fits
.....................!
real 191.40
user 186.11
sys 3.84

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/753195/ft1_filtered_4FGL_J1332.2+4722_daily_bin1171.fits scfile=/scratch/kocevski/753195/ft2_4FGL_J1332.2+4722_daily_bin1171.fits outfile=/scratch/kocevski/753195/cmap_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/753195/ft1_filtered_4FGL_J1332.2+4722_daily_bin1171.fits scfile=/scratch/kocevski/753195/ft2_4FGL_J1332.2+4722_daily_bin1171.fits outfile=/scratch/kocevski/753195/cmap_HighResolution_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.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.53
user 0.38
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10717E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16814E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    681.60       1.0000         .10000E-03   10000.    
     8 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    471.05       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    93.706       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17879E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    100.25       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83344       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=   144.3936     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     4697 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    121.75       -.79718E-07** at limit **
   2  Prefactor     .10000E-03    250.57        .37458E-07** at limit **
   3  Prefactor     .10000E-03    184.00       -.10335E-06** at limit **
   4  norm          .10000E-03    66.332       -.28193E-05** at limit **
   5  Prefactor     .10000E-03    421.85        .60855E-07** at limit **
   6  Prefactor     .10000E-03    235.57       -.39739E-06** at limit **
   7  Prefactor     681.62        417.23        .68353E-06    .22656E-04
   8  norm          .10000E-03    218.95        .30055E-06** at limit **
   9  norm          .10000E-03    27.880       -.18180E-06** at limit **
  10  Prefactor     .10000E-03    152.53       -.12541E-06** at limit **
  11  Prefactor     470.57        577.56       -.94078E-05    .35670E-04
  12  Prefactor     .10000E-03    139.12       -.80743E-07** at limit **
  13  norm          93.754        123.12        .26349E-06    .58148E-04
  14  Prefactor     .10000E-03    8175.3       -.59519E-04** at limit **
  15  Prefactor     .10000E-03    219.99        .63669E-07** at limit **
  16  Prefactor     .10000E-03    526.07       -.73831E-06** at limit **
  17  norm          .10000E-03    4.8690        .34697E-07** at limit **
  18  norm          .10000E-03    1040.3       -.58160E-06** at limit **
  19  norm          .10000E-03    33.940       -.93691E-06** at limit **
  20  norm          .10000E-03    46.320        .50758E-07** at limit **
  21  Prefactor     .10000E-03    325.92       -.57255E-06** at limit **
  22  Prefactor     .10000E-03    81.023        .70199E-07** at limit **
  23  Prefactor     .10000E-03    157.85       -.12986E-06** at limit **
  24  Prefactor     .10000E-03    22.972        .17208E-06** at limit **
  25  Prefactor     100.28        124.20        .24262E-06    .48865E-04
  26  Prefactor     .10000E-03    10.075       -.15086E-06** at limit **
  27  Prefactor     .10000E-03    88.122       -.32582E-07** at limit **
  28  Prefactor     .10000E-03    171.75        .22877E-07** at limit **
  29  Prefactor     .10000E-03    56.345        .57469E-07** at limit **
  30  Normalizat    .10000E-01    .80072       -.19293E-04** at limit **
  31  Prefactor     .83428        .69716        .67052E-05    .49636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 681.615
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 470.57
  Prefactor  = 0.0001
  norm       = 93.7536
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.834283
 **********
 **   18 **HESSE 
 **********

 FCN=   144.3936     FROM HESSE     STATUS=OK           592 CALLS     5289 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    121.78        .12999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    250.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    184.01        .15995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    66.142        .95613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    421.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    235.65        .18116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     681.62        417.69        .79359E-04   -1.0425    
   8  norm          .10000E-03    218.98        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.880        .62095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    152.55        .14556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     470.57        562.89        .94400E-04   -1.1335    
  12  Prefactor     .10000E-03    139.15        .13899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          93.754        123.39        .41517E-04   -1.3768    
  14  Prefactor     .10000E-03    8143.8        .18224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    220.03        .17501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    526.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8689        .25940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1045.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    33.908        .68473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    46.323        .80068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    326.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    81.041        .10597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    157.86        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.970        .56358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     100.28        124.47        .20077E-03   -1.3702    
  26  Prefactor     .10000E-03    10.074        .37315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    88.135        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    171.75        .15450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    56.366        .88337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .84167        .64551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .83428        .71709        .26109E-03   -.98477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51934e-10
Minuit parameter uncertainties:
  1  4.10558e-05
  2  0.000112849
  3  8.63268e-06
  4  8.7888e-05
  5  4.82229e-06
  6  0.000119818
  7  419.627
  8  4.23638e-05
  9  3.91666e-06
  10  3.77515e-05
  11  569.734
  12  4.67267e-05
  13  123.733
  14  0.0124493
  15  6.7914e-05
  16  0.000180378
  17  4.06119e-08
  18  0.00186241
  19  2.53431e-05
  20  9.86188e-06
  21  0.000202617
  22  3.04443e-05
  23  1.98442e-05
  24  8.17757e-07
  25  124.793
  26  2.7863e-06
  27  2.85934e-05
  28  1.61818e-05
  29  2.63826e-05
  30  4.43061e-06
  31  0.725376
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  4.673e-05  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.343e-01  7.254e-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:  1.000e-02  4.431e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 9.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/753195/likelihoodResults_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.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) = 144.393631731
delta logL = -3.38223493372e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 144.393598271
delta logL = -3.62584046343e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1563       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83427       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=   144.3936     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      283 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11416E-03    204.20        .10188E-01** at limit **
   2  Index         2.9473        7.9384        .50000        .36197E-05
   3  Normalizat    .10000E-01    .37478E-02    .64557E-02** at limit **
   4  Prefactor     .83428        .40383E-01    .26108E-03   -.25626E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000114162
  Index      = 2.94732
  Normalizat = 0.01
  Prefactor  = 0.834275
 **********
 **   18 **HESSE 
 **********

 FCN=   144.3936     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11416E-03    1507.4        .11476E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9473        8.1916        .50000       -.42304    
   3  Normalizat    .10000E-01    .29832E-01    .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83428        .11394        .52217E-04   -.98477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62549e-08
Minuit parameter uncertainties:
  1  0.300104
  2  1798.02
  3  2.43823e-07
  4  0.113972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/753195': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 144.39359815
delta logL = -2.41249665578e-07

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.142e-04  3.001e-01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.947e+00  1.798e+03  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.343e-01  1.140e-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:  1.000e-02  2.438e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/753195/cmap_HighResolution_542851201_543110401_4FGL_J1332.2+4722_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-02', job_status='DONE', photon_flux_upper_limit='9.03e-07', time_completed='2021-09-08 02:28:29.153991', job_id='753195', GAL2='0.83', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631093309.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-2.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1171' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:28:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 753195: <4FGL_J1332.2+4722_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1171> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 02:20:27 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:20:44 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:20:44 2021
Terminated at Wed Sep  8 02:28:29 2021
Results reported at Wed Sep  8 02:28:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1171 203.059 47.3728 542851201 543110401 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 :                                   323.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   465 sec.
    Turnaround time :                            482 sec.

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

