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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin637
RA = 203.059, Dec = 47.3728
tmin = 404438401, tmax = 404697601
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='748760', job_status='RUN', time_executed='2021-09-08 02:06:15.261722', time_epoch_executed='1631091975.26' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/748760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/748760/ft1_4FGL_J1332.2+4722_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/748760/ft2_4FGL_J1332.2+4722_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/748760/ft1_4FGL_J1332.2+4722_daily_bin637.fits outfile=/scratch/kocevski/748760/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin637.fits ra=203.059 dec=47.3728 rad=12.0 tmin=404438401.0 tmax=404697601.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 13.02
user 12.24
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/748760/ft2_4FGL_J1332.2+4722_daily_bin637.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/748760/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin637.fits evtable="EVENTS" outfile="/scratch/kocevski/748760/ft1_filtered_4FGL_J1332.2+4722_daily_bin637.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.64
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/748760/ft1_filtered_4FGL_J1332.2+4722_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/748760/ft2_4FGL_J1332.2+4722_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/748760/ltcube_404438401_404697601_4FGL_J1332.2+4722_daily_bin637.fits outfile=/scratch/kocevski/748760/expmap_404438401_404697601_4FGL_J1332.2+4722_daily_bin637.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/748760/ltcube_404438401_404697601_4FGL_J1332.2+4722_daily_bin637.fits
.....................!
real 191.21
user 186.27
sys 4.48

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/748760/ft1_filtered_4FGL_J1332.2+4722_daily_bin637.fits scfile=/scratch/kocevski/748760/ft2_4FGL_J1332.2+4722_daily_bin637.fits outfile=/scratch/kocevski/748760/cmap_404438401_404697601_4FGL_J1332.2+4722_daily_bin637.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.765       1.0000         .10000E-03   10000.    
     4 'norm      '    37.403       1.0000         .10000E-03   10000.    
     5 'Prefactor '    107.78       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.830       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.894       1.0000         .10000E-03   10000.    
     8 'norm      '    17.753       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.597       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14127E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13602E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.469       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.806       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.4078       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7033       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.094       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8238       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .33884E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.6446       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=   4393.665     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     3548 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.263        .14670E-06** at limit **
   2  Prefactor     .10005E-03    20.035       -.22661E-04** at limit **
   3  Prefactor     41.710        9.7425        .31655E-06   -.51097E-02
   4  norm          37.398        1.6126        .14131E-05    .24673E-02
   5  Prefactor     107.72        16.736       -.70642E-05    .50256E-02
   6  Prefactor     23.763        17.737       -.15054E-04    .18591E-02
   7  Prefactor     44.839        5.4178       -.24406E-05    .21421E-02
   8  norm          17.747        1.7315        .69635E-06   -.21317E-03
   9  norm          2.2272        4.0776        .79605E-06   -.11522E-03
  10  Prefactor     93.425        43.200       -.16949E-04    .29985E-02
  11  Prefactor     .10000E-03    24.369        .70496E-05** at limit **
  12  Prefactor     .10017E-03    25.277        .36882E-04** at limit **
  13  norm          .10000E-03    7.9610        .21387E-06** at limit **
  14  Prefactor     .10091E-03    26.814        .40587E-04** at limit **
  15  Prefactor     29.311        37.144       -.21587E-04   -.29286E-02
  16  Prefactor     .10036E-03    59.727       -.66822E-04** at limit **
  17  norm          10.802        2.8196        .13247E-06   -.70891E-03
  18  norm          .10086E-03    24.418        .63029E-06** at limit **
  19  norm          .10000E-03    2.8161        .34753E-06** at limit **
  20  norm          8.3726        2.0385       -.12291E-05    .15673E-03
  21  Prefactor     .10009E-03    31.038        .41319E-04** at limit **
  22  Prefactor     3.6866        1.9437       -.29852E-07    .69673E-04
  23  Prefactor     .10050E-03    22.987       -.38961E-04** at limit **
  24  Prefactor     .10000E-03    2.4448        .38698E-06** at limit **
  25  Prefactor     31.011        9.6831        .15094E-05   -.39282E-03
  26  Prefactor     8.8201        8.2126        .23163E-05    .15644E-03
  27  Prefactor     .10003E-03    145.37        .59805E-04** at limit **
  28  Prefactor     .10001E-03    26.743       -.23628E-04** at limit **
  29  Prefactor     .10000E-03    14.481       -.10273E-05** at limit **
  30  Normalizat    .36279E-01    .51645        .16572E-04   -.53395E-04
  31  Prefactor     1.6424        .28043        .13474E-05   -.25712E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 41.7099
  norm       = 37.398
  Prefactor  = 107.718
  Prefactor  = 23.7628
  Prefactor  = 44.839
  norm       = 17.7473
  norm       = 2.2272
  Prefactor  = 93.4254
  Prefactor  = 0.000100001
  Prefactor  = 0.000100174
  norm       = 0.0001
  Prefactor  = 0.000100912
  Prefactor  = 29.3109
  Prefactor  = 0.000100362
  norm       = 10.8018
  norm       = 0.000100857
  norm       = 0.0001
  norm       = 8.37263
  Prefactor  = 0.000100093
  Prefactor  = 3.68657
  Prefactor  = 0.000100503
  Prefactor  = 0.0001
  Prefactor  = 31.0105
  Prefactor  = 8.82006
  Prefactor  = 0.000100035
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 0.036279
  Prefactor  = 1.64238
 **********
 **   18 **HESSE 
 **********

 FCN=   4393.665     FROM HESSE     STATUS=NOT POSDEF   686 CALLS     4234 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    35.878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.710        49.957        .15507E-02   -1.4415    
   4  norm          37.398        11.820        .16383E-02   -1.4484    
   5  Prefactor     107.72        127.53        .96848E-03   -1.3628    
   6  Prefactor     23.763        71.398        .20514E-02   -1.4733    
   7  Prefactor     44.839        52.442        .14959E-02   -1.4368    
   8  norm          17.747        22.429        .23764E-02   -1.4865    
   9  norm          2.2272        3.8011        .68922E-02   -1.5409    
  10  Prefactor     93.425        122.51        .10385E-02   -1.3772    
  11  Prefactor     .10000E-03    20.155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10017E-03    50.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10091E-03    42.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.311        125.97        .18451E-02   -1.4625    
  16  Prefactor     .10036E-03    67.440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.802        4.8824        .30470E-02   -1.5051    
  18  norm          .10086E-03    56.340        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3726        38.487        .34563E-02   -1.5129    
  21  Prefactor     .10009E-03    26.617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6866        36.724        .52464E-02   -1.5324    
  23  Prefactor     .10050E-03    32.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.0085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     31.011        65.984        .17964E-02   -1.4594    
  26  Prefactor     8.8201        9.4880        .33734E-02   -1.5114    
  27  Prefactor     .10003E-03    138.67        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    22.256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    11.930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .36279E-01    8.6577        .18420       -1.4682    
  31  Prefactor     1.6424        1.2150        .51868E-01   -.73626    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.47854e-07
Minuit parameter uncertainties:
  1  8.35628e-06
  2  0.00272528
  3  50.0072
  4  11.8205
  5  127.859
  6  71.656
  7  52.4963
  8  22.44
  9  3.80156
  10  122.844
  11  0.000260295
  12  0.00595974
  13  4.60113e-05
  14  0.0125117
  15  121.964
  16  0.00988984
  17  4.88255
  18  0.0139092
  19  5.09597e-05
  20  35.94
  21  0.0031557
  22  23.2894
  23  0.00813802
  24  1.7386e-05
  25  66.1397
  26  9.48965
  27  0.00440123
  28  0.000943598
  29  6.9296e-05
  30  1.10772
  31  1.23788
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4393.66480674

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.002e-04  5.960e-03  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.642e+00  1.238e+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.628e-02  1.108e+00  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.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/748760/likelihoodResults_404438401_404697601_4FGL_J1332.2+4722_daily_bin637.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) = 4393.66488366
delta logL = -7.69215330365e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4393.66480684
delta logL = -9.4378265203e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5863       1.0000          .0000       10.000    
     3 'Normalizat'    .36287E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6424       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=   4393.665     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      297 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.182        .18142E-02** at limit **
   2  Index         2.6302        6.2907        .50000       -.73990E-05
   3  Normalizat    .36281E-01    .51931        .10151E-01    .26205E-04
   4  Prefactor     1.6424        .30567        .22926E-03   -.23455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.63021
  Normalizat = 0.0362813
  Prefactor  = 1.64238
 **********
 **   18 **HESSE 
 **********

 FCN=   4393.665     FROM HESSE     STATUS=OK            31 CALLS      328 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6302        6.3089        .50000       -.49378    
   3  Normalizat    .36281E-01    .38518        .40604E-03   -1.4682    
   4  Prefactor     1.6424        .26247        .91704E-05   -.73626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1941e-10
Minuit parameter uncertainties:
  1  0.000923913
  2  4.43211
  3  0.202816
  4  0.262685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/748760': 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) = 4393.66480676
delta logL = -1.80789356818e-08

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  9.239e-04  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.630e+00  4.432e+00  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.642e+00  2.627e-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:  3.628e-02  2.028e-01  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/748760/cmap_HighResolution_404438401_404697601_4FGL_J1332.2+4722_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-08 02:19:49.663183', job_id='748760', GAL2='1.64', fit_tolerance='1e-08', EG2='0.04', EG='0.04', time_epoch_completed='1631092789.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.64', dlogl='-1.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='637' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:19:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 748760: <4FGL_J1332.2+4722_daily_bin637> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin637> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 02:05:30 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:05:55 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:05:55 2021
Terminated at Wed Sep  8 02:19:50 2021
Results reported at Wed Sep  8 02:19:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin637 203.059 47.3728 404438401 404697601 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 :                                   798.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            860 sec.

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

