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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin1202
RA = 149.416, Dec = 55.3838
tmin = 550886401, tmax = 551145601
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='601216', job_status='RUN', time_executed='2021-09-01 07:04:53.798095', time_epoch_executed='1630505093.8' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601216/ft1_4FGL_J0957.6+5523_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601216/ft1_4FGL_J0957.6+5523_daily_bin1202.fits outfile=/scratch/kocevski/601216/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1202.fits ra=149.416 dec=55.3838 rad=12.0 tmin=550886401.0 tmax=551145601.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 4.02
user 3.58
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.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/601216/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/601216/ft1_filtered_4FGL_J0957.6+5523_daily_bin1202.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.04
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601216/ft1_filtered_4FGL_J0957.6+5523_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/601216/ltcube_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.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/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits
.....................!
real 12.39
user 11.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601216/ft1_filtered_4FGL_J0957.6+5523_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/601216/ltcube_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.fits outfile=/scratch/kocevski/601216/expmap_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.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/601216/ltcube_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.fits
.....................!
real 195.18
user 190.68
sys 4.01

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/601216/ft1_filtered_4FGL_J0957.6+5523_daily_bin1202.fits scfile=/scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits outfile=/scratch/kocevski/601216/cmap_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601216/ft1_filtered_4FGL_J0957.6+5523_daily_bin1202.fits scfile=/scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits outfile=/scratch/kocevski/601216/cmap_HighResolution_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.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.54
user 0.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601216/ft1_filtered_4FGL_J0957.6+5523_daily_bin1202.fits', '/scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits', expMap='/scratch/kocevski/601216/expmap_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.fits', expCube='/scratch/kocevski/601216/ltcube_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601216/Model_4FGL_J0957.6+5523_daily_bin1202.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/601216/ft1_filtered_4FGL_J0957.6+5523_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/601216/ft2_4FGL_J0957.6+5523_daily_bin1202.fits
Exposure map: /scratch/kocevski/601216/expmap_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.fits
Exposure cube: /scratch/kocevski/601216/ltcube_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601216/Model_4FGL_J0957.6+5523_daily_bin1202.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) = 1850.50037598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.811       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3743       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12874E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8012       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2064       1.0000         .10000E-03   10000.    
    21 'norm      '    5.3007       1.0000         .10000E-03   10000.    
    22 'Prefactor '    101.39       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.263       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9514       1.0000         .10000E-03   10000.    
    26 'norm      '    5.6922       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .90645       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    59.040       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .70394       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98715       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=   1850.485     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4566 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.133        .49811E-05** at limit **
   2  norm          2.4286        19.473        .29934E-05   -.48062E-04
   3  Prefactor     .10000E-03    15.041        .26144E-06** at limit **
   4  Prefactor     42.804        23.670        .41175E-07   -.33915E-05
   5  Prefactor     .10000E-03    36.528       -.23386E-05** at limit **
   6  Prefactor     .10000E-03    43.651        .10515E-05** at limit **
   7  norm          2.3027        1.8360        .29575E-07   -.17827E-05
   8  Prefactor     1.3709        12.342        .12583E-05    .73040E-05
   9  Prefactor     .10000E-03    8.4850       -.83587E-08** at limit **
  10  Prefactor     9.0741        8.1330        .59390E-07    .29954E-05
  11  Prefactor     .10000E-03    15.463       -.60066E-06** at limit **
  12  Prefactor     .10000E-03    16.706        .98299E-07** at limit **
  13  Prefactor     10.137        17.195        .59253E-07    .64089E-06
  14  Prefactor     .10000E-03    9.2036       -.31814E-07** at limit **
  15  norm          .10000E-03    25.077        .50717E-06** at limit **
  16  Prefactor     .10000E-03    77.821       -.19948E-05** at limit **
  17  norm          .10000E-03    .32655       -.46002E-07** at limit **
  18  norm          .10000E-03    75.145       -.15187E-05** at limit **
  19  Prefactor     2.8037        8.1424       -.54048E-07    .18582E-05
  20  norm          1.2058        1.3272        .56305E-07    .47242E-05
  21  norm          5.3010        4.5440        .29358E-07    .49891E-05
  22  Prefactor     101.36        95.359        .21465E-05    .98034E-05
  23  norm          .10000E-03    15.059        .19906E-06** at limit **
  24  Prefactor     18.283        38.838       -.88263E-06   -.26473E-05
  25  norm          3.9518        3.9532        .71616E-07    .67702E-05
  26  norm          5.6928        4.7051       -.16021E-07    .81879E-06
  27  Prefactor     .10000E-03    57.871        .33350E-05** at limit **
  28  Prefactor     .10000E-03    209.22        .96319E-05** at limit **
  29  norm          .90781        5.0158        .11135E-06   -.91311E-05
  30  Prefactor     .10000E-03    97.865       -.66295E-05** at limit **
  31  Prefactor     59.038        46.422        .22982E-06    .32229E-05
  32  Normalizat    .70307        .31937       -.13789E-06   -.18924E-04
  33  Prefactor     .98822        .31959       -.11289E-05   -.22009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.42865
  Prefactor  = 0.0001
  Prefactor  = 42.8043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30272
  Prefactor  = 1.37088
  Prefactor  = 0.0001
  Prefactor  = 9.07411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.80372
  norm       = 1.20577
  norm       = 5.30097
  Prefactor  = 101.361
  norm       = 0.0001
  Prefactor  = 18.2826
  norm       = 3.95177
  norm       = 5.69276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.907811
  Prefactor  = 0.0001
  Prefactor  = 59.0375
  Normalizat = 0.703068
  Prefactor  = 0.988216
 **********
 **   18 **HESSE 
 **********

 FCN=   1850.485     FROM HESSE     STATUS=OK           691 CALLS     5257 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4286        19.694        .13125E-02   -1.5396    
   3  Prefactor     .10000E-03    15.058        .16296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.804        23.637        .61269E-04   -1.4399    
   5  Prefactor     .10000E-03    36.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3027        1.8283        .47750E-04   -1.5404    
   8  Prefactor     1.3709        12.458        .27667E-03   -1.5474    
   9  Prefactor     .10000E-03    8.4920        .12239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0741        8.1598        .10943E-03   -1.5105    
  11  Prefactor     .10000E-03    15.474        .16527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.709        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.137        17.156        .12591E-03   -1.5071    
  14  Prefactor     .10000E-03    9.2674        .12731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    25.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    77.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .32872        .23985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    76.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8037        8.1408        .19787E-03   -1.5373    
  20  norm          1.2058        1.3060        .49231E-04   -1.5488    
  21  norm          5.3010        4.5420        .82384E-04   -1.5247    
  22  Prefactor     101.36        96.200        .39928E-04   -1.3691    
  23  norm          .10000E-03    15.062        .16309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.283        38.902        .93720E-04   -1.4853    
  25  norm          3.9518        3.9449        .78997E-04   -1.5310    
  26  norm          5.6928        4.6966        .79052E-04   -1.5231    
  27  Prefactor     .10000E-03    57.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    209.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .90781        4.8723        .17911E-03   -1.5517    
  30  Prefactor     .10000E-03    98.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     59.038        46.105        .52214E-04   -1.4170    
  32  Normalizat    .70307        .36594        .26982E-03   -1.0377    
  33  Prefactor     .98822        .36625        .25804E-03   -.93123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11884e-11
Minuit parameter uncertainties:
  1  7.62399e-05
  2  13.8379
  3  1.4684e-07
  4  23.6419
  5  5.25274e-05
  6  1.55734e-05
  7  1.8283
  8  8.26707
  9  2.17675e-06
  10  8.16079
  11  9.49964e-06
  12  2.42513e-06
  13  17.1644
  14  4.40432e-06
  15  9.39685e-06
  16  6.77146e-05
  17  7.30738e-07
  18  1.04654e-05
  19  8.14401
  20  1.30608
  21  4.54232
  22  96.3485
  23  3.19634e-06
  24  38.9565
  25  3.94514
  26  4.69693
  27  7.19314e-05
  28  0.000395625
  29  4.20653
  30  0.00017809
  31  46.1324
  32  0.367221
  33  0.367176
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.000e-04  7.307e-07  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.882e-01  3.672e-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:  7.031e-01  3.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.416 55.384
Photon Flux Upper Limit: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601216/likelihoodResults_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1850.4853294
delta logL = -2.47915704676e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1850.48530457
delta logL = 3.85978182749e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9059       1.0000          .0000       5.0000    
     3 'Normalizat'    .70299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98833       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=   1850.485     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      230 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .33960        .23994E-03** at limit **
   2  alpha         2.0234        3.2682        .17090       -.40828E-07
   3  Normalizat    .70307        .30713        .26982E-03   -.14555E-03
   4  Prefactor     .98822        .34576        .25804E-03   -.16212E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.02343
  Normalizat = 0.703067
  Prefactor  = 0.988215
 **********
 **   18 **HESSE 
 **********

 FCN=   1850.485     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .33104        .47988E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0234        3.5349        .68361E-02   -.19180    
   3  Normalizat    .70307        .30731        .53964E-04   -1.0377    
   4  Prefactor     .98822        .34596        .51607E-04   -.93123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04993e-10
Minuit parameter uncertainties:
  1  8.77057e-07
  2  86.0347
  3  0.308065
  4  0.346739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601216': 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) = 1850.48530355
delta logL = 1.06344464257e-06

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.000e-04  8.771e-07  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  2.023e+00  8.603e+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.882e-01  3.467e-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:  7.031e-01  3.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.416 55.384

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/601216/cmap_HighResolution_550886401_551145601_4FGL_J0957.6+5523_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-05', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-09-01 07:14:44.563295', job_id='601216', GAL2='0.99', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630505684.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1202' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:14:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 601216: <4FGL_J0957.6+5523_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin1202> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 07:00:33 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 07:00:34 2021
Terminated at Wed Sep  1 07:14:45 2021
Results reported at Wed Sep  1 07:14:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin1202 149.416 55.3838 550886401 551145601 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 :                                   584.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

