/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 54 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 = 7361
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1311
RA = 202.819, Dec = -13.4282
tmin = 579139201, tmax = 579398401
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='733180', job_status='RUN', time_executed='2021-09-08 01:24:15.531455', time_epoch_executed='1631089455.53' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733180/ft1_4FGL_J1331.2-1325_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733180/ft2_4FGL_J1331.2-1325_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733180/ft1_4FGL_J1331.2-1325_daily_bin1311.fits outfile=/scratch/kocevski/733180/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1311.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=579139201.0 tmax=579398401.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.75
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733180/ft1_filtered_4FGL_J1331.2-1325_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/733180/ft2_4FGL_J1331.2-1325_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/733180/ltcube_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.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/733180/ft2_4FGL_J1331.2-1325_daily_bin1311.fits
.....................!
real 18.18
user 17.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733180/ft1_filtered_4FGL_J1331.2-1325_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/733180/ft2_4FGL_J1331.2-1325_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/733180/ltcube_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.fits outfile=/scratch/kocevski/733180/expmap_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.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/733180/ltcube_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.fits
.....................!
real 192.44
user 186.96
sys 4.49

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/733180/ft1_filtered_4FGL_J1331.2-1325_daily_bin1311.fits scfile=/scratch/kocevski/733180/ft2_4FGL_J1331.2-1325_daily_bin1311.fits outfile=/scratch/kocevski/733180/cmap_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.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.55
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733180/ft1_filtered_4FGL_J1331.2-1325_daily_bin1311.fits scfile=/scratch/kocevski/733180/ft2_4FGL_J1331.2-1325_daily_bin1311.fits outfile=/scratch/kocevski/733180/cmap_HighResolution_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733180/ft1_filtered_4FGL_J1331.2-1325_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/733180/ft2_4FGL_J1331.2-1325_daily_bin1311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733180/Model_4FGL_J1331.2-1325_daily_bin1311.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/733180/ft1_filtered_4FGL_J1331.2-1325_daily_bin1311.fits.....................!
real 49.09
user 46.93
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5612       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.583       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4018       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4815       1.0000         .10000E-03   10000.    
    12 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.464       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.379       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.863       1.0000         .10000E-03   10000.    
    21 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6705       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78889       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=   5599.163     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2701 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5612        .39781       -.15101E-07    .24575E-03
   2  norm          .10000E-03    4.9114        .11325E-06** at limit **
   3  norm          .10000E-03    2.4182        .22821E-07** at limit **
   4  Prefactor     .10000E-03    52.262        .17741E-05** at limit **
   5  norm          .10000E-03    1.1209        .34801E-07** at limit **
   6  norm          27.574        15.246       -.12204E-06   -.86706E-05
   7  norm          .10000E-03    3.3475        .31751E-08** at limit **
   8  Prefactor     .10000E-03    9.4600       -.11421E-05** at limit **
   9  Prefactor     .10000E-03    8.1932       -.12817E-06** at limit **
  10  Prefactor     9.3428        21.768        .60612E-05   -.81929E-04
  11  norm          2.4814        1.9171       -.32636E-07   -.13194E-03
  12  norm          .10000E-03    2.8994       -.23966E-05** at limit **
  13  norm          11.458        8.9773        .13126E-05   -.94768E-04
  14  Prefactor     .10000E-03    5.8249       -.12976E-06** at limit **
  15  Prefactor     .10000E-03    17.915       -.91376E-07** at limit **
  16  norm          .10000E-03    35.005       -.64311E-06** at limit **
  17  Prefactor     12.379        12.721       -.17154E-06    .21252E-04
  18  norm          .10000E-03    2.0897       -.21207E-06** at limit **
  19  Prefactor     .10000E-03    4.3193       -.24630E-06** at limit **
  20  Prefactor     25.811        55.406       -.73637E-05    .58256E-06
  21  norm          .10000E-03    7.8071        .39132E-06** at limit **
  22  norm          2.6713        2.1444       -.29592E-07   -.63193E-05
  23  Normalizat    1.3690        .26096        .12750E-05   -.31793E-04
  24  Prefactor     .78891        .12714        .16442E-06    .47432E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56124
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.5736
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.3428
  norm       = 2.48137
  norm       = 0.000100004
  norm       = 11.4579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.8112
  norm       = 0.0001
  norm       = 2.67126
  Normalizat = 1.36896
  Prefactor  = 0.788906
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.163     FROM HESSE     STATUS=OK           393 CALLS     3094 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5612        .39903        .22894E-04   -1.5458    
   2  norm          .10000E-03    4.9421        .16191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.4215        .11364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1313        .77346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.574        15.262        .76280E-04   -1.4657    
   7  norm          .10000E-03    3.3484        .13371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3428        22.237        .13070E-03   -1.5097    
  11  norm          2.4814        1.9247        .85398E-04   -1.5393    
  12  norm          .10000E-03    11.358        .22438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.458        8.9584        .11832E-03   -1.5031    
  14  Prefactor     .10000E-03    5.8294        .17631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    35.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.379        12.732        .11385E-03   -1.5004    
  18  norm          .10000E-03    2.0993        .10558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3847        .15177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.811        55.485        .78770E-04   -1.4691    
  21  norm          .10000E-03    8.0498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6713        2.1453        .95426E-04   -1.5381    
  23  Normalizat    1.3690        .31019        .31026E-03   -.81531    
  24  Prefactor     .78891        .15061        .20347E-03   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43079e-10
Minuit parameter uncertainties:
  1  0.399027
  2  1.74629e-05
  3  4.54033e-06
  4  1.89471e-05
  5  3.8737e-06
  6  15.2645
  7  1.5901e-06
  8  1.93238e-05
  9  3.119e-05
  10  22.2568
  11  1.9247
  12  0.000438811
  13  8.95949
  14  1.30649e-06
  15  2.63589e-05
  16  1.89754e-05
  17  12.7346
  18  1.73219e-05
  19  4.1115e-06
  20  55.596
  21  2.98987e-05
  22  2.14537
  23  0.310612
  24  0.150691
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.343e+00  2.226e+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.889e-01  1.507e-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.369e+00  3.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733180/likelihoodResults_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.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) = 5599.03765195
delta logL = 0.125376911982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5599.01917662
delta logL = 0.143852234886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0095       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3098       1.0000          .0000       10.000    
     3 'Normalizat'    1.3325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79987       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=   5599.019     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      284 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0101        25.173        .17967E-03    .37586E-03
   2  Index         3.3108        2.1964        .64438E-02    .14082E-03
   3  Normalizat    1.3326        .30331        .31380E-03    .26750E-03
   4  Prefactor     .79982        .15137        .20220E-03    .30207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.01009
  Index      = 3.31077
  Normalizat = 1.33263
  Prefactor  = 0.799823
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.019     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0101        14.249        .71867E-05   -1.5260    
   2  Index         3.3108        1.4226        .25775E-03   -.34463    
   3  Normalizat    1.3326        .30286        .62760E-04   -.82598    
   4  Prefactor     .79982        .15077        .40440E-04   -.99735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29201e-10
Minuit parameter uncertainties:
  1  14.2583
  2  1.44526
  3  0.303261
  4  0.15085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733180': 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) = 5599.01917529
delta logL = 0.143853566226

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.010e+00  1.426e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.311e+00  1.445e+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.998e-01  1.508e-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.333e+00  3.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/733180/cmap_HighResolution_579139201_579398401_4FGL_J1331.2-1325_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.86e-07', time_completed='2021-09-08 01:35:35.668307', job_id='733180', GAL2='0.80', fit_tolerance='1e-08', EG2='1.33', EG='1.37', time_epoch_completed='1631090135.67', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.44e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1311' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:35:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 733180: <4FGL_J1331.2-1325_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1311 202.819 -13.4282 579139201 579398401 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 :                                   656.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            882 sec.

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

