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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1454
RA = 149.471, Dec = 34.3975
tmin = 616204801, tmax = 616464001
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='613196', job_status='RUN', time_executed='2021-09-01 07:38:05.294991', time_epoch_executed='1630507085.3' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613196/ft1_4FGL_J0957.8+3423_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613196/ft1_4FGL_J0957.8+3423_daily_bin1454.fits outfile=/scratch/kocevski/613196/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1454.fits ra=149.471 dec=34.3975 rad=12.0 tmin=616204801.0 tmax=616464001.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.48
user 3.83
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.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/613196/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1454.fits evtable="EVENTS" outfile="/scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.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.39
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/613196/ltcube_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.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/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits
.....................!
real 12.76
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/613196/ltcube_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.fits outfile=/scratch/kocevski/613196/expmap_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.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/613196/ltcube_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.fits
.....................!
real 192.46
user 185.32
sys 4.86

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

Setting source of interest to:
4FGL J0957.8+3423 @ 149.471 34.3975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits scfile=/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits outfile=/scratch/kocevski/613196/cmap_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.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.471 yref=34.3975 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits scfile=/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits outfile=/scratch/kocevski/613196/cmap_HighResolution_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.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.471 yref=34.3975 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/613196/Model_4FGL_J0957.8+3423_daily_bin1454.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/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits.....................!
real 36.86
user 35.51
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits', '/scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits', expMap='/scratch/kocevski/613196/expmap_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.fits', expCube='/scratch/kocevski/613196/ltcube_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/613196/Model_4FGL_J0957.8+3423_daily_bin1454.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.8+3423'

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/613196/ft1_filtered_4FGL_J0957.8+3423_daily_bin1454.fits
Spacecraft file(s): /scratch/kocevski/613196/ft2_4FGL_J0957.8+3423_daily_bin1454.fits
Exposure map: /scratch/kocevski/613196/expmap_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.fits
Exposure cube: /scratch/kocevski/613196/ltcube_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/613196/Model_4FGL_J0957.8+3423_daily_bin1454.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) = 3773.04617686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45163       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .86986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11748E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.514       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46237       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7312       1.0000         .10000E-03   10000.    
    20 'norm      '    19.935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.915       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3772.997     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3005 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45571        3.9777       -.39965E-06    .22021E-04
   2  Prefactor     .10000E-03    19.565       -.41183E-05** at limit **
   3  Prefactor     .10000E-03    2.9004        .39934E-06** at limit **
   4  norm          .86977        1.9687        .18658E-08   -.82885E-04
   5  Prefactor     .10000E-03    57.410       -.66679E-05** at limit **
   6  norm          .10000E-03    8.3656        .48439E-06** at limit **
   7  Prefactor     5.6332        3.8295       -.53074E-06   -.15272E-03
   8  Prefactor     .10000E-03    6.3360       -.42154E-06** at limit **
   9  norm          1.4950        12.989        .55472E-05   -.76523E-03
  10  Prefactor     11.459        32.226       -.11798E-04   -.88658E-04
  11  Prefactor     .10000E-03    46.296        .12156E-04** at limit **
  12  Prefactor     .10000E-03    13.832        .89036E-06** at limit **
  13  Prefactor     .10000E-03    4.0467       -.39937E-07** at limit **
  14  Prefactor     .10000E-03    3.2526        .36090E-06** at limit **
  15  Prefactor     .10000E-03    .88507        .16154E-06** at limit **
  16  norm          27.513        12.436       -.77446E-07    .29422E-04
  17  Prefactor     .46377        5.5311       -.11325E-05    .24215E-03
  18  Prefactor     .10000E-03    16.227        .29362E-05** at limit **
  19  Prefactor     6.7396        7.1907       -.24811E-06    .30176E-03
  20  norm          19.938        13.779        .25003E-06    .47077E-04
  21  Prefactor     .10000E-03    33.216       -.18719E-05** at limit **
  22  Prefactor     17.904        33.955       -.92187E-05   -.99727E-04
  23  Prefactor     .10000E-03    5.7293       -.33181E-06** at limit **
  24  Prefactor     .10000E-03    4.5625       -.17651E-07** at limit **
  25  Prefactor     .10000E-03    15.981        .31573E-05** at limit **
  26  Prefactor     .10000E-03    12.616       -.26481E-05** at limit **
  27  Normalizat    1.0882        .20933        .24706E-05    .11186E-03
  28  Prefactor     .89753        .23414       -.26814E-06    .15297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.455715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.869769
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.63319
  Prefactor  = 0.0001
  norm       = 1.495
  Prefactor  = 11.4591
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.5132
  Prefactor  = 0.46377
  Prefactor  = 0.0001
  Prefactor  = 6.73963
  norm       = 19.9377
  Prefactor  = 0.0001
  Prefactor  = 17.9037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08822
  Prefactor  = 0.897533
 **********
 **   18 **HESSE 
 **********

 FCN=   3772.997     FROM HESSE     STATUS=OK           519 CALLS     3524 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45571        17.496        .23023E-02   -1.5573    
   2  Prefactor     .10000E-03    19.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9317        .10200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .86977        1.6276        .12536E-02   -1.5521    
   5  Prefactor     .10000E-03    58.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.4324        .17339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6332        3.8301        .93849E-04   -1.5233    
   8  Prefactor     .10000E-03    6.5880        .30124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4950        43.883        .17446E-02   -1.5463    
  10  Prefactor     11.459        32.469        .11828E-03   -1.5031    
  11  Prefactor     .10000E-03    46.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0719        .12064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2557        .10819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .88928        .56420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.513        12.439        .76375E-04   -1.4658    
  17  Prefactor     .46377        8.9982        .21893E-02   -1.5572    
  18  Prefactor     .10000E-03    16.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7396        6.8054        .12903E-03   -1.5189    
  20  norm          19.938        13.798        .89707E-04   -1.4815    
  21  Prefactor     .10000E-03    33.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.904        34.137        .94625E-04   -1.4861    
  23  Prefactor     .10000E-03    5.8382        .14330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5928        .12782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0882        .23772        .21659E-03   -.90131    
  28  Prefactor     .89753        .26817        .27884E-03   -.96227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19055e-08
Minuit parameter uncertainties:
  1  5.64854
  2  0.000149674
  3  8.15218e-06
  4  1.62766
  5  0.000373771
  6  1.05075e-05
  7  3.83028
  8  2.09801e-05
  9  16.212
  10  32.519
  11  0.000523758
  12  1.34282e-05
  13  5.90113e-06
  14  4.21747e-06
  15  1.54724e-06
  16  12.4405
  17  4.08589
  18  8.18601e-05
  19  6.80619
  20  13.8003
  21  0.000105073
  22  34.174
  23  1.71694e-05
  24  6.86218e-05
  25  0.0001188
  26  8.11782e-05
  27  0.237956
  28  0.268568
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.217e-06  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.975e-01  2.686e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.088e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613196/likelihoodResults_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.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) = 3772.99859547
delta logL = -0.00142622150815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3772.99716905
delta logL = 1.97349891096e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1421       1.0000          .0000       10.000    
     3 'Normalizat'    1.0883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89742       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   3772.997     FROM MIGRAD    STATUS=FAILED        84 CALLS      232 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10213E-03    56.447        .11037E-02** at limit **
   2  Index         2.0695        8.0877        .50000        .47416E-04
   3  Normalizat    1.0882        .20329E-01    .21659E-03    .44589E-04
   4  Prefactor     .89753        .24125E-01    .27884E-03   -.46928E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3772.997     FROM SIMPLEX   STATUS=PROGRESS     133 CALLS      365 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10178E-03    56.447        .24923E-03** at limit **
   2  Index         2.0689        8.0877        .20249E-03    .47416E-04
   3  Normalizat    1.0882        .20329E-01    .22651E-05    .44589E-04
   4  Prefactor     .89752        .24125E-01    .53162E-05   -.46928E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3772.997     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      417 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.268        .22075E-02** at limit **
   2  Index         1.5949        8.7993        .50000        .21508E-06
   3  Normalizat    1.0882        .21355E-01    .86637E-05   -.21849E-03
   4  Prefactor     .89753        .25343E-01    .11154E-04   -.85620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.59488
  Normalizat = 1.08822
  Prefactor  = 0.897532
 **********
 **   18 **HESSE 
 **********

 FCN=   3772.997     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    331.47        .44149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5949        6.2481        .50000       -.74916    
   3  Normalizat    1.0882        .48336E-01    .17327E-05   -.90131    
   4  Prefactor     .89753        .57353E-01    .22307E-05   -.96227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.95621e-08
Minuit parameter uncertainties:
  1  0.00197457
  2  941.117
  3  0.0483376
  4  0.0573567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613196': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3772.9971654
delta logL = 3.85272142012e-06

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.975e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.595e+00  9.411e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.975e-01  5.736e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.088e+00  4.834e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.471 34.398

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/613196/cmap_HighResolution_616204801_616464001_4FGL_J0957.8+3423_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-01 07:50:10.331221', job_id='613196', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630507810.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1454' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 613196: <4FGL_J0957.8+3423_daily_bin1454> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1454> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 07:36:04 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:36:06 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:36:06 2021
Terminated at Wed Sep  1 07:50:11 2021
Results reported at Wed Sep  1 07:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1454 149.471 34.3975 616204801 616464001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.8+3423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            847 sec.

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

