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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1563
RA = 202.819, Dec = -13.4282
tmin = 644457601, tmax = 644716801
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='734529', job_status='RUN', time_executed='2021-09-08 01:27:51.744443', time_epoch_executed='1631089671.74' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734529/ft1_4FGL_J1331.2-1325_daily_bin1563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734529/ft1_4FGL_J1331.2-1325_daily_bin1563.fits outfile=/scratch/kocevski/734529/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1563.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=644457601.0 tmax=644716801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.00
user 2.59
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.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/734529/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1563.fits evtable="EVENTS" outfile="/scratch/kocevski/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits" evtable="EVENTS" scfile=/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits sctable="SC_DATA" outfile=/scratch/kocevski/734529/ltcube_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.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/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits
.....................!
real 17.72
user 17.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits evtable="EVENTS" scfile=/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits sctable="SC_DATA" expcube=/scratch/kocevski/734529/ltcube_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.fits outfile=/scratch/kocevski/734529/expmap_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.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/734529/ltcube_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.fits
.....................!
real 193.65
user 188.29
sys 4.88

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/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits scfile=/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits outfile=/scratch/kocevski/734529/cmap_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits scfile=/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits outfile=/scratch/kocevski/734529/cmap_HighResolution_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.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.75
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits evtable="EVENTS" scfile=/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734529/Model_4FGL_J1331.2-1325_daily_bin1563.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/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits.....................!
real 50.88
user 49.45
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits', '/scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits', expMap='/scratch/kocevski/734529/expmap_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.fits', expCube='/scratch/kocevski/734529/ltcube_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/734529/Model_4FGL_J1331.2-1325_daily_bin1563.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/734529/ft1_filtered_4FGL_J1331.2-1325_daily_bin1563.fits
Spacecraft file(s): /scratch/kocevski/734529/ft2_4FGL_J1331.2-1325_daily_bin1563.fits
Exposure map: /scratch/kocevski/734529/expmap_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.fits
Exposure cube: /scratch/kocevski/734529/ltcube_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/734529/Model_4FGL_J1331.2-1325_daily_bin1563.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) = 6013.67242241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8288       1.0000         .10000E-03   10000.    
     2 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    65.507       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    44.405       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6245       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.770       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12352E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72165       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1842       1.0000         .10000E-03   10000.    
    12 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .92514E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12634E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.385       1.0000         .10000E-03   10000.    
    18 'norm      '    .10444E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4363       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17701E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.607       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2042       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71233       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=   6013.628     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2835 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8289        .34152       -.14999E-07    .96817E-03
   2  norm          .10000E-03    9.3937       -.44843E-06** at limit **
   3  norm          .10000E-03    11.752       -.98927E-06** at limit **
   4  Prefactor     65.438        63.977        .28344E-05    .27127E-03
   5  norm          .10000E-03    .94694       -.60555E-07** at limit **
   6  norm          44.405        14.079       -.17215E-06    .92103E-05
   7  norm          6.6257        6.2705        .53274E-07    .33790E-04
   8  Prefactor     24.775        11.674        .27327E-07   -.34695E-04
   9  Prefactor     .10000E-03    11.008       -.34362E-07** at limit **
  10  Prefactor     .73561        12.388       -.24487E-05   -.27157E-03
  11  norm          3.1841        1.6184       -.13729E-06    .17732E-02
  12  norm          .10000E-03    2.2754       -.45483E-07** at limit **
  13  norm          .10008E-03    33.253        .11320E-04** at limit **
  14  Prefactor     .10000E-03    63.160       -.24260E-05** at limit **
  15  Prefactor     .10000E-03    11.289        .19577E-06** at limit **
  16  norm          .10000E-03    25.692       -.22635E-06** at limit **
  17  Prefactor     36.407        22.782        .29383E-06    .20258E-03
  18  norm          .10001E-03    10.485       -.59891E-05** at limit **
  19  Prefactor     2.4308        6.7145        .11296E-07    .29204E-04
  20  Prefactor     .10000E-03    62.348       -.55874E-06** at limit **
  21  norm          .10000E-03    3.1976        .40841E-07** at limit **
  22  norm          13.606        4.5515       -.77649E-08    .16590E-03
  23  Normalizat    1.2043        .25289        .16946E-06    .20191E-03
  24  Prefactor     .71216        .12485        .77364E-06    .35961E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82892
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 65.4379
  norm       = 0.0001
  norm       = 44.4052
  norm       = 6.62575
  Prefactor  = 24.7752
  Prefactor  = 0.0001
  Prefactor  = 0.735609
  norm       = 3.18409
  norm       = 0.0001
  norm       = 0.000100084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.4067
  norm       = 0.000100012
  Prefactor  = 2.43085
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.6065
  Normalizat = 1.20429
  Prefactor  = 0.712159
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.628     FROM HESSE     STATUS=OK           399 CALLS     3234 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8289        .34274        .18676E-04   -1.5437    
   2  norm          .10000E-03    9.7595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     65.438        65.392        .24793E-03   -1.4088    
   5  norm          .10000E-03    .95091        .73711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          44.405        14.121        .60164E-04   -1.4374    
   7  norm          6.6257        6.2727        .15591E-03   -1.5193    
   8  Prefactor     24.775        11.670        .80487E-04   -1.4712    
   9  Prefactor     .10000E-03    11.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .73561        48.745        .47541E-02   -1.5536    
  11  norm          3.1841        1.6236        .33051E-03   -1.5351    
  12  norm          .10000E-03    2.3028        .22666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10008E-03    47.985        .36922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    65.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    25.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.407        22.712        .66440E-04   -1.4500    
  18  norm          .10001E-03    20.618        .34295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4308        6.5551        .26214E-03   -1.5396    
  20  Prefactor     .10000E-03    62.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.2028        .13535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.606        4.5609        .91679E-04   -1.4970    
  23  Normalizat    1.2043        .29562        .32638E-03   -.86470    
  24  Prefactor     .71216        .14546        .21767E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95983e-09
Minuit parameter uncertainties:
  1  0.34274
  2  9.04358e-05
  3  0.000169186
  4  65.4636
  5  3.66005e-06
  6  14.1223
  7  6.27335
  8  11.6712
  9  6.23579e-05
  10  11.9856
  11  1.6236
  12  2.39829e-05
  13  0.00401994
  14  0.000341033
  15  4.80151e-05
  16  7.15526e-05
  17  22.7178
  18  0.000994485
  19  6.557
  20  0.000250677
  21  8.262e-06
  22  4.56103
  23  0.296036
  24  0.145538
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  7.356e-01  1.199e+01  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.122e-01  1.455e-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.204e+00  2.960e-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.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734529/likelihoodResults_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.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): 0
logL (Free Index) = 6013.62433235
delta logL = 0.00382563299536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6013.6242712
delta logL = 0.00388678366107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73578       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9671       1.0000          .0000       10.000    
     3 'Normalizat'    1.2022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71255       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.

 FCN=   6013.624     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      243 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87130        23.445        .66844E-01    .48758E-03
   2  Index         2.9153        .90311        .50000        .61031E-05
   3  Normalizat    1.2020        .11447E-01    .73814E-01    .11388E-03
   4  Prefactor     .71252        .60580E-02    .42568E-01    .10991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.871296
  Index      = 2.9153
  Normalizat = 1.202
  Prefactor  = 0.712515
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.624     FROM HESSE     STATUS=OK            35 CALLS      278 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87130        51.194        .40146E-02   -1.5521    
   2  Index         2.9153        6.4515        .82893E-02   -.43008    
   3  Normalizat    1.2020        .27482        .32666E-03   -.86541    
   4  Prefactor     .71252        .14399        .21762E-03   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20648e-08
Minuit parameter uncertainties:
  1  13.3687
  2  4.86438
  3  0.275152
  4  0.144068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734529': 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) = 6013.6241061
delta logL = 0.00405188560217

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  8.713e-01  1.337e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.915e+00  4.864e+00  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.125e-01  1.441e-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.202e+00  2.752e-01  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/734529/cmap_HighResolution_644457601_644716801_4FGL_J1331.2-1325_daily_bin1563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-08 01:39:03.469844', job_id='734529', GAL2='0.71', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631090343.47', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.05e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1563' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:39:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 734529: <4FGL_J1331.2-1325_daily_bin1563> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1563> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:31 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:25:41 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:25:41 2021
Terminated at Wed Sep  8 01:39:04 2021
Results reported at Wed Sep  8 01:39:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1563 202.819 -13.4282 644457601 644716801 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 :                                   669.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            813 sec.

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

