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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin59
RA = 149.416, Dec = 55.3838
tmin = 254620801, tmax = 254880001
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='594704', job_status='RUN', time_executed='2021-09-01 06:43:45.217626', time_epoch_executed='1630503825.22' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594704

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594704/ft1_4FGL_J0957.6+5523_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594704/ft1_4FGL_J0957.6+5523_daily_bin59.fits outfile=/scratch/kocevski/594704/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin59.fits ra=149.416 dec=55.3838 rad=12.0 tmin=254620801.0 tmax=254880001.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.84
user 1.14
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.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/594704/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.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.64
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/594704/ltcube_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.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/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits
.....................!
real 12.20
user 11.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/594704/ltcube_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.fits outfile=/scratch/kocevski/594704/expmap_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.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/594704/ltcube_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.fits
.....................!
real 190.48
user 184.75
sys 4.45

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

Setting source of interest to:
4FGL J0957.6+5523 @ 149.416 55.3838

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits scfile=/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits outfile=/scratch/kocevski/594704/cmap_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.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=149.416 yref=55.3838 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.51
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits scfile=/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits outfile=/scratch/kocevski/594704/cmap_HighResolution_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.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=149.416 yref=55.3838 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.53
user 0.37
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594704/Model_4FGL_J0957.6+5523_daily_bin59.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/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits.....................!
real 42.88
user 41.46
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits', '/scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits', expMap='/scratch/kocevski/594704/expmap_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.fits', expCube='/scratch/kocevski/594704/ltcube_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/594704/Model_4FGL_J0957.6+5523_daily_bin59.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.6+5523'

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/594704/ft1_filtered_4FGL_J0957.6+5523_daily_bin59.fits
Spacecraft file(s): /scratch/kocevski/594704/ft2_4FGL_J0957.6+5523_daily_bin59.fits
Exposure map: /scratch/kocevski/594704/expmap_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.fits
Exposure cube: /scratch/kocevski/594704/ltcube_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/594704/Model_4FGL_J0957.6+5523_daily_bin59.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) = 4066.02724936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.580       1.0000         .10000E-03   10000.    
     7 'norm      '    .10467E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.709       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47999E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8991       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.846       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3093       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.313       1.0000         .10000E-03   10000.    
    23 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.3149       1.0000         .10000E-03   10000.    
    27 'Prefactor '    53.235       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.4104       1.0000         .10000E-03   10000.    
    30 'Prefactor '    75.495       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .85302       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4065.950     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     4720 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5958        .17995E-06** at limit **
   2  norm          .10000E-03    3.4217        .13039E-06** at limit **
   3  Prefactor     .10000E-03    8.0750        .13520E-06** at limit **
   4  Prefactor     .10000E-03    8.4977        .34619E-06** at limit **
   5  Prefactor     .10000E-03    8.7936        .62409E-07** at limit **
   6  Prefactor     70.603        75.904        .58247E-07   -.32759E-04
   7  norm          .10000E-03    .60460       -.44165E-07** at limit **
   8  Prefactor     16.710        6.6870        .12293E-06   -.98443E-04
   9  Prefactor     .10078E-03    9.5404        .22671E-05** at limit **
  10  Prefactor     .10000E-03    5.2595       -.20873E-05** at limit **
  11  Prefactor     15.873        17.552       -.58739E-06   -.19736E-03
  12  Prefactor     .10000E-03    12.434        .44221E-06** at limit **
  13  Prefactor     6.8951        10.488       -.36236E-06   -.21492E-03
  14  Prefactor     .10000E-03    5.0389        .93238E-07** at limit **
  15  norm          .10000E-03    4.1374        .89550E-07** at limit **
  16  Prefactor     19.857        34.016        .29803E-06   -.50634E-04
  17  norm          1.3094        .66297       -.24530E-07   -.62105E-03
  18  norm          .10000E-03    5.8871        .13185E-06** at limit **
  19  Prefactor     .10000E-03    5.5704        .23044E-06** at limit **
  20  norm          .10000E-03    .29580        .18070E-06** at limit **
  21  norm          .10000E-03    1.3219        .93842E-07** at limit **
  22  Prefactor     38.240        40.176        .86734E-06   -.32846E-04
  23  norm          .10000E-03    17.155        .32071E-06** at limit **
  24  Prefactor     .10059E-03    46.327        .11570E-04** at limit **
  25  norm          .10000E-03    .95462        .95618E-07** at limit **
  26  norm          1.3149        1.1965        .19759E-07   -.17709E-03
  27  Prefactor     53.607        138.01        .15526E-06   -.56548E-04
  28  Prefactor     .10000E-03    82.919        .61067E-06** at limit **
  29  norm          1.4101        1.6677        .47181E-07   -.12378E-03
  30  Prefactor     75.450        70.126        .13819E-05    .90390E-05
  31  Prefactor     .10000E-03    23.666        .31037E-06** at limit **
  32  Normalizat    .85268        .19188       -.51424E-05   -.10176E-02
  33  Prefactor     .94162        .20971        .28462E-05   -.27324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.6031
  norm       = 0.0001
  Prefactor  = 16.71
  Prefactor  = 0.000100776
  Prefactor  = 0.000100001
  Prefactor  = 15.8728
  Prefactor  = 0.0001
  Prefactor  = 6.89505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8571
  norm       = 1.30942
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.2403
  norm       = 0.0001
  Prefactor  = 0.000100587
  norm       = 0.0001
  norm       = 1.3149
  Prefactor  = 53.6066
  Prefactor  = 0.0001
  norm       = 1.41015
  Prefactor  = 75.4501
  Prefactor  = 0.0001
  Normalizat = 0.852677
  Prefactor  = 0.941616
 **********
 **   18 **HESSE 
 **********

 FCN=   4065.950     FROM HESSE     STATUS=OK           693 CALLS     5413 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6158        .14737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.4416        .11522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0889        .17702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     70.603        75.879        .47783E-04   -1.4025    
   7  norm          .10000E-03    4.3612        .93956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.710        6.6942        .97983E-04   -1.4890    
   9  Prefactor     .10078E-03    9.5354        .60451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3614        .24385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.873        17.562        .10062E-03   -1.4911    
  12  Prefactor     .10000E-03    12.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8951        10.354        .15274E-03   -1.5183    
  14  Prefactor     .10000E-03    5.0812        .13970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.1385        .12666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.857        33.999        .89908E-04   -1.4816    
  17  norm          1.3094        .65946        .34997E-04   -1.5479    
  18  norm          .10000E-03    5.8989        .15114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6754        .14704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .31062        .67950E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3427        .71635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.240        40.210        .64753E-04   -1.4470    
  23  norm          .10000E-03    17.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10059E-03    92.286        .44818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .96154        .60692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.3149        1.2112        .64729E-04   -1.5479    
  27  Prefactor     53.607        137.90        .27486E-03   -1.4242    
  28  Prefactor     .10000E-03    82.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.4101        1.6542        .86965E-04   -1.5470    
  30  Prefactor     75.450        70.380        .46212E-04   -1.3969    
  31  Prefactor     .10000E-03    23.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .85268        .21618        .23486E-03   -.98144    
  33  Prefactor     .94162        .22833        .25368E-03   -.94702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49763e-09
Minuit parameter uncertainties:
  1  1.13606e-05
  2  9.08295e-06
  3  3.97562e-06
  4  2.64132e-05
  5  5.84964e-06
  6  75.9829
  7  5.64483e-05
  8  6.69449
  9  0.00544127
  10  0.00017252
  11  17.5679
  12  9.46688e-05
  13  10.357
  14  3.60912e-06
  15  1.31454e-05
  16  34.0317
  17  0.659461
  18  4.42302e-06
  19  3.01231e-06
  20  2.56791e-06
  21  5.93735e-06
  22  40.238
  23  2.90643e-05
  24  0.0147448
  25  4.62385e-06
  26  1.21127
  27  138.736
  28  0.000194744
  29  1.65429
  30  70.4575
  31  4.64536e-05
  32  0.216397
  33  0.228566
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.309e+00  6.595e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  9.416e-01  2.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  8.527e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.46
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 4.41e-05 +/- 2.22e-05

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) = 4065.47359061
delta logL = 0.47682700523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4065.44816884
delta logL = 0.502248771976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1640       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4311       1.0000          .0000       5.0000    
     3 'Normalizat'    .80579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97214       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+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=   4065.448     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      261 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1640        .65268        .29229E-04    .33741E-03
   2  alpha         2.4311        .55410        .93664E-02    .12624E-03
   3  Normalizat    .80579        .20586        .24050E-03    .62634E-05
   4  Prefactor     .97213        .22782        .25000E-03    .27648E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16404
  alpha      = 2.43106
  Normalizat = 0.805789
  Prefactor  = 0.97213
 **********
 **   18 **HESSE 
 **********

 FCN=   4065.448     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1640        .63814        .11692E-05   -1.5492    
   2  alpha         2.4311        .54145        .18733E-02   -.27580E-01
   3  Normalizat    .80579        .20578        .96200E-05   -.99854    
   4  Prefactor     .97213        .22785        .10000E-04   -.93664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.554e-11
Minuit parameter uncertainties:
  1  0.638143
  2  0.545773
  3  0.205977
  4  0.228077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594704': 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) = 4065.44816884
delta logL = 0.502248776592

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.164e+00  6.381e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  2.431e+00  5.458e-01  0.000e+00  5.000e+00 ( 1.000e+00)
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  9.721e-01  2.281e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  8.058e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.51
Ra Dec: 149.416 55.384
Photon Index (Free Index): 2.43 +/- 0.55
Photon Flux (Free Index): 1.06e-07 +/- 6.31e-08
Energy Flux (Free Index): 3.34e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/594704/cmap_HighResolution_254620801_254880001_4FGL_J0957.6+5523_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='3.34e-05', photon_flux_error='3.24e-08', dlogl='5.02e-01', energy_flux='4.41e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-01 06:56:29.189091', photon_index_error2='0.55', photon_index2='2.43', ts='12.46', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.85', time_epoch_completed='1630504589.19', return_code='0', job_id='594704', GAL2='0.97', EG2='0.81', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='6.31e-08', ts2='13.51', photon_index='1.90' WHERE bin_id='59' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 594704: <4FGL_J0957.6+5523_daily_bin59> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin59> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 06:40:54 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:40:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 06:40:56 2021
Terminated at Wed Sep  1 06:56:29 2021
Results reported at Wed Sep  1 06:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin59 149.416 55.3838 254620801 254880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.6+5523 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

