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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1369
RA = 202.819, Dec = -13.4282
tmin = 594172801, tmax = 594432001
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='733238', job_status='RUN', time_executed='2021-09-08 01:24:04.502848', time_epoch_executed='1631089444.5' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733238/ft1_4FGL_J1331.2-1325_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733238/ft2_4FGL_J1331.2-1325_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733238/ft1_4FGL_J1331.2-1325_daily_bin1369.fits outfile=/scratch/kocevski/733238/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1369.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=594172801.0 tmax=594432001.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.22
user 3.96
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733238/ft2_4FGL_J1331.2-1325_daily_bin1369.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/733238/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1369.fits evtable="EVENTS" outfile="/scratch/kocevski/733238/ft1_filtered_4FGL_J1331.2-1325_daily_bin1369.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.81
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733238/ft1_filtered_4FGL_J1331.2-1325_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/733238/ft2_4FGL_J1331.2-1325_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/733238/ltcube_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.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/733238/ft2_4FGL_J1331.2-1325_daily_bin1369.fits
.....................!
real 20.08
user 18.01
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733238/ft1_filtered_4FGL_J1331.2-1325_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/733238/ft2_4FGL_J1331.2-1325_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/733238/ltcube_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.fits outfile=/scratch/kocevski/733238/expmap_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.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/733238/ltcube_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.fits
.....................!
real 196.45
user 188.72
sys 5.68

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/733238/ft1_filtered_4FGL_J1331.2-1325_daily_bin1369.fits scfile=/scratch/kocevski/733238/ft2_4FGL_J1331.2-1325_daily_bin1369.fits outfile=/scratch/kocevski/733238/cmap_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.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.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733238/ft1_filtered_4FGL_J1331.2-1325_daily_bin1369.fits scfile=/scratch/kocevski/733238/ft2_4FGL_J1331.2-1325_daily_bin1369.fits outfile=/scratch/kocevski/733238/cmap_HighResolution_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3002       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14577       1.0000         .10000E-03   10000.    
     6 'norm      '    .20448E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.161       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4163       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.268       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0938       1.0000         .10000E-03   10000.    
    18 'norm      '    .73384       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .26147E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0498       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3415       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=   7370.015     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2747 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3002        .36621        .27414E-08   -.10234E-03
   2  norm          .10000E-03    2.9195        .17624E-07** at limit **
   3  norm          .10000E-03    1.8239        .82419E-08** at limit **
   4  Prefactor     .10001E-03    27.721        .14637E-05** at limit **
   5  norm          .14600        1.7498        .14286E-05   -.11450E-02
   6  norm          .10001E-03    35.324       -.23240E-05** at limit **
   7  norm          .10000E-03    23.750        .12268E-05** at limit **
   8  Prefactor     4.2822        6.9487        .29241E-06   -.36173E-05
   9  Prefactor     .10000E-03    4.9338       -.33751E-07** at limit **
  10  Prefactor     22.152        19.524       -.42372E-06   -.28994E-03
  11  norm          2.4163        2.1727        .18093E-06   -.12026E-04
  12  norm          .10000E-03    3.2873       -.25077E-06** at limit **
  13  norm          12.912        9.1500        .73440E-07   -.10080E-03
  14  Prefactor     .10000E-03    6.1483       -.16561E-07** at limit **
  15  Prefactor     70.274        39.513        .64888E-06    .21247E-03
  16  norm          .10001E-03    17.373       -.15155E-05** at limit **
  17  Prefactor     4.0956        10.476        .11492E-06   -.52305E-04
  18  norm          .73470        6.3069        .47712E-05    .58282E-04
  19  Prefactor     .10000E-03    8.6736       -.30241E-06** at limit **
  20  Prefactor     .10000E-03    11.589        .64173E-06** at limit **
  21  norm          .10004E-03    5.0663        .10150E-05** at limit **
  22  norm          .10000E-03    2.0205        .31741E-07** at limit **
  23  Normalizat    1.0497        .27785        .17757E-06   -.23096E-03
  24  Prefactor     1.3416        .14498       -.95628E-06   -.40567E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30024
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.146002
  norm       = 0.000100008
  norm       = 0.000100003
  Prefactor  = 4.28218
  Prefactor  = 0.0001
  Prefactor  = 22.1518
  norm       = 2.41631
  norm       = 0.0001
  norm       = 12.9125
  Prefactor  = 0.0001
  Prefactor  = 70.2743
  norm       = 0.000100006
  Prefactor  = 4.09561
  norm       = 0.734704
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100039
  norm       = 0.0001
  Normalizat = 1.04967
  Prefactor  = 1.34156
 **********
 **   18 **HESSE 
 **********

 FCN=   7370.015     FROM HESSE     STATUS=OK           393 CALLS     3140 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3002        .36625        .26614E-04   -1.5480    
   2  norm          .10000E-03    2.9251        .14325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8255        .11323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    27.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .14600        3.1529        .18932E-02   -1.5632    
   6  norm          .10001E-03    36.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    24.646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2822        6.9386        .19469E-03   -1.5294    
   9  Prefactor     .10000E-03    4.9635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.152        19.500        .85087E-04   -1.4766    
  11  norm          2.4163        2.1792        .11106E-03   -1.5397    
  12  norm          .10000E-03    3.3064        .15103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.912        9.1208        .11146E-03   -1.4989    
  14  Prefactor     .10000E-03    6.1556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     70.274        39.591        .47888E-04   -1.4029    
  16  norm          .10001E-03    17.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0956        10.432        .19925E-03   -1.5303    
  18  norm          .73470        6.7398        .42192E-03   -1.5537    
  19  Prefactor     .10000E-03    8.8799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10004E-03    35.807        .35622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0547        .11907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0497        .30913        .41283E-03   -.91385    
  24  Prefactor     1.3416        .16295        .20004E-03   -.82080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34587e-09
Minuit parameter uncertainties:
  1  0.366251
  2  2.51617e-06
  3  6.45329e-07
  4  0.000780843
  5  1.35656
  6  0.00107605
  7  0.000500386
  8  6.93989
  9  4.29119e-07
  10  19.5055
  11  2.17928
  12  1.50029e-06
  13  9.12183
  14  8.08282e-07
  15  39.6057
  16  0.000635874
  17  10.4364
  18  4.45088
  19  9.74777e-05
  20  0.000223676
  21  0.00237466
  22  1.96844e-06
  23  0.309664
  24  0.163015
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.215e+01  1.951e+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:  1.342e+00  1.630e-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.050e+00  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 6.46e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.70e-05

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

Saving results to:
/scratch/kocevski/733238/likelihoodResults_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.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) = 7370.0078459
delta logL = 0.00754684399817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7370.00260774
delta logL = 0.0127850046783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.476       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4769       1.0000          .0000       10.000    
     3 'Normalizat'    1.0580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3390       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=   7370.003     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.470        26.128        .80969E-04    .19037E-03
   2  Index         2.4784        .79295        .91878E-02    .51731E-04
   3  Normalizat    1.0580        .29784        .41142E-03    .16585E-03
   4  Prefactor     1.3390        .15866        .20020E-03    .38746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4704
  Index      = 2.47839
  Normalizat = 1.05798
  Prefactor  = 1.33903
 **********
 **   18 **HESSE 
 **********

 FCN=   7370.003     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.470        24.865        .16194E-04   -1.4718    
   2  Index         2.4784        .75370        .36751E-03   -.52860    
   3  Normalizat    1.0580        .29751        .16457E-04   -.91113    
   4  Prefactor     1.3390        .15863        .40041E-04   -.82154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28904e-10
Minuit parameter uncertainties:
  1  24.8753
  2  0.757578
  3  0.297979
  4  0.158688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733238': 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) = 7370.00260457
delta logL = 0.0127881742874

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.447e+01  2.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.478e+00  7.576e-01  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:  1.339e+00  1.587e-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.058e+00  2.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 2.48 +/- 0.76
Photon Flux (Free Index): 6.55e-08 +/- 7.64e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.70e-05

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/733238/cmap_HighResolution_594172801_594432001_4FGL_J1331.2-1325_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='1.95e-05', photon_flux_error='6.46e-08', dlogl='1.28e-02', energy_flux='1.93e-05', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-08 01:36:43.750667', photon_index_error2='0.76', photon_index2='2.48', ts='3.08', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='1.70e-05', EG='1.05', time_epoch_completed='1631090203.75', return_code='0', job_id='733238', GAL2='1.34', EG2='1.06', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='7.64e-08', ts2='3.11', photon_index='2.60' WHERE bin_id='1369' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:36:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 733238: <4FGL_J1331.2-1325_daily_bin1369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1369 202.819 -13.4282 594172801 594432001 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            942 sec.

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

