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


Performing analysis on: 4FGL_J0945.7+5759_daily_bin1282
RA = 146.432, Dec = 57.9871
tmin = 571622401, tmax = 571881601
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='492894', job_status='RUN', time_executed='2021-09-01 01:42:47.092961', time_epoch_executed='1630485767.09' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492894/ft1_4FGL_J0945.7+5759_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492894/ft1_4FGL_J0945.7+5759_daily_bin1282.fits outfile=/scratch/kocevski/492894/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1282.fits ra=146.432 dec=57.9871 rad=12.0 tmin=571622401.0 tmax=571881601.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.42
user 2.53
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.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/492894/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.73
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/492894/ltcube_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.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/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits
.....................!
real 14.11
user 11.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/492894/ltcube_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.fits outfile=/scratch/kocevski/492894/expmap_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.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/492894/ltcube_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.fits
.....................!
real 196.55
user 185.27
sys 3.99

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

Setting source of interest to:
4FGL J0945.7+5759 @ 146.432 57.9871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits scfile=/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits outfile=/scratch/kocevski/492894/cmap_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.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=146.432 yref=57.9871 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.68
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits scfile=/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits outfile=/scratch/kocevski/492894/cmap_HighResolution_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.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=146.432 yref=57.9871 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492894/Model_4FGL_J0945.7+5759_daily_bin1282.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/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits.....................!
real 33.94
user 32.05
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits', '/scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits', expMap='/scratch/kocevski/492894/expmap_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.fits', expCube='/scratch/kocevski/492894/ltcube_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/492894/Model_4FGL_J0945.7+5759_daily_bin1282.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.7+5759'

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.030e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/492894/ft1_filtered_4FGL_J0945.7+5759_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/492894/ft2_4FGL_J0945.7+5759_daily_bin1282.fits
Exposure map: /scratch/kocevski/492894/expmap_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.fits
Exposure cube: /scratch/kocevski/492894/ltcube_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/492894/Model_4FGL_J0945.7+5759_daily_bin1282.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) = 2029.71575378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14347E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .98785E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32614E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .20624E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10689E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1912       1.0000         .10000E-03   10000.    
    21 'norm      '    33.567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5132       1.0000         .10000E-03   10000.    
    24 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.577       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.7535       1.0000         .10000E-03   10000.    
    29 'norm      '    8.2148       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.8083       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .12030       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.6125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2029.682     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     6203 TOTAL
                     EDM=   .55E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        54.847         .0000    ** at limit **
   2  Prefactor    10000.0        70.569         .0000    ** at limit **
   3  Prefactor    10000.0        17.627         .0000       -.20412E-02
   4  Prefactor     .10042E-03    9.6883         .0000    ** at limit **
   5  norm         10000.0        36.336         .0000    ** at limit **
   6  Prefactor     .10477E-03    70.664         .0000    ** at limit **
   7  Prefactor     .11449E-03    4.3456         .0000    ** at limit **
   8  Prefactor     .18797E-02    33.572         .0000    ** at limit **
   9  Prefactor     .31167E-01    .43211         .0000        .29580E-03
  10  norm          .10000E-03    6.9240         .0000    ** at limit **
  11  Prefactor     .16346E-03    36.289         .0000    ** at limit **
  12  Prefactor     .10004E-03    9.7185         .0000    ** at limit **
  13  Prefactor     .10030E-03    11.652         .0000    ** at limit **
  14  Prefactor     .14316E-03    27.787         .0000    ** at limit **
  15  Prefactor     .10078E-03    10.494         .0000    ** at limit **
  16  Prefactor     .10009E-03    10.477         .0000    ** at limit **
  17  Prefactor     .10011E-03    15.770         .0000    ** at limit **
  18  norm          .14848E-03    27.847         .0000    ** at limit **
  19  Prefactor     .10066E-03    29.635         .0000    ** at limit **
  20  norm          1.1913        1.1124         .0000       -.22270E-02
  21  norm          33.570        1.0715         .0000       -.53331E-03
  22  Prefactor     .10052E-03    11.806         .0000    ** at limit **
  23  norm          1.5130        1.1199         .0000       -.52658E-03
  24  norm          .10001E-03    5.6363         .0000    ** at limit **
  25  Prefactor     .10524E-03    16.958         .0000    ** at limit **
  26  norm          15.572        1.0401         .0000       -.20758E-03
  27  Prefactor     .10034E-03    25.263         .0000    ** at limit **
  28  norm          9.7532        5.4658         .0000        .96245E-02
  29  norm          8.2153        4.9981         .0000        .15277E-02
  30  Prefactor     .26702E-03    67.068         .0000    ** at limit **
  31  Prefactor     .15807E-02    37.393         .0000    ** at limit **
  32  norm          2.8112        3.9754         .0000        .16262E-02
  33  Prefactor     .10135E-03    10.818         .0000    ** at limit **
  34  Normalizat    .12031        .36271         .0000        .18095E-03
  35  Prefactor     1.6124        .37154         .0000        .63426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100423
  norm       = 10000
  Prefactor  = 0.000104766
  Prefactor  = 0.00011449
  Prefactor  = 0.00187973
  Prefactor  = 0.0311671
  norm       = 0.0001
  Prefactor  = 0.000163457
  Prefactor  = 0.000100036
  Prefactor  = 0.000100298
  Prefactor  = 0.000143161
  Prefactor  = 0.000100778
  Prefactor  = 0.000100091
  Prefactor  = 0.00010011
  norm       = 0.000148483
  Prefactor  = 0.000100661
  norm       = 1.19131
  norm       = 33.57
  Prefactor  = 0.00010052
  norm       = 1.51296
  norm       = 0.000100008
  Prefactor  = 0.000105238
  norm       = 15.572
  Prefactor  = 0.000100339
  norm       = 9.75321
  norm       = 8.21533
  Prefactor  = 0.000267016
  Prefactor  = 0.00158065
  norm       = 2.81117
  Prefactor  = 0.000101352
  Normalizat = 0.120309
  Prefactor  = 1.61236
 **********
 **   18 **HESSE 
 **********

 FCN=   2029.682     FROM HESSE     STATUS=OK           834 CALLS     7037 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        587.03        .90712E-02    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        292.53        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        1381.7        .90712E-02    1.5696    
   4  Prefactor     .10042E-03    30.229        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        846.77        .90712E-02    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10477E-03    395.77        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11449E-03    20.611        .10385       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18797E-02    898.92        .90712E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31167E-01    9883.0        .91849E-02   -1.5673    
  10  norm          .10000E-03    2.2215        .34635E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16346E-03    89.821        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    28.593        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10030E-03    12.624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14316E-03    127.95        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10078E-03    12.989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10009E-03    17.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-03    19.493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .14848E-03    126.78        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10066E-03    107.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1913        1.1186        .10116E-01   -1.5490    
  21  norm          33.570        137.55        .17291E-02   -1.4549    
  22  Prefactor     .10052E-03    14.993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5130        1.3091        .86903E-03   -1.5462    
  24  norm          .10001E-03    5.6265        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10524E-03    39.000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.572        30.083        .25370E-02   -1.4919    
  27  Prefactor     .10034E-03    45.084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.7532        10.439        .32078E-02   -1.5083    
  29  norm          8.2153        6.2747        .34970E-02   -1.5135    
  30  Prefactor     .26702E-03    264.24        .90712E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .15807E-02    827.54        .90712E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.8112        4.9571        .60685E-02   -1.5373    
  33  Prefactor     .10135E-03    27.792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .12031        7.6956        .18543       -1.3602    
  35  Prefactor     1.6124        1.8131        .54478E-01   -.74440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25277e-05
Minuit parameter uncertainties:
  1  1.0635
  2  0.343179
  3  4.51015
  4  0.00715345
  5  2.33243
  6  0.0874411
  7  0.0345748
  8  2.56921
  9  60.8483
  10  6.37933e-05
  11  0.151221
  12  0.00204329
  13  0.00387712
  14  0.148944
  15  0.0063572
  16  0.00250968
  17  0.00292662
  18  0.157136
  19  0.0169017
  20  1.11865
  21  136.45
  22  0.00558628
  23  1.30916
  24  0.00043307
  25  0.0286043
  26  30.1122
  27  0.00782693
  28  10.4408
  29  6.27524
  30  0.422026
  31  2.24559
  32  4.95782
  33  0.0122632
  34  1.96779
  35  1.896
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.485e-04  1.571e-01  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.612e+00  1.896e+00  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.203e-01  1.968e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.432 57.987
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492894/likelihoodResults_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.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) = 2029.68175834
delta logL = -3.6557567455e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2029.6817214
delta logL = 3.81135123462e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0021       1.0000          .0000       5.0000    
     3 'Normalizat'    .12031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+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=   2029.682     FROM MIGRAD    STATUS=FAILED       114 CALLS      316 TOTAL
                     EDM=   .93E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27568E-03    6361.3        .56603E-02** at limit **
   2  alpha         2.6427        .46518        .50000       -.69681E-05
   3  Normalizat    .12031        .15798        .78552E-02    .23963E-04
   4  Prefactor     1.6124        .23168        .24081E-03    .20949E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2029.675     FROM SIMPLEX   STATUS=PROGRESS     136 CALLS      452 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9249        6361.3        .12813E-02   -1.5985    
   2  alpha         2.6426        .46518        .30769E-05    .57053E-01
   3  Normalizat    .12025        .15798        .75232E-05   -1.3603    
   4  Prefactor     1.6123        .23168        .42119E-05   -.74442    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2029.675     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      551 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8601        58.641        .45283E-03   -.60612E-04
   2  alpha         2.7084        3.8538        .34441E-01    .10054E-04
   3  Normalizat    .11939        .34998        .12568E-04   -.84575E-04
   4  Prefactor     1.6090        .36897        .19265E-05   -.30244E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86005
  alpha      = 2.70844
  Normalizat = 0.119388
  Prefactor  = 1.60901
 **********
 **   18 **HESSE 
 **********

 FCN=   2029.675     FROM HESSE     STATUS=OK            25 CALLS      576 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8601        46.221        .18113E-04   -1.5981    
   2  alpha         2.7084        3.8383        .13776E-02    .83474E-01
   3  Normalizat    .11939        .34616        .25137E-05   -1.3611    
   4  Prefactor     1.6090        .36497        .38530E-06   -.74531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83947e-10
Minuit parameter uncertainties:
  1  18.56
  2  3.72301
  3  0.3529
  4  0.365576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492894': 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) = 2029.67510638
delta logL = 0.00661539545695

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.860e+00  1.856e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  2.708e+00  3.723e+00  0.000e+00  5.000e+00 ( 1.000e+00)
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.609e+00  3.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.194e-01  3.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.432 57.987

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/492894/cmap_HighResolution_571622401_571881601_4FGL_J0945.7+5759_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-04', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-01 01:55:58.194341', job_id='492894', GAL2='1.61', fit_tolerance='1e-08', EG2='0.12', EG='0.12', time_epoch_completed='1630486558.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.61', dlogl='6.62e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1282' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 492894: <4FGL_J0945.7+5759_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin1282> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 01:40:29 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:40:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 01:40:30 2021
Terminated at Wed Sep  1 01:56:00 2021
Results reported at Wed Sep  1 01:56:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin1282 146.432 57.9871 571622401 571881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.7+5759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             262.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

