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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1224
RA = 202.819, Dec = -13.4282
tmin = 556588801, tmax = 556848001
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='733048', job_status='RUN', time_executed='2021-09-08 01:25:29.613012', time_epoch_executed='1631089529.61' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733048/ft1_4FGL_J1331.2-1325_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733048/ft1_4FGL_J1331.2-1325_daily_bin1224.fits outfile=/scratch/kocevski/733048/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1224.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=556588801.0 tmax=556848001.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.01
user 3.42
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.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/733048/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.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.73
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/733048/ltcube_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.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/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits
.....................!
real 16.27
user 15.51
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/733048/ltcube_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.fits outfile=/scratch/kocevski/733048/expmap_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.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/733048/ltcube_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.fits
.....................!
real 190.99
user 186.20
sys 4.30

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits scfile=/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits outfile=/scratch/kocevski/733048/cmap_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.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=202.819 yref=-13.4282 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits scfile=/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits outfile=/scratch/kocevski/733048/cmap_HighResolution_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.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=202.819 yref=-13.4282 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733048/Model_4FGL_J1331.2-1325_daily_bin1224.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/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits.....................!
real 38.62
user 37.32
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits', '/scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits', expMap='/scratch/kocevski/733048/expmap_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.fits', expCube='/scratch/kocevski/733048/ltcube_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733048/Model_4FGL_J1331.2-1325_daily_bin1224.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/733048/ft1_filtered_4FGL_J1331.2-1325_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/733048/ft2_4FGL_J1331.2-1325_daily_bin1224.fits
Exposure map: /scratch/kocevski/733048/expmap_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.fits
Exposure cube: /scratch/kocevski/733048/ltcube_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733048/Model_4FGL_J1331.2-1325_daily_bin1224.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) = 3758.35792245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76014       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9784       1.0000         .10000E-03   10000.    
     3 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9283       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0090       1.0000         .10000E-03   10000.    
    13 'norm      '    .45283E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.319       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9788       1.0000         .10000E-03   10000.    
    18 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83222       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.259       1.0000         .10000E-03   10000.    
    21 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.447       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6486       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74219       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3758.303     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2833 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76000        .53150        .21189E-07   -.80090E-04
   2  norm          3.9763        8.0511        .31821E-05    .42371E-03
   3  norm          .10000E-03    6.0862        .90853E-07** at limit **
   4  Prefactor     .10000E-03    50.750        .10556E-05** at limit **
   5  norm          .10000E-03    1.5543        .75813E-07** at limit **
   6  norm          .10000E-03    7.4154        .33095E-08** at limit **
   7  norm          .10000E-03    10.325        .58896E-07** at limit **
   8  Prefactor     .10000E-03    22.656        .34010E-06** at limit **
   9  Prefactor     4.4031        15.848        .31676E-06   -.36120E-04
  10  Prefactor     .10000E-03    13.394        .34933E-06** at limit **
  11  norm          1.9278        2.9154        .15918E-06    .15536E-04
  12  norm          3.0037        4.4901        .78476E-07   -.89404E-03
  13  norm          .10040E-03    14.698        .30866E-05** at limit **
  14  Prefactor     .10000E-03    9.4949        .30892E-07** at limit **
  15  Prefactor     28.248        42.374       -.17815E-05    .84662E-05
  16  norm          .10000E-03    45.179       -.63947E-06** at limit **
  17  Prefactor     4.9637        16.551        .15685E-05    .11149E-04
  18  norm          .10000E-03    4.5708       -.44912E-06** at limit **
  19  Prefactor     .82317        9.3469       -.15131E-05   -.31378E-06
  20  Prefactor     29.035        72.582        .37347E-05   -.40873E-04
  21  norm          .10000E-03    9.5816       -.17358E-06** at limit **
  22  norm          18.446        7.0806        .93769E-07    .10714E-04
  23  Normalizat    1.6486        .35295       -.18328E-05   -.14829E-03
  24  Prefactor     .74235        .16039       -.52798E-07   -.23271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.759998
  norm       = 3.97629
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.40309
  Prefactor  = 0.0001
  norm       = 1.92777
  norm       = 3.00367
  norm       = 0.000100403
  Prefactor  = 0.0001
  Prefactor  = 28.2485
  norm       = 0.0001
  Prefactor  = 4.96372
  norm       = 0.0001
  Prefactor  = 0.823167
  Prefactor  = 29.0346
  norm       = 0.0001
  norm       = 18.4459
  Normalizat = 1.6486
  Prefactor  = 0.742349
 **********
 **   18 **HESSE 
 **********

 FCN=   3758.303     FROM HESSE     STATUS=OK           397 CALLS     3230 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76000        .52909        .36186E-04   -1.5534    
   2  norm          3.9763        8.2165        .10111E-02   -1.5309    
   3  norm          .10000E-03    6.1915        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5814        .74619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.4174        .16306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4031        15.892        .19192E-03   -1.5288    
  10  Prefactor     .10000E-03    13.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9278        2.8988        .12359E-03   -1.5430    
  12  norm          3.0037        4.5447        .76620E-03   -1.5361    
  13  norm          .10040E-03    67.379        .35682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.248        42.127        .75284E-04   -1.4644    
  16  norm          .10000E-03    45.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9637        16.566        .18023E-03   -1.5262    
  18  norm          .10000E-03    4.6075        .12796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .82317        17.215        .33219E-02   -1.5527    
  20  Prefactor     29.035        72.186        .74068E-04   -1.4630    
  21  norm          .10000E-03    9.6101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.446        7.0868        .93252E-04   -1.4849    
  23  Normalizat    1.6486        .42189        .31065E-03   -.73684    
  24  Prefactor     .74235        .19221        .20910E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83839e-08
Minuit parameter uncertainties:
  1  0.529091
  2  8.21884
  3  7.23763e-06
  4  6.91748e-05
  5  3.53862e-06
  6  1.24129e-06
  7  8.74063e-07
  8  4.66793e-05
  9  15.9075
  10  1.47604e-05
  11  2.89905
  12  4.54524
  13  0.0104296
  14  6.75172e-06
  15  42.1715
  16  4.10365e-05
  17  16.5816
  18  2.72264e-05
  19  7.5309
  20  72.4041
  21  2.2702e-05
  22  7.08711
  23  0.422807
  24  0.192384
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.476e-05  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  7.423e-01  1.924e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.649e+00  4.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733048/likelihoodResults_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.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) = 3758.30320871
delta logL = -0.000354424845227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3758.30285427
delta logL = 1.95618667931e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5696       1.0000          .0000       10.000    
     3 'Normalizat'    1.6486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74234       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+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=   3758.303     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10321E-03    9.7551        .18142E-01** at limit **
   2  Index         2.4846        8.6697        .50000        .16009E-04
   3  Normalizat    1.6486        .68487E-02    .31065E-03   -.91071E-04
   4  Prefactor     .74235        .32681E-02    .20909E-03   -.16030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103215
  Index      = 2.48462
  Normalizat = 1.6486
  Prefactor  = 0.742349
 **********
 **   18 **HESSE 
 **********

 FCN=   3758.303     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10321E-03    99.347        .23410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4846        7.7511        .50000       -.52716    
   3  Normalizat    1.6486        .21948E-01    .62129E-04   -.73684    
   4  Prefactor     .74235        .10473E-01    .41819E-04   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42935e-09
Minuit parameter uncertainties:
  1  0.0358025
  2  320.767
  3  0.0219481
  4  0.0104733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733048': 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) = 3758.30285392
delta logL = 3.69270765077e-07

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.032e-04  3.580e-02  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.485e+00  3.208e+02  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  7.423e-01  1.047e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.649e+00  2.195e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.819 -13.428

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/733048/cmap_HighResolution_556588801_556848001_4FGL_J1331.2-1325_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-08 01:34:35.726780', job_id='733048', GAL2='0.74', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1631090075.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1224' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:34:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 733048: <4FGL_J1331.2-1325_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1224> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:44 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:22:02 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:22:02 2021
Terminated at Wed Sep  8 01:34:36 2021
Results reported at Wed Sep  8 01:34:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1224 202.819 -13.4282 556588801 556848001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   536.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            832 sec.

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

