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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1182
RA = 203.059, Dec = 47.3728
tmin = 545702401, tmax = 545961601
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='753212', job_status='RUN', time_executed='2021-09-08 02:23:19.858074', time_epoch_executed='1631092999.86' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/753212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/753212/ft1_4FGL_J1332.2+4722_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/753212/ft1_4FGL_J1332.2+4722_daily_bin1182.fits outfile=/scratch/kocevski/753212/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1182.fits ra=203.059 dec=47.3728 rad=12.0 tmin=545702401.0 tmax=545961601.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 4.05
user 3.78
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.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/753212/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1182.fits evtable="EVENTS" outfile="/scratch/kocevski/753212/ft1_filtered_4FGL_J1332.2+4722_daily_bin1182.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/753212/ft1_filtered_4FGL_J1332.2+4722_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/753212/ltcube_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.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/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits
.....................!
real 15.18
user 14.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/753212/ft1_filtered_4FGL_J1332.2+4722_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/753212/ltcube_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.fits outfile=/scratch/kocevski/753212/expmap_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.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/753212/ltcube_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.fits
.....................!
real 192.79
user 187.70
sys 4.66

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/753212/ft1_filtered_4FGL_J1332.2+4722_daily_bin1182.fits scfile=/scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits outfile=/scratch/kocevski/753212/cmap_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/753212/ft1_filtered_4FGL_J1332.2+4722_daily_bin1182.fits scfile=/scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits outfile=/scratch/kocevski/753212/cmap_HighResolution_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.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.38
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/753212/ft1_filtered_4FGL_J1332.2+4722_daily_bin1182.fits', '/scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits', expMap='/scratch/kocevski/753212/expmap_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.fits', expCube='/scratch/kocevski/753212/ltcube_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/753212/Model_4FGL_J1332.2+4722_daily_bin1182.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/753212/ft1_filtered_4FGL_J1332.2+4722_daily_bin1182.fits
Spacecraft file(s): /scratch/kocevski/753212/ft2_4FGL_J1332.2+4722_daily_bin1182.fits
Exposure map: /scratch/kocevski/753212/expmap_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.fits
Exposure cube: /scratch/kocevski/753212/ltcube_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/753212/Model_4FGL_J1332.2+4722_daily_bin1182.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 478.485407486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 477.27619316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30678E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89605E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .37014E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.352       1.0000         .10000E-03   10000.    
     8 'norm      '    21.170       1.0000         .10000E-03   10000.    
     9 'norm      '    .10441E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30822E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67743       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    13 'norm      '    .16328       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7312       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5055       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3793       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8570       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0332       1.0000         .10000E-03   10000.    
    20 'norm      '    .22720       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2109       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2441       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12703       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19244E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.3063       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0012       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.1809       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.2044       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .38551       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   477.2129     FROM MIGRAD    STATUS=CONVERGED    255 CALLS      490 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    42.114        .45607E-05** at limit **
   2  Prefactor     .10002E-03    111.93        .18813E-04** at limit **
   3  Prefactor     .10000E-03    89.160        .21331E-04** at limit **
   4  norm          .10000E-03    47.670       -.16285E-04** at limit **
   5  Prefactor     126.84        273.46        .75134E-04    .24738E-03
   6  Prefactor     1.9880        1.0358         .0000         .0000    
   7  Prefactor     59.758        56.885       -.45429E-05   -.46300E-03
   8  norm          .17273E-03    349.56        .76960E-04** at limit **
   9  norm          .10000E-03    14.427        .87728E-07** at limit **
  10  Prefactor     .10022E-03    12.993       -.53851E-04** at limit **
  11  Prefactor     .10014E-03    552.69       -.55129E-05** at limit **
  12  Prefactor     .10018E-03    305.80        .41596E-04** at limit **
  13  norm          .10002E-03    105.10       -.13183E-04** at limit **
  14  Prefactor     7.7312        1.0021         .0000         .0000    
  15  Prefactor     .10000E-03    217.61       -.75776E-05** at limit **
  16  Prefactor     4.5055        1.0063         .0000         .0000    
  17  norm          6.4180        8.7603        .68029E-06   -.58601E-04
  18  norm          3.8570        1.0087         .0000         .0000    
  19  norm          2.0332        1.0340         .0000         .0000    
  20  norm          .10006E-03    217.23        .48498E-05** at limit **
  21  Prefactor     5.2109        1.0047         .0000         .0000    
  22  Prefactor     .10001E-03    51.697        .20398E-04** at limit **
  23  Prefactor     .17851E-01    80.845        .54716E-04   -.24595E-02
  24  Prefactor     .10008E-03    112.26       -.29565E-04** at limit **
  25  Prefactor     .10170E-03    109.68       -.15826E-03** at limit **
  26  Prefactor     2.3063        1.0257         .0000         .0000    
  27  Prefactor     4.0012        1.0080         .0000         .0000    
  28  Prefactor     3.8868        5.7236       -.22840E-04    .26316E-02
  29  Prefactor     6.2044        1.0033         .0000         .0000    
  30  Normalizat    .35261        .74083       -.57024E-04    .63331E-05
  31  Prefactor     1.2647        .90132       -.24374E-05   -.69055E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 126.839
  Prefactor  = 1.98797
  Prefactor  = 59.7584
  norm       = 0.000172725
  norm       = 0.0001
  Prefactor  = 0.000100216
  Prefactor  = 0.000100143
  Prefactor  = 0.000100179
  norm       = 0.000100021
  Prefactor  = 7.73116
  Prefactor  = 0.000100001
  Prefactor  = 4.50549
  norm       = 6.41796
  norm       = 3.85705
  norm       = 2.03325
  norm       = 0.000100059
  Prefactor  = 5.21088
  Prefactor  = 0.000100012
  Prefactor  = 0.0178514
  Prefactor  = 0.00010008
  Prefactor  = 0.0001017
  Prefactor  = 2.30629
  Prefactor  = 4.00118
  Prefactor  = 3.88677
  Prefactor  = 6.20442
  Normalizat = 0.352607
  Prefactor  = 1.26472
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   477.2129     FROM HESSE     STATUS=FAILED        29 CALLS      519 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    42.267        .99020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    111.48        .10494E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    88.691        .94616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    47.916        .97945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     126.84        253.78        .18115E-02   -1.3451    
   6  Prefactor     569.19        567.07         .0000       -1.5426    
   7  Prefactor     59.758        1.0034       -.45429E-05   -1.4160    
   8  norm          .17273E-03    .11841E-01    .76960E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571        .87728E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10022E-03    .28564       -.53851E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10014E-03    .35850       -.55129E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    .31807        .41596E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    .24052       -.13183E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7312        1.0021         .0000       -1.5152    
  15  Prefactor     .10000E-03    .24016       -.75776E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5055        1.0063         .0000       -1.5283    
  17  norm          6.4180        1.0061        .68029E-06   -1.5201    
  18  norm          3.8570        1.0087         .0000       -1.5315    
  19  norm          2.0332        1.0340         .0000       -1.5423    
  20  norm          .10006E-03    .25508        .48498E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2109        1.0047         .0000       -1.5251    
  22  Prefactor     .10001E-03    .20571        .20398E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .17851E-01    .65147E-01    .54716E-04   -1.5735    
  24  Prefactor     .10008E-03    .23229       -.29565E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10170E-03    .25662       -.15826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.3063        1.0257         .0000       -1.5404    
  27  Prefactor     4.0012        1.0080         .0000       -1.5308    
  28  Prefactor     3.8868        .87030       -.22840E-04   -1.5314    
  29  Prefactor     6.2044        1.0033         .0000       -1.5210    
  30  Normalizat    .35261        .67296       -.57024E-04   -1.1983    
  31  Prefactor     1.2647        1.1031       -.24374E-05   -.84362    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.26779e-09
Minuit parameter uncertainties:
  1  0.000334393
  2  0.00259229
  3  3.3421e-05
  4  0.000224158
  5  256.004
  6  1.03576
  7  1.00344
  8  0.00185593
  9  5.39681e-07
  10  0.000496985
  11  0.000452314
  12  0.000476638
  13  0.00014115
  14  1.00211
  15  3.39338e-05
  16  1.00629
  17  1.00614
  18  1.00866
  19  1.03398
  20  0.000244936
  21  1.00468
  22  9.79648e-05
  23  0.0651477
  24  0.000273382
  25  0.00132116
  26  1.02568
  27  1.00803
  28  0.870299
  29  1.00328
  30  0.68936
  31  1.12445
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 477.212858064

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.002e-04  4.766e-04  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:  1.265e+00  1.124e+00  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:  3.526e-01  6.894e-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: 1.01e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/753212/likelihoodResults_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.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) = 477.212871991
delta logL = -1.39265250709e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 477.21285936
delta logL = -1.29586254616e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17195E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0471       1.0000          .0000       10.000    
     3 'Normalizat'    .35153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2659       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=   477.2129     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10936E-03    247.27        .18142E-01** at limit **
   2  Index         2.9078        5.7944        .50000        .14138E-05
   3  Normalizat    .35260        .13899E-01    .35112E-03    .96349E-04
   4  Prefactor     1.2647        .16753E-01    .23092E-03    .13610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109356
  Index      = 2.90783
  Normalizat = 0.352596
  Prefactor  = 1.26474
 **********
 **   18 **HESSE 
 **********

 FCN=   477.2129     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10936E-03    1286.4        .32344E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9078        8.2175        .50000       -.43172    
   3  Normalizat    .35260        .32418E-01    .70223E-04   -1.1983    
   4  Prefactor     1.2647        .39077E-01    .46184E-04   -.84362    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24328e-09
Minuit parameter uncertainties:
  1  0.22441
  2  1477
  3  0.0324195
  4  0.0390783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/753212': 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) = 477.21285814
delta logL = -7.58795408728e-08

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.094e-04  2.244e-01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.908e+00  1.477e+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:  1.265e+00  3.908e-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:  3.526e-01  3.242e-02  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/753212/cmap_HighResolution_545702401_545961601_4FGL_J1332.2+4722_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-02', job_status='DONE', photon_flux_upper_limit='1.01e-06', time_completed='2021-09-08 02:31:08.503050', job_id='753212', GAL2='1.26', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1631093468.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.26', dlogl='-7.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1182' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:31:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 753212: <4FGL_J1332.2+4722_daily_bin1182> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1182 203.059 47.3728 545702401 545961601 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 :                                   347.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            640 sec.

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

