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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1314
RA = 202.819, Dec = -13.4282
tmin = 579916801, tmax = 580176001
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='733183', job_status='RUN', time_executed='2021-09-08 01:24:42.771139', time_epoch_executed='1631089482.77' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733183/ft1_4FGL_J1331.2-1325_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733183/ft2_4FGL_J1331.2-1325_daily_bin1314.fits


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

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

Done.
real 3.58
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733183/ft1_filtered_4FGL_J1331.2-1325_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/733183/ft2_4FGL_J1331.2-1325_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/733183/ltcube_579916801_580176001_4FGL_J1331.2-1325_daily_bin1314.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/733183/ft2_4FGL_J1331.2-1325_daily_bin1314.fits
.....................!
real 16.77
user 15.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733183/ft1_filtered_4FGL_J1331.2-1325_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/733183/ft2_4FGL_J1331.2-1325_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/733183/ltcube_579916801_580176001_4FGL_J1331.2-1325_daily_bin1314.fits outfile=/scratch/kocevski/733183/expmap_579916801_580176001_4FGL_J1331.2-1325_daily_bin1314.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/733183/ltcube_579916801_580176001_4FGL_J1331.2-1325_daily_bin1314.fits
.....................!
real 195.41
user 188.03
sys 4.60

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/733183/ft1_filtered_4FGL_J1331.2-1325_daily_bin1314.fits scfile=/scratch/kocevski/733183/ft2_4FGL_J1331.2-1325_daily_bin1314.fits outfile=/scratch/kocevski/733183/cmap_579916801_580176001_4FGL_J1331.2-1325_daily_bin1314.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.67
user 0.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733183/ft1_filtered_4FGL_J1331.2-1325_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/733183/ft2_4FGL_J1331.2-1325_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733183/Model_4FGL_J1331.2-1325_daily_bin1314.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/733183/ft1_filtered_4FGL_J1331.2-1325_daily_bin1314.fits.....................!
real 50.48
user 48.32
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1899       1.0000         .10000E-03   10000.    
     2 'norm      '    7.6964       1.0000         .10000E-03   10000.    
     3 'norm      '    .40064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .95480       1.0000         .10000E-03   10000.    
     6 'norm      '    18.657       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.419       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8967       1.0000         .10000E-03   10000.    
    12 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.2330       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0886       1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.484       1.0000         .10000E-03   10000.    
    16 'norm      '    .16350E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12161E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9622       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1570       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5464       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6592       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60235       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=   5760.247     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2763 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1898        .43714       -.64013E-08    .11416E-04
   2  norm          7.6973        10.921        .28975E-05   -.53982E-04
   3  norm          .10003E-03    6.8614        .98877E-06** at limit **
   4  Prefactor     .10000E-03    23.788       -.10072E-07** at limit **
   5  norm          .95477        2.4530        .73676E-06   -.28640E-04
   6  norm          18.658        13.623       -.14856E-07   -.74841E-05
   7  norm          .10000E-03    4.0083        .24233E-07** at limit **
   8  Prefactor     1.9974        6.8076        .28339E-06   -.12961E-03
   9  Prefactor     .10000E-03    5.0117       -.16402E-06** at limit **
  10  Prefactor     18.430        24.797       -.21641E-05   -.25243E-03
  11  norm          1.8965        1.4259        .25324E-07    .84081E-05
  12  norm          .10000E-03    2.7885       -.11119E-05** at limit **
  13  norm          7.2332        7.9656        .27936E-06   -.64927E-04
  14  Prefactor     7.0964        14.566       -.11629E-05   -.19858E-03
  15  Prefactor     62.481        38.852        .21237E-06    .84148E-05
  16  norm          .10000E-03    330.74       -.28075E-05** at limit **
  17  Prefactor     .10000E-03    27.618       -.11375E-05** at limit **
  18  norm          2.9619        5.7283        .28127E-06   -.18458E-03
  19  Prefactor     1.1561        3.8939        .11341E-05    .50068E-04
  20  Prefactor     .10000E-03    11.817       -.89002E-07** at limit **
  21  norm          .10000E-03    3.5790       -.23751E-08** at limit **
  22  norm          3.5464        3.0299        .36028E-07   -.16300E-04
  23  Normalizat    1.6593        .25988        .11541E-05   -.13215E-03
  24  Prefactor     .60237        .12835       -.15904E-05   -.40382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18982
  norm       = 7.69731
  norm       = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.954769
  norm       = 18.6575
  norm       = 0.0001
  Prefactor  = 1.99738
  Prefactor  = 0.0001
  Prefactor  = 18.4305
  norm       = 1.89649
  norm       = 0.0001
  norm       = 7.23323
  Prefactor  = 7.09643
  Prefactor  = 62.481
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.96194
  Prefactor  = 1.1561
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.54642
  Normalizat = 1.65933
  Prefactor  = 0.602372
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.247     FROM HESSE     STATUS=OK           405 CALLS     3168 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1898        .43847        .21590E-04   -1.5412    
   2  norm          7.6973        11.068        .72273E-03   -1.5153    
   3  norm          .10003E-03    23.726        .36874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95477        2.3541        .18249E-02   -1.5513    
   6  norm          18.658        13.653        .92726E-04   -1.4844    
   7  norm          .10000E-03    4.0106        .14840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9974        6.7897        .29297E-03   -1.5425    
   9  Prefactor     .10000E-03    5.0294        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.430        25.037        .93322E-04   -1.4849    
  11  norm          1.8965        1.4218        .75459E-04   -1.5433    
  12  norm          .10000E-03    2.7406        .12164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.2332        7.9319        .14914E-03   -1.5170    
  14  Prefactor     7.0964        14.652        .15067E-03   -1.5175    
  15  Prefactor     62.481        38.850        .50763E-04   -1.4125    
  16  norm          .10000E-03    343.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9619        5.7331        .23594E-03   -1.5364    
  19  Prefactor     1.1561        3.8643        .26376E-03   -1.5493    
  20  Prefactor     .10000E-03    11.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6067        .14009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5464        3.0315        .11733E-03   -1.5331    
  23  Normalizat    1.6593        .29927        .29175E-03   -.73395    
  24  Prefactor     .60237        .14559        .22867E-03   -1.0749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82063e-09
Minuit parameter uncertainties:
  1  0.43847
  2  11.0705
  3  0.00171729
  4  3.56416e-06
  5  2.35435
  6  13.6549
  7  1.02397e-06
  8  6.79231
  9  4.57187e-06
  10  25.0511
  11  1.42178
  12  1.70889e-05
  13  7.93306
  14  14.6596
  15  38.866
  16  0.00206157
  17  9.14117e-05
  18  5.73417
  19  3.86516
  20  5.75709e-06
  21  6.79574e-06
  22  3.03161
  23  0.2996
  24  0.145682
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.843e+01  2.505e+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.024e-01  1.457e-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.659e+00  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733183/likelihoodResults_579916801_580176001_4FGL_J1331.2-1325_daily_bin1314.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): 102
logL (Free Index) = 5757.74547371
delta logL = 2.50156679847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5756.66706658
delta logL = 3.57997393533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8774       1.0000          .0000       10.000    
     3 'Normalizat'    1.4474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5756.667     FROM MIGRAD    STATUS=CONVERGED    270 CALLS      622 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22837E-02    .25275E-03** at limit **
   2  Index         8.8773        1.9708        .10032        .90682E-04
   3  Normalizat    1.4468        .93134E-01    .69452E-01    .18972E-04
   4  Prefactor     .68135        .45969E-01    .42149E-01    .29565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.87731
  Normalizat = 1.44684
  Prefactor  = 0.681347
 **********
 **   18 **HESSE 
 **********

 FCN=   5756.667     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      661 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .16244E-01    .10074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8773        2.4151        .43828E-03    .88745    
   3  Normalizat    1.4468        .21512        .30727E-03   -.79283    
   4  Prefactor     .68135        .10660        .21644E-03   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.01794e-12
Minuit parameter uncertainties:
  1  2.09446e-10
  2  2.7499
  3  0.215252
  4  0.106634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733183': 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): 102
logL (Free Index) = 5756.66706014
delta logL = 3.57998036916

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.094e-10  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  8.877e+00  2.750e+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:  6.813e-01  1.066e-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.447e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.64
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 8.88 +/- 2.75
Photon Flux (Free Index): 2.61e-07 +/- 1.60e-06
Energy Flux (Free Index): 2.98e-05 +/- 1.82e-04

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/733183/cmap_HighResolution_579916801_580176001_4FGL_J1331.2-1325_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', energy_flux2='2.98e-05', dlogl='3.58e+00', photon_flux2='2.61e-07', job_status='DONE', time_completed='2021-09-08 01:36:43.337719', photon_index_error2='2.75', photon_index2='8.88', ts='0.78', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='1.82e-04', EG='1.66', time_epoch_completed='1631090203.34', return_code='0', job_id='733183', GAL2='0.68', EG2='1.45', return_code2='102', photon_flux_error2='1.60e-06', ts2='8.64', photon_index='2.60' WHERE bin_id='1314' 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@bullet0047>
Subject: Job 733183: <4FGL_J1331.2-1325_daily_bin1314> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1314> 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) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:22:23 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:23 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_bin1314 202.819 -13.4282 579916801 580176001 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 :                                   676.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            950 sec.

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

