/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7408
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1332.2+4722_daily_bin854
RA = 203.059, Dec = 47.3728
tmin = 460684801, tmax = 460944001
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='750243', job_status='RUN', time_executed='2021-09-08 02:12:31.160208', time_epoch_executed='1631092351.16' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750243/ft1_4FGL_J1332.2+4722_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750243/ft2_4FGL_J1332.2+4722_daily_bin854.fits


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

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

Done.
real 3.34
user 3.11
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750243/ft1_filtered_4FGL_J1332.2+4722_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/750243/ft2_4FGL_J1332.2+4722_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/750243/ltcube_460684801_460944001_4FGL_J1332.2+4722_daily_bin854.fits outfile=/scratch/kocevski/750243/expmap_460684801_460944001_4FGL_J1332.2+4722_daily_bin854.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/750243/ltcube_460684801_460944001_4FGL_J1332.2+4722_daily_bin854.fits
.....................!
real 192.27
user 186.70
sys 4.99

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/750243/ft1_filtered_4FGL_J1332.2+4722_daily_bin854.fits scfile=/scratch/kocevski/750243/ft2_4FGL_J1332.2+4722_daily_bin854.fits outfile=/scratch/kocevski/750243/cmap_460684801_460944001_4FGL_J1332.2+4722_daily_bin854.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750243/ft1_filtered_4FGL_J1332.2+4722_daily_bin854.fits scfile=/scratch/kocevski/750243/ft2_4FGL_J1332.2+4722_daily_bin854.fits outfile=/scratch/kocevski/750243/cmap_HighResolution_460684801_460944001_4FGL_J1332.2+4722_daily_bin854.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1545       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3294       1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.751       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.812       1.0000         .10000E-03   10000.    
     8 'norm      '    .17611E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.138       1.0000         .10000E-03   10000.    
    13 'norm      '    20.134       1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.016       1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.583       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13257E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5106       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10878E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.234       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35687E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.4431       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30182E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8194       1.0000         .10000E-03   10000.    
    27 'Prefactor '    47.018       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    37.745       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93222       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78403       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=   5350.396     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4138 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2401        8.4479       -.31780E-05   -.50673E-03
   2  Prefactor     8.1111        25.386        .10082E-04    .57514E-04
   3  Prefactor     .10000E-03    27.380       -.32001E-05** at limit **
   4  norm          2.3298        1.8651        .43852E-07    .13350E-04
   5  Prefactor     71.764        50.047        .55627E-05    .27274E-04
   6  Prefactor     1.2009        3.3320        .18172E-05   -.74795E-03
   7  Prefactor     31.817        18.339        .13556E-06   -.10609E-05
   8  norm          .10000E-03    44.621       -.36635E-05** at limit **
   9  norm          .10000E-03    1.2223        .22957E-06** at limit **
  10  Prefactor     1.7102        120.76       -.19617E-04   -.28931E-04
  11  Prefactor     .10000E-03    9.2079        .21118E-06** at limit **
  12  Prefactor     48.171        35.836        .56280E-05    .10926E-03
  13  norm          20.139        6.1939        .25139E-06    .89301E-04
  14  Prefactor     98.006        72.472       -.66968E-05   -.13400E-04
  15  Prefactor     53.604        63.845        .14806E-04    .75027E-06
  16  Prefactor     .10000E-03    43.508        .38135E-05** at limit **
  17  norm          3.5110        1.5464       -.64126E-07   -.61015E-04
  18  norm          .10000E-03    28.615        .14825E-05** at limit **
  19  norm          .10000E-03    3.9404       -.20044E-06** at limit **
  20  norm          16.235        13.250       -.21441E-06   -.18180E-04
  21  Prefactor     .10000E-03    13.242        .31543E-06** at limit **
  22  Prefactor     .10000E-03    15.634        .14711E-07** at limit **
  23  Prefactor     .10000E-03    23.379       -.16335E-06** at limit **
  24  Prefactor     8.4414        6.9010       -.51666E-06   -.18045E-03
  25  Prefactor     .10001E-03    13.561        .10610E-05** at limit **
  26  Prefactor     3.8196        2.8065        .10660E-06   -.17970E-06
  27  Prefactor     47.021        29.527        .84116E-08   -.60812E-05
  28  Prefactor     .10000E-03    66.435       -.37571E-05** at limit **
  29  Prefactor     37.728        20.779        .11014E-05   -.95304E-06
  30  Normalizat    .93155        .17807       -.13705E-05    .10364E-03
  31  Prefactor     .78473        .20361        .31305E-06   -.16229E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.24007
  Prefactor  = 8.11108
  Prefactor  = 0.0001
  norm       = 2.32979
  Prefactor  = 71.7639
  Prefactor  = 1.20091
  Prefactor  = 31.817
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71023
  Prefactor  = 0.0001
  Prefactor  = 48.1712
  norm       = 20.139
  Prefactor  = 98.0055
  Prefactor  = 53.6045
  Prefactor  = 0.0001
  norm       = 3.51098
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.2352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.44138
  Prefactor  = 0.000100009
  Prefactor  = 3.81962
  Prefactor  = 47.0213
  Prefactor  = 0.0001
  Prefactor  = 37.7284
  Normalizat = 0.931546
  Prefactor  = 0.784733
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.396     FROM HESSE     STATUS=OK           630 CALLS     4768 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2401        9.5248        .13783E-02   -1.5409    
   2  Prefactor     8.1111        25.698        .14040E-03   -1.5138    
   3  Prefactor     .10000E-03    27.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3298        1.8686        .86584E-04   -1.5403    
   5  Prefactor     71.764        50.042        .23697E-03   -1.4012    
   6  Prefactor     1.2009        8.9825        .20740E-02   -1.5489    
   7  Prefactor     31.817        18.355        .71041E-04   -1.4579    
   8  norm          .10000E-03    46.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2303        .78952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7102        118.34        .32038E-03   -1.5446    
  11  Prefactor     .10000E-03    9.2209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.171        35.393        .57795E-04   -1.4319    
  13  norm          20.139        6.1949        .89263E-04   -1.4810    
  14  Prefactor     98.006        73.105        .40603E-04   -1.3725    
  15  Prefactor     53.604        63.512        .54794E-04   -1.4242    
  16  Prefactor     .10000E-03    43.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5110        1.5463        .57797E-04   -1.5333    
  18  norm          .10000E-03    28.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0934        .28308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.235        13.258        .99406E-04   -1.4902    
  21  Prefactor     .10000E-03    13.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.475        .92851E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.4414        6.7385        .13796E-03   -1.5127    
  25  Prefactor     .10001E-03    81.658        .50076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.8196        2.8030        .95672E-04   -1.5317    
  27  Prefactor     47.021        29.528        .58476E-04   -1.4335    
  28  Prefactor     .10000E-03    66.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     37.728        20.761        .65236E-04   -1.4479    
  30  Normalizat    .93155        .21168        .22390E-03   -.95360    
  31  Prefactor     .78473        .24156        .29756E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32122e-09
Minuit parameter uncertainties:
  1  9.2405
  2  25.7329
  3  0.000120303
  4  1.8686
  5  50.0716
  6  6.56989
  7  18.3579
  8  0.000227963
  9  3.97049e-06
  10  28.5111
  11  2.63645e-05
  12  35.4081
  13  6.19505
  14  73.1718
  15  63.5924
  16  0.000177733
  17  1.54632
  18  4.57912e-06
  19  4.53434e-05
  20  13.26
  21  5.44956e-06
  22  8.15702e-05
  23  2.88831e-05
  24  6.73908
  25  0.00170105
  26  2.80311
  27  29.5367
  28  9.36553e-05
  29  20.7646
  30  0.211874
  31  0.241882
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  4.817e+01  3.541e+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:  7.847e-01  2.419e-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:  9.315e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 203.059 47.373
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 9.73e-06

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) = 5350.3573884
delta logL = 0.0389734277915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5350.35577978
delta logL = 0.0405820500118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.247       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8623       1.0000          .0000       10.000    
     3 'Normalizat'    .92209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79289       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=   5350.356     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      286 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.244        43.322        .63184E-04    .46242E-04
   2  Index         2.8622        .85440        .61623E-02    .15192E-04
   3  Normalizat    .92199        .19771        .22488E-03   -.21871E-03
   4  Prefactor     .79307        .24028        .29615E-03   -.19251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.2435
  Index      = 2.8622
  Normalizat = 0.92199
  Prefactor  = 0.793074
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.356     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.244        40.071        .25274E-05   -1.4438    
   2  Index         2.8622        .79036        .24649E-03   -.44179    
   3  Normalizat    .92199        .19757        .44977E-04   -.95692    
   4  Prefactor     .79307        .24021        .11846E-04   -.99984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56014e-11
Minuit parameter uncertainties:
  1  40.0977
  2  0.794445
  3  0.197729
  4  0.240524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750243': 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) = 5350.35577937
delta logL = 0.0405824558311

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  4.024e+01  4.010e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.862e+00  7.944e-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:  7.931e-01  2.405e-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:  9.220e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 203.059 47.373
Photon Index (Free Index): 2.86 +/- 0.79
Photon Flux (Free Index): 5.95e-08 +/- 4.51e-08
Energy Flux (Free Index): 1.28e-05 +/- 8.49e-06

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/750243/cmap_HighResolution_460684801_460944001_4FGL_J1332.2+4722_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='1.28e-05', photon_flux_error='3.85e-08', dlogl='4.06e-02', energy_flux='1.32e-05', photon_flux2='5.95e-08', job_status='DONE', time_completed='2021-09-08 02:25:55.026782', photon_index_error2='0.79', photon_index2='2.86', ts='4.12', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='8.49e-06', EG='0.93', time_epoch_completed='1631093155.03', return_code='0', job_id='750243', GAL2='0.79', EG2='0.92', return_code2='0', energy_flux_error='9.73e-06', photon_flux_error2='4.51e-08', ts2='4.21', photon_index='2.64' WHERE bin_id='854' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 750243: <4FGL_J1332.2+4722_daily_bin854> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin854> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 02:10:29 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:12:21 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:12:21 2021
Terminated at Wed Sep  8 02:25:55 2021
Results reported at Wed Sep  8 02:25:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin854 203.059 47.3728 460684801 460944001 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 :                                   799.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            926 sec.

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

