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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1442
RA = 202.819, Dec = -13.4282
tmin = 613094401, tmax = 613353601
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='733350', job_status='RUN', time_executed='2021-09-08 01:23:42.211611', time_epoch_executed='1631089422.21' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733350/ft1_4FGL_J1331.2-1325_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733350/ft2_4FGL_J1331.2-1325_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733350/ft1_4FGL_J1331.2-1325_daily_bin1442.fits outfile=/scratch/kocevski/733350/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1442.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=613094401.0 tmax=613353601.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.86
user 2.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733350/ft1_filtered_4FGL_J1331.2-1325_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/733350/ft2_4FGL_J1331.2-1325_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/733350/ltcube_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.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/733350/ft2_4FGL_J1331.2-1325_daily_bin1442.fits
.....................!
real 16.95
user 16.13
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733350/ft1_filtered_4FGL_J1331.2-1325_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/733350/ft2_4FGL_J1331.2-1325_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/733350/ltcube_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.fits outfile=/scratch/kocevski/733350/expmap_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.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/733350/ltcube_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.fits
.....................!
real 193.28
user 186.30
sys 4.97

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/733350/ft1_filtered_4FGL_J1331.2-1325_daily_bin1442.fits scfile=/scratch/kocevski/733350/ft2_4FGL_J1331.2-1325_daily_bin1442.fits outfile=/scratch/kocevski/733350/cmap_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733350/ft1_filtered_4FGL_J1331.2-1325_daily_bin1442.fits scfile=/scratch/kocevski/733350/ft2_4FGL_J1331.2-1325_daily_bin1442.fits outfile=/scratch/kocevski/733350/cmap_HighResolution_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733350/ft1_filtered_4FGL_J1331.2-1325_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/733350/ft2_4FGL_J1331.2-1325_daily_bin1442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733350/Model_4FGL_J1331.2-1325_daily_bin1442.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/733350/ft1_filtered_4FGL_J1331.2-1325_daily_bin1442.fits.....................!
real 61.65
user 60.09
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9682       1.0000         .10000E-03   10000.    
     2 'norm      '    7.6899       1.0000         .10000E-03   10000.    
     3 'norm      '    .89050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.367       1.0000         .10000E-03   10000.    
     7 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2811       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0599       1.0000         .10000E-03   10000.    
    11 'norm      '    .22523E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5190       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1151       1.0000         .10000E-03   10000.    
    16 'norm      '    94.448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6682       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.822       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.4300       1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.0518       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69325       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=   7116.394     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2724 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9682        .66592       -.17341E-07   -.59673E-03
   2  norm          7.6895        6.7553        .98746E-07    .13527E-08
   3  norm          .10007E-03    8.0699        .43000E-05** at limit **
   4  Prefactor     .10000E-03    29.931        .13876E-06** at limit **
   5  norm          .10000E-03    1.1969       -.77460E-07** at limit **
   6  norm          11.367        13.993        .53746E-06    .16296E-03
   7  norm          .10000E-03    6.5440        .18276E-06** at limit **
   8  Prefactor     4.2816        7.5818        .20682E-05    .90964E-03
   9  Prefactor     .10000E-03    8.1754       -.93013E-06** at limit **
  10  Prefactor     9.0440        22.826       -.68571E-06    .22191E-03
  11  norm          .10000E-03    .84634        .94182E-07** at limit **
  12  norm          .10000E-03    6.8344       -.41670E-05** at limit **
  13  norm          .10000E-03    3.6847       -.65801E-07** at limit **
  14  Prefactor     2.5200        15.581        .72213E-06    .50203E-04
  15  Prefactor     5.1200        33.362       -.16782E-05   -.29648E-04
  16  norm          94.462        76.123       -.26423E-05   -.11192E-03
  17  Prefactor     .10000E-03    3.6955       -.10989E-07** at limit **
  18  norm          3.6682        4.1892        .47502E-07    .58777E-04
  19  Prefactor     .10000E-03    1.9639        .90116E-08** at limit **
  20  Prefactor     11.836        30.484       -.52955E-05   -.14934E-03
  21  norm          .10000E-03    3.8460       -.25744E-07** at limit **
  22  norm          8.4301        4.5940        .17528E-07    .30332E-05
  23  Normalizat    2.0519        .28440        .26478E-06   -.17776E-04
  24  Prefactor     .69317        .14003       -.52210E-06   -.17387E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.96821
  norm       = 7.6895
  norm       = 0.000100073
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.3669
  norm       = 0.0001
  Prefactor  = 4.28163
  Prefactor  = 0.0001
  Prefactor  = 9.04397
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.52001
  Prefactor  = 5.12004
  norm       = 94.4615
  Prefactor  = 0.0001
  norm       = 3.66815
  Prefactor  = 0.0001
  Prefactor  = 11.8362
  norm       = 0.0001
  norm       = 8.43008
  Normalizat = 2.05185
  Prefactor  = 0.693169
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.394     FROM HESSE     STATUS=OK           401 CALLS     3125 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9682        .66888        .20375E-04   -1.5180    
   2  norm          7.6895        6.7521        .14461E-03   -1.5153    
   3  norm          .10007E-03    24.329        .32986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2243        .90088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.367        14.049        .59411E-03   -1.5034    
   7  norm          .10000E-03    6.5760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2816        8.0283        .97359E-03   -1.5294    
   9  Prefactor     .10000E-03    8.2745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0440        20.611        .13316E-03   -1.5106    
  11  norm          .10000E-03    14.209        .14586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.9799        .27975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.6964        .15791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5200        15.533        .25741E-03   -1.5390    
  15  Prefactor     5.1200        33.264        .17777E-03   -1.5255    
  16  norm          94.462        76.366        .20678E-03   -1.3761    
  17  Prefactor     .10000E-03    3.6982        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6682        4.1794        .17864E-03   -1.5325    
  19  Prefactor     .10000E-03    1.9688        .11544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.836        30.805        .11651E-03   -1.5020    
  21  norm          .10000E-03    3.8816        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4301        4.5978        .12937E-03   -1.5127    
  23  Normalizat    2.0519        .32834        .32979E-03   -.63257    
  24  Prefactor     .69317        .16230        .26594E-03   -1.0380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75548e-09
Minuit parameter uncertainties:
  1  0.668879
  2  6.75273
  3  0.00267403
  4  2.30552e-05
  5  3.47687e-06
  6  14.0527
  7  1.11745e-05
  8  8.03036
  9  3.31002e-05
  10  20.6269
  11  5.49738e-05
  12  0.000211657
  13  4.88968e-06
  14  12.5175
  15  26.1219
  16  76.4452
  17  4.12505e-06
  18  4.1797
  19  3.51326e-06
  20  30.8462
  21  1.52024e-06
  22  4.59797
  23  0.328706
  24  0.16241
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.044e+00  2.063e+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:  6.932e-01  1.624e-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:  2.052e+00  3.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733350/likelihoodResults_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.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) = 7116.19782448
delta logL = 0.196169396086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7116.19524901
delta logL = 0.198744871572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7360       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6334       1.0000          .0000       10.000    
     3 'Normalizat'    2.0053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70847       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=   7116.195     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      341 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7401        232.95        .17751E-03    .21135E-04
   2  Index         3.6331        6.3703        .81300E-02    .29683E-04
   3  Normalizat    2.0053        .28473        .33266E-03   -.86797E-04
   4  Prefactor     .70846        .14490        .26333E-03    .11639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74013
  Index      = 3.63311
  Normalizat = 2.00532
  Prefactor  = 0.708464
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.195     FROM HESSE     STATUS=OK            25 CALLS      366 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7401        11.789        .71005E-05   -1.5377    
   2  Index         3.6331        1.9866        .32520E-03   -.27690    
   3  Normalizat    2.0053        .32940        .66532E-04   -.64417    
   4  Prefactor     .70846        .16252        .10533E-04   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01627e-10
Minuit parameter uncertainties:
  1  11.3707
  2  2.04795
  3  0.329774
  4  0.16263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733350': 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) = 7116.19524864
delta logL = 0.198745240052

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.740e+00  1.137e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.633e+00  2.048e+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.085e-01  1.626e-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:  2.005e+00  3.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/733350/cmap_HighResolution_613094401_613353601_4FGL_J1331.2-1325_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2021-09-08 01:36:32.646500', job_id='733350', GAL2='0.71', fit_tolerance='1e-08', EG2='2.01', EG='2.05', time_epoch_completed='1631090192.65', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.99e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1442' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:36:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 733350: <4FGL_J1331.2-1325_daily_bin1442> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1442 202.819 -13.4282 613094401 613353601 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 :                                   751.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            923 sec.

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

