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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1529
RA = 203.059, Dec = 47.3728
tmin = 635644801, tmax = 635904001
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='754837', job_status='RUN', time_executed='2021-09-08 02:26:08.301640', time_epoch_executed='1631093168.3' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754837/ft1_4FGL_J1332.2+4722_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754837/ft2_4FGL_J1332.2+4722_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754837/ft1_4FGL_J1332.2+4722_daily_bin1529.fits outfile=/scratch/kocevski/754837/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1529.fits ra=203.059 dec=47.3728 rad=12.0 tmin=635644801.0 tmax=635904001.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.50
user 4.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/754837/ft2_4FGL_J1332.2+4722_daily_bin1529.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/754837/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1529.fits evtable="EVENTS" outfile="/scratch/kocevski/754837/ft1_filtered_4FGL_J1332.2+4722_daily_bin1529.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/754837/ft1_filtered_4FGL_J1332.2+4722_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/754837/ft2_4FGL_J1332.2+4722_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/754837/ltcube_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.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/754837/ft2_4FGL_J1332.2+4722_daily_bin1529.fits
.....................!
real 15.87
user 15.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754837/ft1_filtered_4FGL_J1332.2+4722_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/754837/ft2_4FGL_J1332.2+4722_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/754837/ltcube_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.fits outfile=/scratch/kocevski/754837/expmap_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.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/754837/ltcube_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.fits
.....................!
real 191.90
user 187.27
sys 4.06

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/754837/ft1_filtered_4FGL_J1332.2+4722_daily_bin1529.fits scfile=/scratch/kocevski/754837/ft2_4FGL_J1332.2+4722_daily_bin1529.fits outfile=/scratch/kocevski/754837/cmap_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754837/ft1_filtered_4FGL_J1332.2+4722_daily_bin1529.fits scfile=/scratch/kocevski/754837/ft2_4FGL_J1332.2+4722_daily_bin1529.fits outfile=/scratch/kocevski/754837/cmap_HighResolution_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3222       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.178       1.0000         .10000E-03   10000.    
     4 'norm      '    .10718E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15182E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.864       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.761       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3983       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4836       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8716       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8752       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.223       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2470       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8334       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99438       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=   5683.547     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4094 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3204        11.419       -.15225E-06   -.11137E-03
   2  Prefactor     21.690        33.780       -.11810E-05    .15106E-04
   3  Prefactor     20.183        25.783       -.32718E-05    .37130E-04
   4  norm          .10000E-03    1.4734       -.22938E-06** at limit **
   5  Prefactor     .10000E-03    266.13       -.12511E-04** at limit **
   6  Prefactor     .10000E-03    5.1899       -.24137E-06** at limit **
   7  Prefactor     .10000E-03    12.302        .99893E-05** at limit **
   8  norm          10.867        10.730        .20021E-07    .60973E-04
   9  norm          .10000E-03    1.9797        .56353E-07** at limit **
  10  Prefactor     22.767        32.251       -.23703E-05    .14098E-03
  11  Prefactor     .10000E-03    17.730       -.99716E-05** at limit **
  12  Prefactor     .10000E-03    36.976       -.16156E-04** at limit **
  13  norm          .10000E-03    2.4175       -.14142E-07** at limit **
  14  Prefactor     .10000E-03    34.274        .12623E-04** at limit **
  15  Prefactor     2.3462        409.10       -.16748E-03    .69153E-05
  16  Prefactor     .10000E-03    10.239       -.21961E-06** at limit **
  17  norm          1.4835        1.0542       -.46758E-08    .37832E-03
  18  norm          .10000E-03    24.989       -.15890E-05** at limit **
  19  norm          3.8714        3.2135       -.25267E-06   -.51881E-04
  20  norm          5.8750        10.149        .35258E-06   -.63185E-05
  21  Prefactor     .10000E-03    17.243       -.14081E-06** at limit **
  22  Prefactor     .10000E-03    15.680        .10814E-04** at limit **
  23  Prefactor     18.222        31.641       -.13454E-05    .26340E-04
  24  Prefactor     .10000E-03    2.3006        .19756E-07** at limit **
  25  Prefactor     2.2477        34.503       -.40230E-05   -.90462E-04
  26  Prefactor     1.8333        1.5503       -.74818E-07    .25448E-03
  27  Prefactor     .10000E-03    12.666       -.12940E-04** at limit **
  28  Prefactor     .10000E-03    80.776        .51307E-05** at limit **
  29  Prefactor     .10000E-03    25.157        .50400E-05** at limit **
  30  Normalizat    1.1689        .18529        .44799E-05    .29037E-03
  31  Prefactor     .99442        .21769       -.83310E-06    .41486E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.32043
  Prefactor  = 21.6902
  Prefactor  = 20.1834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8667
  norm       = 0.0001
  Prefactor  = 22.7674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34622
  Prefactor  = 0.0001
  norm       = 1.48355
  norm       = 0.0001
  norm       = 3.87137
  norm       = 5.87497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2222
  Prefactor  = 0.0001
  Prefactor  = 2.24768
  Prefactor  = 1.83328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16894
  Prefactor  = 0.994419
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.547     FROM HESSE     STATUS=OK           612 CALLS     4706 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3204        11.302        .17421E-03   -1.5247    
   2  Prefactor     21.690        33.453        .86008E-04   -1.4776    
   3  Prefactor     20.183        25.852        .89165E-04   -1.4809    
   4  norm          .10000E-03    2.9638        .17727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    269.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2983        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.867        10.732        .12155E-03   -1.5049    
   9  norm          .10000E-03    1.9960        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.767        32.256        .83959E-04   -1.4753    
  11  Prefactor     .10000E-03    17.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4585        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3462        417.03        .26441E-03   -1.5402    
  16  Prefactor     .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4835        1.0543        .35225E-04   -1.5464    
  18  norm          .10000E-03    24.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8714        3.2125        .11905E-03   -1.5314    
  20  norm          5.8750        10.138        .16568E-03   -1.5223    
  21  Prefactor     .10000E-03    17.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.222        31.641        .93822E-04   -1.4854    
  24  Prefactor     .10000E-03    2.3104        .11158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2477        34.645        .27414E-03   -1.5408    
  26  Prefactor     1.8333        1.5548        .83846E-04   -1.5437    
  27  Prefactor     .10000E-03    12.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    80.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    25.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1689        .22101        .21910E-03   -.87568    
  31  Prefactor     .99442        .25945        .29203E-03   -.92916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94525e-10
Minuit parameter uncertainties:
  1  11.3066
  2  33.4824
  3  25.8661
  4  4.47204e-05
  5  0.000631039
  6  1.21362e-05
  7  1.75191e-05
  8  10.7342
  9  1.25633e-06
  10  32.2807
  11  5.48809e-05
  12  8.7268e-05
  13  6.77408e-06
  14  8.56199e-05
  15  63.0096
  16  9.91225e-06
  17  1.05428
  18  8.54071e-07
  19  3.2126
  20  10.1409
  21  1.43536e-05
  22  2.89672e-05
  23  31.6698
  24  2.26781e-06
  25  17.6607
  26  1.55485
  27  1.69393e-05
  28  0.000228716
  29  0.00015093
  30  0.221188
  31  0.259774
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  8.727e-05  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.944e-01  2.598e-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.169e+00  2.212e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754837/likelihoodResults_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.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) = 5683.54667192
delta logL = -0.000128508215312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5683.54654405
delta logL = -6.43443854642e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9872       1.0000          .0000       10.000    
     3 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99442       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=   5683.547     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      280 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10495E-03    19.737        .18142E-01** at limit **
   2  Index         2.8780        5.3023        .50000        .10652E-04
   3  Normalizat    1.1689        .35341E-02    .21910E-03   -.53964E-04
   4  Prefactor     .99441        .44010E-02    .29203E-03   -.14719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104948
  Index      = 2.87797
  Normalizat = 1.16895
  Prefactor  = 0.994412
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.547     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10495E-03    534.99        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8780        5.3558        .50000       -.43830    
   3  Normalizat    1.1689        .18661E-01    .87639E-05   -.87568    
   4  Prefactor     .99441        .23239E-01    .11681E-04   -.92916    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.91075e-09
Minuit parameter uncertainties:
  1  0.103842
  2  740.346
  3  0.0186609
  4  0.0232388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754837': 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) = 5683.54654384
delta logL = -4.3633099267e-07

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.049e-04  1.038e-01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.878e+00  7.403e+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:  9.944e-01  2.324e-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.169e+00  1.866e-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/754837/cmap_HighResolution_635644801_635904001_4FGL_J1332.2+4722_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-08 02:41:52.093033', job_id='754837', GAL2='0.99', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631094112.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-4.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1529' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 754837: <4FGL_J1332.2+4722_daily_bin1529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1529 203.059 47.3728 635644801 635904001 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 :                                   932.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            975 sec.

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

