/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 43 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin339
RA = 202.819, Dec = -13.4282
tmin = 327196801, tmax = 327456001
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='727455', job_status='RUN', time_executed='2021-09-08 01:03:52.580251', time_epoch_executed='1631088232.58' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727455/ft1_4FGL_J1331.2-1325_daily_bin339.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727455/ft2_4FGL_J1331.2-1325_daily_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727455/ft1_4FGL_J1331.2-1325_daily_bin339.fits outfile=/scratch/kocevski/727455/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin339.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=327196801.0 tmax=327456001.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 5.31
user 3.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727455/ft1_filtered_4FGL_J1331.2-1325_daily_bin339.fits" evtable="EVENTS" scfile=/scratch/kocevski/727455/ft2_4FGL_J1331.2-1325_daily_bin339.fits sctable="SC_DATA" outfile=/scratch/kocevski/727455/ltcube_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.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/727455/ft2_4FGL_J1331.2-1325_daily_bin339.fits
.....................!
real 14.37
user 13.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727455/ft1_filtered_4FGL_J1331.2-1325_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/727455/ft2_4FGL_J1331.2-1325_daily_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/727455/ltcube_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.fits outfile=/scratch/kocevski/727455/expmap_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.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/727455/ltcube_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.fits
.....................!
real 193.93
user 187.01
sys 4.48

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/727455/ft1_filtered_4FGL_J1331.2-1325_daily_bin339.fits scfile=/scratch/kocevski/727455/ft2_4FGL_J1331.2-1325_daily_bin339.fits outfile=/scratch/kocevski/727455/cmap_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727455/ft1_filtered_4FGL_J1331.2-1325_daily_bin339.fits scfile=/scratch/kocevski/727455/ft2_4FGL_J1331.2-1325_daily_bin339.fits outfile=/scratch/kocevski/727455/cmap_HighResolution_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=202.819 yref=-13.4282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/727455/ft1_filtered_4FGL_J1331.2-1325_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/727455/ft2_4FGL_J1331.2-1325_daily_bin339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727455/Model_4FGL_J1331.2-1325_daily_bin339.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/727455/ft1_filtered_4FGL_J1331.2-1325_daily_bin339.fits.....................!
real 55.51
user 54.01
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5149       1.0000         .10000E-03   10000.    
     2 'norm      '    13.938       1.0000         .10000E-03   10000.    
     3 'norm      '    20.634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4926       1.0000         .10000E-03   10000.    
     6 'norm      '    7.0447       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8941       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.158       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.585       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9984       1.0000         .10000E-03   10000.    
    12 'norm      '    .11530E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2381       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2503       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6239       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2824       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.7115       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1943       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87942       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=   6357.296     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2699 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5147        .60606        .10480E-07    .92303E-04
   2  norm          13.938        11.375       -.73601E-06   -.70891E-03
   3  norm          20.633        11.271        .22707E-07   -.15641E-04
   4  Prefactor     .10000E-03    24.886       -.58294E-05** at limit **
   5  norm          3.4928        2.7006        .20001E-07    .17273E-04
   6  norm          7.0443        7.2610       -.22080E-06    .26925E-04
   7  norm          2.8947        9.8084       -.65277E-06   -.16803E-03
   8  Prefactor     .10000E-03    18.295        .35401E-05** at limit **
   9  Prefactor     12.157        10.257       -.64602E-06   -.50389E-04
  10  Prefactor     38.591        26.805        .76427E-05    .41311E-04
  11  norm          1.9979        1.8270       -.59110E-07   -.60988E-03
  12  norm          .10000E-03    3.7325       -.29190E-06** at limit **
  13  norm          5.8400        10.737       -.41539E-05   -.13323E-03
  14  Prefactor     .10000E-03    17.767       -.80039E-05** at limit **
  15  Prefactor     .10000E-03    22.080        .15112E-04** at limit **
  16  norm          .10000E-03    25.155       -.86735E-05** at limit **
  17  Prefactor     4.2395        14.039        .24553E-05   -.46135E-04
  18  norm          3.2516        6.8292        .13849E-05   -.24204E-03
  19  Prefactor     8.6207        6.9297       -.20273E-06   -.35171E-04
  20  Prefactor     3.2721        125.24       -.48036E-04   -.91568E-05
  21  norm          .10000E-03    6.8008       -.82026E-07** at limit **
  22  norm          6.7110        3.1614        .17314E-06   -.35245E-05
  23  Normalizat    1.1947        .28114       -.12852E-05    .72248E-04
  24  Prefactor     .87923        .13867        .87078E-06   -.92595E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51473
  norm       = 13.9375
  norm       = 20.6333
  Prefactor  = 0.0001
  norm       = 3.49282
  norm       = 7.0443
  norm       = 2.89471
  Prefactor  = 0.000100001
  Prefactor  = 12.1565
  Prefactor  = 38.5908
  norm       = 1.99785
  norm       = 0.000100001
  norm       = 5.84004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.23951
  norm       = 3.25163
  Prefactor  = 8.62067
  Prefactor  = 3.27208
  norm       = 0.0001
  norm       = 6.71097
  Normalizat = 1.19472
  Prefactor  = 0.879226
 **********
 **   18 **HESSE 
 **********

 FCN=   6357.296     FROM HESSE     STATUS=OK           407 CALLS     3106 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5147        .60850        .21833E-04   -1.5283    
   2  norm          13.938        11.449        .53643E-03   -1.4961    
   3  norm          20.633        11.269        .88176E-04   -1.4799    
   4  Prefactor     .10000E-03    24.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4928        2.7048        .11156E-03   -1.5334    
   6  norm          7.0443        7.2618        .15114E-03   -1.5177    
   7  norm          2.8947        9.8011        .23887E-03   -1.5368    
   8  Prefactor     .10000E-03    18.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.157        10.280        .11488E-03   -1.5011    
  10  Prefactor     38.591        26.743        .64525E-04   -1.4465    
  11  norm          1.9979        1.8256        .96386E-04   -1.5425    
  12  norm          .10000E-03    3.7522        .14929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8400        10.689        .16616E-03   -1.5225    
  14  Prefactor     .10000E-03    17.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    25.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2395        13.949        .19573E-03   -1.5296    
  18  norm          3.2516        6.7742        .22465E-03   -1.5347    
  19  Prefactor     8.6207        6.9222        .13650E-03   -1.5121    
  20  Prefactor     3.2721        125.34        .22349E-03   -1.5346    
  21  norm          .10000E-03    6.8555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.7110        3.1628        .94099E-04   -1.5190    
  23  Normalizat    1.1947        .33036        .36684E-03   -.86766    
  24  Prefactor     .87923        .16311        .21737E-03   -.96871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11869e-09
Minuit parameter uncertainties:
  1  0.608497
  2  11.4507
  3  11.2705
  4  1.56814e-06
  5  2.70489
  6  7.26274
  7  9.80656
  8  0.00022419
  9  10.2814
  10  26.7512
  11  1.8256
  12  8.83485e-05
  13  10.6922
  14  0.000106872
  15  4.42121e-05
  16  1.86576e-06
  17  13.9601
  18  6.77579
  19  6.92286
  20  40.5936
  21  2.38731e-05
  22  3.16286
  23  0.330939
  24  0.163204
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  3.859e+01  2.675e+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:  8.792e-01  1.632e-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.195e+00  3.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.72
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 8.86e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 2.33e-05

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

Saving results to:
/scratch/kocevski/727455/likelihoodResults_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.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) = 6357.28446367
delta logL = 0.0113056169048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6357.2674869
delta logL = 0.0282823944472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.379       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7410       1.0000          .0000       10.000    
     3 'Normalizat'    1.1808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88456       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=   6357.267     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.371        37.974        .70418E-04   -.19076E-03
   2  Index         2.7410        .69126        .48312E-02   -.95920E-04
   3  Normalizat    1.1808        .31279        .36866E-03   -.62790E-03
   4  Prefactor     .88455        .15924        .21681E-03   -.12409E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3712
  Index      = 2.741
  Normalizat = 1.18081
  Prefactor  = 0.88455
 **********
 **   18 **HESSE 
 **********

 FCN=   6357.267     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.371        33.706        .14084E-04   -1.4569    
   2  Index         2.7410        .61319        .19325E-03   -.46878    
   3  Normalizat    1.1808        .31221        .73732E-04   -.87198    
   4  Prefactor     .88455        .15893        .43362E-04   -.96683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23105e-09
Minuit parameter uncertainties:
  1  33.7261
  2  0.615142
  3  0.312703
  4  0.159011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727455': 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) = 6357.26748683
delta logL = 0.028282458471

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  3.237e+01  3.373e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.741e+00  6.151e-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:  8.845e-01  1.590e-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.181e+00  3.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 2.74 +/- 0.62
Photon Flux (Free Index): 1.39e-07 +/- 9.40e-08
Energy Flux (Free Index): 3.24e-05 +/- 2.05e-05

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/727455/cmap_HighResolution_327196801_327456001_4FGL_J1331.2-1325_daily_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-02', comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.24e-05', photon_flux_error='8.86e-08', dlogl='2.83e-02', energy_flux='3.36e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-08 01:15:27.899730', photon_index_error2='0.62', photon_index2='2.74', ts='3.72', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.84e-07', energy_flux_error2='2.05e-05', EG='1.19', time_epoch_completed='1631088927.9', return_code='0', job_id='727455', GAL2='0.88', EG2='1.18', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='9.40e-08', ts2='3.77', photon_index='2.60' WHERE bin_id='339' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:15:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 727455: <4FGL_J1331.2-1325_daily_bin339> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin339> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 01:00:51 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:02:26 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:02:26 2021
Terminated at Wed Sep  8 01:15:28 2021
Results reported at Wed Sep  8 01:15:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin339 202.819 -13.4282 327196801 327456001 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 :                                   688.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            877 sec.

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

