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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin21
RA = 203.059, Dec = 47.3728
tmin = 244771201, tmax = 245030401
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='743584', job_status='RUN', time_executed='2021-09-08 01:58:20.471301', time_epoch_executed='1631091500.47' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743584/ft1_4FGL_J1332.2+4722_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743584/ft2_4FGL_J1332.2+4722_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743584/ft1_4FGL_J1332.2+4722_daily_bin21.fits outfile=/scratch/kocevski/743584/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin21.fits ra=203.059 dec=47.3728 rad=12.0 tmin=244771201.0 tmax=245030401.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.48
user 1.28
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743584/ft2_4FGL_J1332.2+4722_daily_bin21.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/743584/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/743584/ft1_filtered_4FGL_J1332.2+4722_daily_bin21.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/743584/ft1_filtered_4FGL_J1332.2+4722_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/743584/ft2_4FGL_J1332.2+4722_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/743584/ltcube_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.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/743584/ft2_4FGL_J1332.2+4722_daily_bin21.fits
.....................!
real 18.10
user 17.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743584/ft1_filtered_4FGL_J1332.2+4722_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/743584/ft2_4FGL_J1332.2+4722_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/743584/ltcube_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.fits outfile=/scratch/kocevski/743584/expmap_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.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/743584/ltcube_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.fits
.....................!
real 193.89
user 189.11
sys 4.31

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/743584/ft1_filtered_4FGL_J1332.2+4722_daily_bin21.fits scfile=/scratch/kocevski/743584/ft2_4FGL_J1332.2+4722_daily_bin21.fits outfile=/scratch/kocevski/743584/cmap_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743584/ft1_filtered_4FGL_J1332.2+4722_daily_bin21.fits scfile=/scratch/kocevski/743584/ft2_4FGL_J1332.2+4722_daily_bin21.fits outfile=/scratch/kocevski/743584/cmap_HighResolution_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.375       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2940       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.111       1.0000         .10000E-03   10000.    
    16 'Prefactor '    96.775       1.0000         .10000E-03   10000.    
    17 'norm      '    .12965       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.1920       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15256E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    40.208       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .75474       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11576E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.8527       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1945       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .68602       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=   4655.963     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     4128 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9355       -.22940E-07** at limit **
   2  Prefactor     .10000E-03    13.390       -.95658E-06** at limit **
   3  Prefactor     21.380        22.279        .48190E-08    .18179E-04
   4  norm          1.2940        2.7172        .11713E-06   -.71954E-05
   5  Prefactor     42.985        54.189        .27528E-06    .10222E-04
   6  Prefactor     .10000E-03    17.428        .30379E-06** at limit **
   7  Prefactor     .10000E-03    6.1385       -.25903E-06** at limit **
   8  norm          .10000E-03    7.5332       -.69738E-06** at limit **
   9  norm          .10000E-03    2.1568        .58048E-07** at limit **
  10  Prefactor     3.6218        104.68       -.17098E-05    .48165E-05
  11  Prefactor     .10000E-03    9.0093        .92384E-06** at limit **
  12  Prefactor     .10000E-03    35.620       -.13273E-05** at limit **
  13  norm          2.0586        3.8532        .26817E-05    .11369E-04
  14  Prefactor     49.802        60.345       -.15857E-05    .11318E-05
  15  Prefactor     57.115        50.272       -.23302E-06    .42582E-06
  16  Prefactor     96.780        55.343       -.38220E-06    .32874E-05
  17  norm          .12943        1.0809        .30510E-06   -.16434E-03
  18  norm          .10000E-03    37.042       -.21288E-05** at limit **
  19  norm          4.1924        5.2724        .47345E-06    .37151E-04
  20  norm          .10000E-03    6.6532        .82353E-06** at limit **
  21  Prefactor     .10000E-03    12.119       -.10191E-06** at limit **
  22  Prefactor     .10000E-03    7.6854       -.74462E-06** at limit **
  23  Prefactor     .10000E-03    51.383       -.16224E-05** at limit **
  24  Prefactor     .10000E-03    4.3165       -.71922E-06** at limit **
  25  Prefactor     40.222        25.763       -.71109E-06   -.19313E-04
  26  Prefactor     .75238        2.0418       -.29851E-06   -.37777E-03
  27  Prefactor     .10000E-03    61.505        .34553E-05** at limit **
  28  Prefactor     .10000E-03    26.605        .23434E-05** at limit **
  29  Prefactor     4.8506        19.279       -.57193E-07   -.22267E-04
  30  Normalizat    1.1942        .20110       -.15068E-05   -.94659E-04
  31  Prefactor     .68636        .22859        .14206E-05   -.38936E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3797
  norm       = 1.29401
  Prefactor  = 42.9847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.62178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05861
  Prefactor  = 49.8017
  Prefactor  = 57.1148
  Prefactor  = 96.7803
  norm       = 0.129427
  norm       = 0.0001
  norm       = 4.19244
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.2218
  Prefactor  = 0.752375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.85063
  Normalizat = 1.19421
  Prefactor  = 0.686362
 **********
 **   18 **HESSE 
 **********

 FCN=   4655.963     FROM HESSE     STATUS=OK           618 CALLS     4746 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9377        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.380        22.276        .86635E-04   -1.4783    
   4  norm          1.2940        2.6812        .15526E-03   -1.5480    
   5  Prefactor     42.985        54.207        .61147E-04   -1.4396    
   6  Prefactor     .10000E-03    17.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1453        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1708        .97752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6218        104.58        .21245E-03   -1.5327    
  11  Prefactor     .10000E-03    9.0385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0586        3.8892        .88746E-03   -1.5421    
  14  Prefactor     49.802        60.443        .56831E-04   -1.4295    
  15  Prefactor     57.115        50.300        .53084E-04   -1.4195    
  16  Prefactor     96.780        55.324        .40860E-04   -1.3737    
  17  norm          .12943        2.0527        .13284E-02   -1.5636    
  18  norm          .10000E-03    37.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1924        5.2302        .16305E-03   -1.5298    
  20  norm          .10000E-03    6.6634        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.6913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    51.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.8596        .26763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     40.222        25.813        .63214E-04   -1.4439    
  26  Prefactor     .75238        1.9433        .15296E-02   -1.5534    
  27  Prefactor     .10000E-03    62.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    26.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.8506        19.242        .18261E-03   -1.5267    
  30  Normalizat    1.1942        .23495        .20358E-03   -.86782    
  31  Prefactor     .68636        .26711        .31516E-03   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27706e-08
Minuit parameter uncertainties:
  1  3.24325e-08
  2  1.66227e-05
  3  22.2843
  4  2.6814
  5  54.2691
  6  1.81822e-05
  7  1.04929e-06
  8  8.73292e-06
  9  4.28969e-06
  10  38.9987
  11  2.34597e-06
  12  9.64474e-05
  13  3.88967
  14  60.5174
  15  50.3376
  16  55.3537
  17  1.03052
  18  5.3722e-05
  19  5.23079
  20  1.32357e-05
  21  2.51399e-06
  22  7.63058e-06
  23  0.00012334
  24  7.50474e-05
  25  25.8199
  26  1.94351
  27  0.000299299
  28  5.07591e-05
  29  19.2666
  30  0.235159
  31  0.267608
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  9.645e-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:  6.864e-01  2.676e-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.194e+00  2.352e-01  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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743584/likelihoodResults_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.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) = 4655.96317907
delta logL = -0.00013376458628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4655.96304615
delta logL = -8.38316736917e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9928       1.0000          .0000       10.000    
     3 'Normalizat'    1.1942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68636       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=   4655.963     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10488E-03    19.496        .18142E-01** at limit **
   2  Index         2.8882        6.0871        .50000        .11104E-04
   3  Normalizat    1.1942        .37408E-02    .20358E-03    .41246E-04
   4  Prefactor     .68636        .45254E-02    .31516E-03    .45633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104881
  Index      = 2.88816
  Normalizat = 1.19421
  Prefactor  = 0.686362
 **********
 **   18 **HESSE 
 **********

 FCN=   4655.963     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10488E-03    119.97        .34702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8882        7.9489        .50000       -.43606    
   3  Normalizat    1.1942        .92621E-02    .40717E-04   -.86782    
   4  Prefactor     .68636        .11205E-01    .12606E-04   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57232e-09
Minuit parameter uncertainties:
  1  0.0484937
  2  357.869
  3  0.0092621
  4  0.0112049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743584': 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) = 4655.96304581
delta logL = -5.02308466821e-07

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.049e-04  4.849e-02  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.888e+00  3.579e+02  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:  6.864e-01  1.120e-02  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.194e+00  9.262e-03  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/743584/cmap_HighResolution_244771201_245030401_4FGL_J1332.2+4722_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.55e-08', time_completed='2021-09-08 02:12:03.985518', job_id='743584', GAL2='0.69', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631092323.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-5.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='21' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 743584: <4FGL_J1332.2+4722_daily_bin21> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin21> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:55:29 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:56:15 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:15 2021
Terminated at Wed Sep  8 02:12:04 2021
Results reported at Wed Sep  8 02:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin21 203.059 47.3728 244771201 245030401 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 :                                   819.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            995 sec.

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

