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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1541
RA = 207.715, Dec = 30.5588
tmin = 638755201, tmax = 639014401
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='10641', job_status='RUN', time_executed='2021-09-08 15:08:06.455922', time_epoch_executed='1631138886.46' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10641/ft1_4FGL_J1350.8+3033_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10641/ft1_4FGL_J1350.8+3033_daily_bin1541.fits outfile=/scratch/kocevski/10641/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1541.fits ra=207.715 dec=30.5588 rad=12.0 tmin=638755201.0 tmax=639014401.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.43
user 5.08
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.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/10641/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1541.fits evtable="EVENTS" outfile="/scratch/kocevski/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits" evtable="EVENTS" scfile=/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits sctable="SC_DATA" outfile=/scratch/kocevski/10641/ltcube_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.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/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits
.....................!
real 15.10
user 14.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/10641/ltcube_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.fits outfile=/scratch/kocevski/10641/expmap_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.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/10641/ltcube_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.fits
.....................!
real 193.24
user 187.20
sys 5.16

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

Setting source of interest to:
4FGL J1350.8+3033 @ 207.715 30.5588

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits scfile=/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits outfile=/scratch/kocevski/10641/cmap_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.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=207.715 yref=30.5588 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits scfile=/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits outfile=/scratch/kocevski/10641/cmap_HighResolution_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.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=207.715 yref=30.5588 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/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10641/Model_4FGL_J1350.8+3033_daily_bin1541.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/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits.....................!
real 44.81
user 42.66
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits', '/scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits', expMap='/scratch/kocevski/10641/expmap_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.fits', expCube='/scratch/kocevski/10641/ltcube_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10641/Model_4FGL_J1350.8+3033_daily_bin1541.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1350.8+3033'

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10641/ft1_filtered_4FGL_J1350.8+3033_daily_bin1541.fits
Spacecraft file(s): /scratch/kocevski/10641/ft2_4FGL_J1350.8+3033_daily_bin1541.fits
Exposure map: /scratch/kocevski/10641/expmap_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.fits
Exposure cube: /scratch/kocevski/10641/ltcube_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10641/Model_4FGL_J1350.8+3033_daily_bin1541.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) = 5299.08455604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    62.951       1.0000         .10000E-03   10000.    
     5 'norm      '    13.046       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0880       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    157.54       1.0000         .10000E-03   10000.    
    12 'norm      '    13.247       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.772       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .87692E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.210       1.0000         .10000E-03   10000.    
    24 'norm      '    5.2047       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3495       1.0000         .10000E-03   10000.    
    26 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63175       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5299.055     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3705 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85648        6.5839       -.29849E-05   -.22280E-03
   2  Prefactor     18.229        38.878        .76343E-05    .22769E-03
   3  Prefactor     .10000E-03    17.005       -.66249E-06** at limit **
   4  norm          62.960        13.170        .16979E-07    .31020E-03
   5  norm          13.046        4.6376        .12965E-06    .52321E-03
   6  norm          .10000E-03    7.8721       -.19556E-06** at limit **
   7  norm          11.793        11.727        .12747E-07   -.58479E-06
   8  Prefactor     2.0865        5.1954       -.49140E-06   -.37082E-04
   9  Prefactor     .10000E-03    5.4760       -.38008E-06** at limit **
  10  norm          .10000E-03    2.3522       -.12885E-06** at limit **
  11  Prefactor     157.48        82.699        .12465E-05    .13319E-04
  12  norm          13.242        8.7453        .98953E-06    .32793E-03
  13  Prefactor     .10000E-03    3.9511       -.11817E-06** at limit **
  14  Prefactor     .10000E-03    12.001       -.32951E-06** at limit **
  15  Prefactor     75.919        75.854       -.10985E-05   -.12342E-03
  16  Prefactor     .10000E-03    1.6358       -.25806E-06** at limit **
  17  Prefactor     .10000E-03    7.5490       -.31169E-06** at limit **
  18  norm          .10089E-03    26.541        .65933E-05** at limit **
  19  Prefactor     .10000E-03    7.1022       -.19338E-07** at limit **
  20  norm          .10000E-03    1.4153       -.54955E-07** at limit **
  21  Prefactor     .10000E-03    11.365       -.19420E-06** at limit **
  22  Prefactor     .10000E-03    8.9966       -.11489E-06** at limit **
  23  Prefactor     14.209        4.8972        .14781E-06   -.48452E-04
  24  norm          5.2068        13.700        .30307E-06   -.23169E-04
  25  norm          2.3493        1.8624       -.61789E-08    .49051E-05
  26  norm          .10000E-03    4.7770       -.13711E-06** at limit **
  27  Prefactor     .10000E-03    18.939       -.10424E-06** at limit **
  28  Normalizat    .63188        .18582       -.41282E-05   -.39197E-03
  29  Prefactor     1.1715        .20119        .20609E-05   -.49642E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.85648
  Prefactor  = 18.2294
  Prefactor  = 0.0001
  norm       = 62.9602
  norm       = 13.0458
  norm       = 0.0001
  norm       = 11.7931
  Prefactor  = 2.08652
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 157.48
  norm       = 13.2421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.9187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2085
  norm       = 5.20679
  norm       = 2.34928
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.631876
  Prefactor  = 1.17154
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.055     FROM HESSE     STATUS=OK           547 CALLS     4252 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85648        6.4886        .31150E-03   -1.5523    
   2  Prefactor     18.229        39.244        .93708E-04   -1.4854    
   3  Prefactor     .10000E-03    17.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          62.960        13.050        .50576E-04   -1.4119    
   5  norm          13.046        4.6009        .86148E-04   -1.4985    
   6  norm          .10000E-03    7.9236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.793        11.729        .11664E-03   -1.5021    
   8  Prefactor     2.0865        5.0525        .20854E-03   -1.5419    
   9  Prefactor     .10000E-03    5.4815        .16623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3594        .10897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     157.48        81.494        .16062E-03   -1.3192    
  12  norm          13.242        8.7395        .55027E-03   -1.4980    
  13  Prefactor     .10000E-03    3.9536        .14130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     75.919        75.576        .23064E-03   -1.3963    
  16  Prefactor     .10000E-03    2.8289        .17958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10089E-03    85.334        .54744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4198        .84538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.0194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.209        4.8994        .90197E-04   -1.4954    
  24  norm          5.2068        13.676        .17620E-03   -1.5252    
  25  norm          2.3493        1.8668        .86053E-04   -1.5401    
  26  norm          .10000E-03    4.7903        .15534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .63188        .21002        .27750E-03   -1.0665    
  29  Prefactor     1.1715        .23329        .24147E-03   -.87212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11852e-08
Minuit parameter uncertainties:
  1  4.71524
  2  39.2993
  3  8.42924e-05
  4  13.0501
  5  4.60098
  6  3.45452e-05
  7  11.7318
  8  5.0535
  9  1.81134e-05
  10  8.79482e-06
  11  81.552
  12  8.74035
  13  2.4538e-06
  14  9.10954e-06
  15  75.6721
  16  4.13425e-05
  17  1.39224e-05
  18  0.017428
  19  3.00228e-06
  20  6.03827e-07
  21  5.16353e-06
  22  5.06163e-06
  23  4.89949
  24  13.6845
  25  1.86689
  26  2.44662e-06
  27  3.39426e-06
  28  0.210285
  29  0.233497
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  4.134e-05  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.172e+00  2.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  6.319e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10641/likelihoodResults_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.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) = 5299.05660097
delta logL = -0.00168249278886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5299.05492198
delta logL = -3.49587480741e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12425E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3831       1.0000          .0000       10.000    
     3 'Normalizat'    .63197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5299.055     FROM MIGRAD    STATUS=FAILED        97 CALLS      266 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10385E-03    34.627        .18513E-02** at limit **
   2  Index         2.2675        5.0873        .50000        .59487E-04
   3  Normalizat    .63188        .13629E-01    .27751E-03    .97502E-04
   4  Prefactor     1.1715        .15821E-01    .24147E-03    .98617E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5299.055     FROM SIMPLEX   STATUS=PROGRESS     123 CALLS      389 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    34.627        .26362E-03** at limit **
   2  Index         2.2666        5.0873        .32186E-03    .59487E-04
   3  Normalizat    .63187        .13629E-01    .44540E-05    .97502E-04
   4  Prefactor     1.1715        .15821E-01    .38467E-05    .98617E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5299.055     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      441 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.301        .37027E-02** at limit **
   2  Index         2.0672        7.6114        .50000       -.49135E-07
   3  Normalizat    .63188        .11333E-01    .11100E-04    .24744E-03
   4  Prefactor     1.1715        .13156E-01    .48294E-04    .28432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.06724
  Normalizat = 0.631877
  Prefactor  = 1.17154
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.055     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      470 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    125.90        .74054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0672        5.9817        .50000       -.62679    
   3  Normalizat    .63188        .25460E-01    .22201E-05   -1.0665    
   4  Prefactor     1.1715        .29553E-01    .96588E-05   -.87212    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0495e-08
Minuit parameter uncertainties:
  1  0.000727947
  2  359.214
  3  0.025461
  4  0.0295537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10641': 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) = 5299.05491432
delta logL = 4.15749218519e-06

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  7.279e-04  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.067e+00  3.592e+02  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.172e+00  2.955e-02  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  6.319e-01  2.546e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.715 30.559

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/10641/cmap_HighResolution_638755201_639014401_4FGL_J1350.8+3033_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-08 15:21:38.144308', job_id='10641', GAL2='1.17', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1631139698.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1541' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 10641: <4FGL_J1350.8+3033_daily_bin1541> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1541> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 15:05:59 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:07:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:07:51 2021
Terminated at Wed Sep  8 15:21:38 2021
Results reported at Wed Sep  8 15:21:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1541 207.715 30.5588 638755201 639014401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1350.8+3033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            939 sec.

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

