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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin20
RA = 203.059, Dec = 47.3728
tmin = 244512001, tmax = 244771201
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='743583', job_status='RUN', time_executed='2021-09-08 01:58:37.363805', time_epoch_executed='1631091517.36' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743583/ft1_4FGL_J1332.2+4722_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743583/ft2_4FGL_J1332.2+4722_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743583/ft1_4FGL_J1332.2+4722_daily_bin20.fits outfile=/scratch/kocevski/743583/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin20.fits ra=203.059 dec=47.3728 rad=12.0 tmin=244512001.0 tmax=244771201.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.52
user 1.31
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743583/ft1_filtered_4FGL_J1332.2+4722_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/743583/ft2_4FGL_J1332.2+4722_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/743583/ltcube_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.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/743583/ft2_4FGL_J1332.2+4722_daily_bin20.fits
.....................!
real 17.72
user 17.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743583/ft1_filtered_4FGL_J1332.2+4722_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/743583/ft2_4FGL_J1332.2+4722_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/743583/ltcube_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.fits outfile=/scratch/kocevski/743583/expmap_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.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/743583/ltcube_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.fits
.....................!
real 192.76
user 187.31
sys 4.96

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/743583/ft1_filtered_4FGL_J1332.2+4722_daily_bin20.fits scfile=/scratch/kocevski/743583/ft2_4FGL_J1332.2+4722_daily_bin20.fits outfile=/scratch/kocevski/743583/cmap_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.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 1.69
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743583/ft1_filtered_4FGL_J1332.2+4722_daily_bin20.fits scfile=/scratch/kocevski/743583/ft2_4FGL_J1332.2+4722_daily_bin20.fits outfile=/scratch/kocevski/743583/cmap_HighResolution_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.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.68
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.844       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.1915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.515       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.189       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.647       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.047       1.0000         .10000E-03   10000.    
    16 'Prefactor '    126.77       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1519       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.182       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12735E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    36.365       1.0000         .10000E-03   10000.    
    29 'Prefactor '    19.793       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4063       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .46946       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=   4290.100     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4184 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.846        16.205       -.68464E-07    .32164E-05
   2  Prefactor     44.121        49.894        .63497E-06    .75956E-05
   3  Prefactor     .10000E-03    25.903       -.77720E-06** at limit **
   4  norm          6.1916        3.4919        .22422E-07    .17611E-04
   5  Prefactor     .10000E-03    53.175       -.97930E-06** at limit **
   6  Prefactor     .10000E-03    49.609       -.18155E-05** at limit **
   7  Prefactor     41.516        24.953        .13906E-06    .66002E-05
   8  norm          .10000E-03    6.2853       -.93787E-07** at limit **
   9  norm          .24655        44.678        .35271E-05   -.26141E-04
  10  Prefactor     36.133        46.738       -.11716E-05   -.87644E-04
  11  Prefactor     39.646        27.829        .23949E-06   -.11752E-05
  12  Prefactor     .10000E-03    26.496        .59278E-06** at limit **
  13  norm          8.6058        6.9791        .37749E-07   -.37001E-04
  14  Prefactor     .10000E-03    45.343       -.28956E-06** at limit **
  15  Prefactor     21.070        83.665        .36520E-05    .12555E-04
  16  Prefactor     126.78        81.245        .73502E-06    .43427E-04
  17  norm          .10000E-03    .80493       -.20727E-06** at limit **
  18  norm          .10000E-03    45.243        .28762E-06** at limit **
  19  norm          2.1526        3.8459       -.20263E-06    .36064E-04
  20  norm          .10000E-03    11.228       -.70991E-06** at limit **
  21  Prefactor     40.196        36.963        .66227E-06    .12464E-03
  22  Prefactor     .10000E-03    43.311       -.96817E-06** at limit **
  23  Prefactor     .10000E-03    16.949       -.12370E-06** at limit **
  24  Prefactor     .10000E-03    3.5261       -.32917E-06** at limit **
  25  Prefactor     .10000E-03    5.4679       -.16748E-06** at limit **
  26  Prefactor     .10000E-03    2.5978       -.15783E-05** at limit **
  27  Prefactor     .10000E-03    32.156       -.42697E-06** at limit **
  28  Prefactor     36.365        52.398        .86851E-07    .35603E-04
  29  Prefactor     19.794        17.466        .18893E-08    .42881E-04
  30  Normalizat    1.4062        .23658       -.25588E-05    .33051E-03
  31  Prefactor     .46958        .25415        .60225E-05    .18678E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.8458
  Prefactor  = 44.1211
  Prefactor  = 0.0001
  norm       = 6.19163
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 41.5164
  norm       = 0.0001
  norm       = 0.246554
  Prefactor  = 36.1334
  Prefactor  = 39.6458
  Prefactor  = 0.000100001
  norm       = 8.60581
  Prefactor  = 0.0001
  Prefactor  = 21.07
  Prefactor  = 126.782
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.1526
  norm       = 0.0001
  Prefactor  = 40.1958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.3649
  Prefactor  = 19.7943
  Normalizat = 1.40625
  Prefactor  = 0.469576
 **********
 **   18 **HESSE 
 **********

 FCN=   4290.100     FROM HESSE     STATUS=OK           614 CALLS     4798 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.846        16.200        .87730E-04   -1.4795    
   2  Prefactor     44.121        49.931        .60354E-04   -1.4379    
   3  Prefactor     .10000E-03    26.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1916        3.4902        .88815E-04   -1.5210    
   5  Prefactor     .10000E-03    53.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    51.586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.516        24.956        .62215E-04   -1.4418    
   8  norm          .10000E-03    6.2887        .16040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .24655        46.582        .24822E-02   -1.5609    
  10  Prefactor     36.133        48.097        .66620E-04   -1.4505    
  11  Prefactor     39.646        27.878        .63658E-04   -1.4448    
  12  Prefactor     .10000E-03    26.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6058        6.9759        .13605E-03   -1.5121    
  14  Prefactor     .10000E-03    45.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.070        83.953        .87305E-04   -1.4790    
  16  Prefactor     126.78        81.170        .35754E-04   -1.3451    
  17  norm          .10000E-03    .84925        .11514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    45.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1526        3.8087        .16396E-03   -1.5415    
  20  norm          .10000E-03    11.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.196        37.090        .63234E-04   -1.4439    
  22  Prefactor     .10000E-03    43.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6149        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.4743        .14962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3362        .17491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    32.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     36.365        52.360        .66459E-04   -1.4501    
  29  Prefactor     19.794        17.462        .90026E-04   -1.4818    
  30  Normalizat    1.4062        .25442        .20541E-03   -.80448    
  31  Prefactor     .46958        .27455        .39468E-03   -1.1339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29851e-08
Minuit parameter uncertainties:
  1  16.2034
  2  49.978
  3  8.09229e-05
  4  3.49034
  5  0.000127596
  6  0.000339651
  7  24.9626
  8  5.60301e-06
  9  6.7819
  10  48.1482
  11  27.8869
  12  0.000233987
  13  6.97656
  14  7.25776e-05
  15  84.3239
  16  81.2418
  17  3.01284e-06
  18  2.93977e-05
  19  3.80909
  20  6.73042e-05
  21  37.1109
  22  0.000212351
  23  1.8812e-05
  24  2.14822e-05
  25  8.79537e-06
  26  9.86545e-05
  27  2.23312e-05
  28  52.4264
  29  17.4666
  30  0.254651
  31  0.275322
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  2.340e-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:  4.696e-01  2.753e-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.406e+00  2.547e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743583/likelihoodResults_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.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) = 4290.10006818
delta logL = -0.000178414516995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4290.09989076
delta logL = -9.87332896329e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0944       1.0000          .0000       10.000    
     3 'Normalizat'    1.4062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46958       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=   4290.100     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      284 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10495E-03    16.415        .18142E-01** at limit **
   2  Index         2.9784        6.9391        .50000        .12841E-04
   3  Normalizat    1.4062        .45125E-02    .20541E-03   -.22139E-04
   4  Prefactor     .46957        .52792E-02    .39468E-03   -.12876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104954
  Index      = 2.97842
  Normalizat = 1.40625
  Prefactor  = 0.469574
 **********
 **   18 **HESSE 
 **********

 FCN=   4290.100     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10495E-03    123.25        .28568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9784        5.3312        .50000       -.41623    
   3  Normalizat    1.4062        .12367E-01    .82164E-05   -.80448    
   4  Prefactor     .46957        .14469E-01    .15787E-04   -1.1339    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22654e-09
Minuit parameter uncertainties:
  1  0.0495206
  2  430.36
  3  0.0123675
  4  0.014469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743583': 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) = 4290.09989049
delta logL = -7.21898686606e-07

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.050e-04  4.952e-02  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.978e+00  4.304e+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:  4.696e-01  1.447e-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.406e+00  1.237e-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/743583/cmap_HighResolution_244512001_244771201_4FGL_J1332.2+4722_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-08 02:12:01.259503', job_id='743583', GAL2='0.47', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631092321.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='-7.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='20' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:12:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 743583: <4FGL_J1332.2+4722_daily_bin20> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin20> 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) <bullet0078>, 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:02 2021
Results reported at Wed Sep  8 02:12:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin20 203.059 47.3728 244512001 244771201 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 :                                   796.00 sec.
    Max Memory :                                 1018 MB
    Average Memory :                             267.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            993 sec.

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

