/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 81 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.0+3815_daily_bin4
RA = 172.755, Dec = 38.2565
tmin = 240364801, tmax = 240624001
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='894320', job_status='RUN', time_executed='2021-09-04 02:23:54.459070', time_epoch_executed='1630747434.46' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894320/ft1_4FGL_J1131.0+3815_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894320/ft1_4FGL_J1131.0+3815_daily_bin4.fits outfile=/scratch/kocevski/894320/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin4.fits ra=172.755 dec=38.2565 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.44
user 1.24
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.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/894320/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/894320/ltcube_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.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/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits
.....................!
real 15.84
user 15.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/894320/ltcube_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.fits outfile=/scratch/kocevski/894320/expmap_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.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/894320/ltcube_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.fits
.....................!
real 192.57
user 186.17
sys 4.93

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1131.0+3815 @ 172.755 38.2565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits scfile=/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits outfile=/scratch/kocevski/894320/cmap_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.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=172.755 yref=38.2565 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.64
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits scfile=/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits outfile=/scratch/kocevski/894320/cmap_HighResolution_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.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=172.755 yref=38.2565 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.66
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894320/Model_4FGL_J1131.0+3815_daily_bin4.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/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits.....................!
real 47.53
user 45.65
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits', '/scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits', expMap='/scratch/kocevski/894320/expmap_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.fits', expCube='/scratch/kocevski/894320/ltcube_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/894320/Model_4FGL_J1131.0+3815_daily_bin4.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.0+3815'

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.699e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/894320/ft1_filtered_4FGL_J1131.0+3815_daily_bin4.fits
Spacecraft file(s): /scratch/kocevski/894320/ft2_4FGL_J1131.0+3815_daily_bin4.fits
Exposure map: /scratch/kocevski/894320/expmap_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.fits
Exposure cube: /scratch/kocevski/894320/ltcube_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/894320/Model_4FGL_J1131.0+3815_daily_bin4.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) = 4789.92113397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13886E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.284       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8259       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39483E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.070       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    26.806       1.0000         .10000E-03   10000.    
    13 'norm      '    34.589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4977       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6144       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8197       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.740       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .59801       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.6460       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9020       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3096       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .66585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4789.889     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4273 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.646       -.93223E-05** at limit **
   2  Prefactor     .10000E-03    1.8597       -.10796E-09** at limit **
   3  Prefactor     .10008E-03    8.5790       -.82129E-06** at limit **
   4  Prefactor     34.283        49.143       -.13050E-05    .97794E-04
   5  Prefactor     .10000E-03    14.693        .11173E-05** at limit **
   6  Prefactor     .10000E-03    183.38        .53958E-06** at limit **
   7  norm          1.8259        .42969       -.16080E-07    .47835E-03
   8  Prefactor     .10013E-03    2.0549       -.83880E-06** at limit **
   9  Prefactor     .10000E-03    5.9753       -.19892E-07** at limit **
  10  Prefactor     11.070        10.747        .59708E-06    .62428E-03
  11  Prefactor     .10000E-03    39.622        .16571E-05** at limit **
  12  norm          26.803        15.652       -.19724E-06    .54666E-04
  13  norm          34.590        40.536       -.72918E-07    .22764E-05
  14  Prefactor     5.4975        3.1472       -.66275E-07   -.24308E-04
  15  Prefactor     .10000E-03    28.793        .16244E-06** at limit **
  16  Prefactor     .10000E-03    7.1820       -.82345E-07** at limit **
  17  norm          .10000E-03    1.9064       -.35732E-07** at limit **
  18  Prefactor     .10000E-03    4.8752       -.13658E-07** at limit **
  19  Prefactor     3.6159        5.9591       -.86425E-06   -.33109E-03
  20  Prefactor     .10001E-03    75.144        .10146E-04** at limit **
  21  norm          .10000E-03    .32904       -.22061E-07** at limit **
  22  norm          5.8199        6.2989        .54021E-07    .68301E-04
  23  Prefactor     41.734        32.199        .59059E-05   -.33734E-04
  24  Prefactor     .59827        4.4983       -.23944E-05   -.10670E-02
  25  Prefactor     .10000E-03    12.747       -.25141E-06** at limit **
  26  Prefactor     .10000E-03    7.7097        .94726E-07** at limit **
  27  norm          1.6461        1.2405       -.96356E-08    .95922E-05
  28  Prefactor     2.8663        148.42       -.39848E-04    .36774E-04
  29  Prefactor     .10000E-03    6.1510        .90348E-07** at limit **
  30  Normalizat    1.3094        .20164        .12959E-05    .32548E-03
  31  Prefactor     .66601        .22811        .27918E-06    .21399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  Prefactor  = 34.2831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8259
  Prefactor  = 0.000100127
  Prefactor  = 0.0001
  Prefactor  = 11.0702
  Prefactor  = 0.0001
  norm       = 26.8033
  norm       = 34.5895
  Prefactor  = 5.49753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61585
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 5.81992
  Prefactor  = 41.7342
  Prefactor  = 0.598267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64611
  Prefactor  = 2.86633
  Prefactor  = 0.0001
  Normalizat = 1.3094
  Prefactor  = 0.666008
 **********
 **   18 **HESSE 
 **********

 FCN=   4789.889     FROM HESSE     STATUS=OK           616 CALLS     4889 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8613        .92152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10008E-03    54.162        .37415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.283        47.430        .68439E-04   -1.4536    
   5  Prefactor     .10000E-03    14.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    184.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8259        .43074        .21165E-04   -1.5438    
   8  Prefactor     .10013E-03    21.623        .18899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9829        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.070        10.877        .60205E-03   -1.5042    
  11  Prefactor     .10000E-03    39.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          26.803        15.649        .77376E-04   -1.4672    
  13  norm          34.590        40.535        .68138E-04   -1.4531    
  14  Prefactor     5.4975        3.1358        .87444E-04   -1.5239    
  15  Prefactor     .10000E-03    28.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2037        .18115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9891        .18625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.8875        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6159        5.9773        .20356E-03   -1.5328    
  20  Prefactor     .10001E-03    74.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .33667        .38739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8199        6.3014        .16648E-03   -1.5225    
  23  Prefactor     41.734        31.793        .62047E-04   -1.4415    
  24  Prefactor     .59827        5.2615        .30709E-03   -1.5553    
  25  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.6461        1.2306        .64433E-04   -1.5451    
  28  Prefactor     2.8663        142.95        .23853E-03   -1.5369    
  29  Prefactor     .10000E-03    6.2643        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3094        .23733        .21819E-03   -.83286    
  31  Prefactor     .66601        .26741        .34255E-03   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04847e-08
Minuit parameter uncertainties:
  1  0.00102627
  2  7.56051e-07
  3  0.00426556
  4  47.4821
  5  5.76224e-05
  6  0.000277947
  7  0.430746
  8  0.00331413
  9  2.6384e-06
  10  10.8788
  11  0.000126457
  12  15.6509
  13  40.5675
  14  3.13591
  15  1.67609e-05
  16  3.48028e-06
  17  6.60098e-06
  18  5.68366e-06
  19  5.97827
  20  0.00122699
  21  1.08646e-06
  22  6.30211
  23  31.8056
  24  3.54854
  25  7.9113e-06
  26  6.86858e-06
  27  1.23059
  28  40.5864
  29  1.91812e-05
  30  0.237527
  31  0.267926
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  6.601e-06  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  6.660e-01  2.679e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.309e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894320/likelihoodResults_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.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) = 4789.8918218
delta logL = -0.00238981947859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4789.8894322
delta logL = -2.12289705814e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5434       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66603       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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=   4789.889     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      246 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    416.97        .18656E-02** at limit **
   2  alpha         2.3204        2.6011        .16464        .11394E-07
   3  Normalizat    1.3094        .11663        .21819E-03   -.16073E-03
   4  Prefactor     .66601        .13560        .34255E-03   -.96179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.32042
  Normalizat = 1.3094
  Prefactor  = 0.666006
 **********
 **   18 **HESSE 
 **********

 FCN=   4789.889     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0395        .37312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3204        3.6326        .65855E-02   -.71895E-01
   3  Normalizat    1.3094        .22827        .43638E-04   -.83286    
   4  Prefactor     .66601        .26505        .13702E-04   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62388e-11
Minuit parameter uncertainties:
  1  2.16344e-05
  2  207.938
  3  0.228442
  4  0.265556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894320': 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) = 4789.88943137
delta logL = 6.19000275037e-07

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  2.163e-05  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.320e+00  2.079e+02  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  6.660e-01  2.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.309e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.755 38.257

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/894320/cmap_HighResolution_240364801_240624001_4FGL_J1131.0+3815_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-04 02:38:12.573920', job_id='894320', GAL2='0.67', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630748292.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='6.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='4' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 02:38:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 894320: <4FGL_J1131.0+3815_daily_bin4> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin4> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 02:21:59 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:22:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:22:24 2021
Terminated at Sat Sep  4 02:38:13 2021
Results reported at Sat Sep  4 02:38:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin4 172.755 38.2565 240364801 240624001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.0+3815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   850.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            974 sec.

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

