/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 2 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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin359
RA = 149.471, Dec = 34.3975
tmin = 332380801, tmax = 332640001
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='604763', job_status='RUN', time_executed='2021-09-01 07:11:52.042788', time_epoch_executed='1630505512.04' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604763/ft1_4FGL_J0957.8+3423_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604763/ft1_4FGL_J0957.8+3423_daily_bin359.fits outfile=/scratch/kocevski/604763/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin359.fits ra=149.471 dec=34.3975 rad=12.0 tmin=332380801.0 tmax=332640001.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 6.63
user 3.04
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604763/ft1_filtered_4FGL_J0957.8+3423_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/604763/ltcube_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.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/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits
.....................!
real 12.44
user 11.45
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604763/ft1_filtered_4FGL_J0957.8+3423_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits sctable="SC_DATA" expcube=/scratch/kocevski/604763/ltcube_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.fits outfile=/scratch/kocevski/604763/expmap_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.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/604763/ltcube_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.fits
.....................!
real 196.42
user 185.52
sys 4.88

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/604763/ft1_filtered_4FGL_J0957.8+3423_daily_bin359.fits scfile=/scratch/kocevski/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits outfile=/scratch/kocevski/604763/cmap_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.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.59
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604763/ft1_filtered_4FGL_J0957.8+3423_daily_bin359.fits scfile=/scratch/kocevski/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits outfile=/scratch/kocevski/604763/cmap_HighResolution_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/604763/ft1_filtered_4FGL_J0957.8+3423_daily_bin359.fits', '/scratch/kocevski/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits', expMap='/scratch/kocevski/604763/expmap_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.fits', expCube='/scratch/kocevski/604763/ltcube_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/604763/Model_4FGL_J0957.8+3423_daily_bin359.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/604763/ft1_filtered_4FGL_J0957.8+3423_daily_bin359.fits
Spacecraft file(s): /scratch/kocevski/604763/ft2_4FGL_J0957.8+3423_daily_bin359.fits
Exposure map: /scratch/kocevski/604763/expmap_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.fits
Exposure cube: /scratch/kocevski/604763/ltcube_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/604763/Model_4FGL_J0957.8+3423_daily_bin359.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) = 5599.58061909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50573       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7866       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30463       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21182       1.0000         .10000E-03   10000.    
     9 'norm      '    .48617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.760       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.882       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55896       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3660       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.709       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.152       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2613       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8814       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.300       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .73188       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3134       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=   5599.574     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3498 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1310        2.8508        .22674E-06   -.11346E-03
   2  Prefactor     .10001E-03    29.346       -.24965E-04** at limit **
   3  Prefactor     .51062        3.0573       -.59334E-06   -.60527E-03
   4  norm          1.7867        1.2953       -.90578E-08    .28753E-03
   5  Prefactor     .10000E-03    24.946        .25372E-04** at limit **
   6  norm          2.3764        7.1108       -.49955E-05   -.68302E-03
   7  Prefactor     .30348        1.8982        .43163E-07   -.82546E-03
   8  Prefactor     .21176        1.8566       -.54002E-06    .61191E-05
   9  norm          .46096        7.1505       -.12300E-05   -.58200E-04
  10  Prefactor     29.761        25.831       -.20060E-06    .66784E-04
  11  Prefactor     .10000E-03    5.6896       -.16736E-05** at limit **
  12  Prefactor     40.882        28.278        .25792E-05   -.19729E-04
  13  Prefactor     .10000E-03    1.5649        .22774E-07** at limit **
  14  Prefactor     .10000E-03    4.7381       -.93924E-06** at limit **
  15  Prefactor     .55851        1.7957       -.97493E-06   -.13471E-02
  16  norm          .10000E-03    3.3695        .19698E-08** at limit **
  17  Prefactor     9.3657        4.4041       -.78962E-07   -.43271E-03
  18  Prefactor     33.706        27.767       -.32180E-05    .89613E-04
  19  Prefactor     .10000E-03    5.3415        .25719E-05** at limit **
  20  norm          10.151        9.8320        .66472E-06   -.43830E-04
  21  Prefactor     22.504        48.415       -.96191E-05    .59579E-04
  22  Prefactor     .10000E-03    13.891       -.19525E-05** at limit **
  23  Prefactor     6.2612        4.5914        .27579E-06    .47562E-05
  24  Prefactor     .10000E-03    2.1472        .51856E-07** at limit **
  25  Prefactor     2.8748        84.378       -.27745E-04    .33177E-04
  26  Prefactor     13.300        19.297       -.73909E-06    .90602E-05
  27  Normalizat    .73204        .17580        .19512E-05    .82479E-04
  28  Prefactor     1.3133        .20391        .77901E-06    .12757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13095
  Prefactor  = 0.000100009
  Prefactor  = 0.510623
  norm       = 1.78671
  Prefactor  = 0.000100005
  norm       = 2.37636
  Prefactor  = 0.303477
  Prefactor  = 0.211759
  norm       = 0.460964
  Prefactor  = 29.7608
  Prefactor  = 0.0001
  Prefactor  = 40.8818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.558512
  norm       = 0.0001
  Prefactor  = 9.36574
  Prefactor  = 33.7062
  Prefactor  = 0.0001
  norm       = 10.1509
  Prefactor  = 22.504
  Prefactor  = 0.0001
  Prefactor  = 6.26117
  Prefactor  = 0.0001
  Prefactor  = 2.87478
  Prefactor  = 13.2999
  Normalizat = 0.732036
  Prefactor  = 1.31326
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.574     FROM HESSE     STATUS=OK           529 CALLS     4027 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1310        2.8512        .11680E-03   -1.5354    
   2  Prefactor     .10001E-03    28.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .51062        4.9278        .22240E-02   -1.5565    
   4  norm          1.7867        1.3019        .70183E-04   -1.5441    
   5  Prefactor     .10000E-03    25.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3764        7.1342        .26527E-03   -1.5400    
   7  Prefactor     .30348        3.0715        .17275E-02   -1.5598    
   8  Prefactor     .21176        14.257        .19067E-02   -1.5616    
   9  norm          .46096        42.102        .38331E-02   -1.5572    
  10  Prefactor     29.761        25.803        .73443E-04   -1.4616    
  11  Prefactor     .10000E-03    5.6909        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.882        28.270        .62693E-04   -1.4428    
  13  Prefactor     .10000E-03    1.5691        .91409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7662        .15904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55851        1.7776        .17201E-03   -1.5559    
  16  norm          .10000E-03    3.3971        .13413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.3657        4.3998        .10088E-03   -1.5096    
  18  Prefactor     33.706        27.773        .69019E-04   -1.4546    
  19  Prefactor     .10000E-03    5.4830        .33503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.151        9.8136        .12576E-03   -1.5071    
  21  Prefactor     22.504        48.469        .84427E-04   -1.4759    
  22  Prefactor     .10000E-03    13.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2612        4.5751        .12869E-03   -1.5207    
  24  Prefactor     .10000E-03    2.1609        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.8748        84.565        .23943E-03   -1.5369    
  26  Prefactor     13.300        19.305        .10983E-03   -1.4978    
  27  Normalizat    .73204        .20589        .25688E-03   -1.0264    
  28  Prefactor     1.3133        .24220        .24459E-03   -.82914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64785e-08
Minuit parameter uncertainties:
  1  2.85129
  2  0.00103183
  3  3.17258
  4  1.30195
  5  0.000709183
  6  7.1367
  7  1.93076
  8  3.47509
  9  8.81623
  10  25.813
  11  2.0199e-05
  12  28.2797
  13  1.62645e-06
  14  7.52552e-06
  15  1.77774
  16  5.91135e-06
  17  4.39999
  18  27.784
  19  6.31979e-05
  20  9.81514
  21  48.5538
  22  9.36748e-05
  23  4.5754
  24  1.28213e-05
  25  31.2317
  26  19.314
  27  0.206103
  28  0.242411
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  7.526e-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:  1.313e+00  2.424e-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:  7.320e-01  2.061e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604763/likelihoodResults_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.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) = 5599.57463444
delta logL = -0.000998044319203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5599.57363639
delta logL = 1.00199031294e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1722       1.0000          .0000       10.000    
     3 'Normalizat'    .73205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3133       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.

 FCN=   5599.574     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    147.03        .90712E-02** at limit **
   2  Index         2.1805        6.6767        .50000       -.14918E-04
   3  Normalizat    .73204        .23430E-01    .42717E-01   -.70353E-04
   4  Prefactor     1.3133        .29124E-01    .55317E-01   -.95584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18046
  Normalizat = 0.732036
  Prefactor  = 1.31326
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.574     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    730.28        .15943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1805        5.1158        .50000       -.59911    
   3  Normalizat    .73204        .66809E-01    .25688E-03   -1.0264    
   4  Prefactor     1.3133        .83039E-01    .24459E-03   -.82914    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.11536e-08
Minuit parameter uncertainties:
  1  0.000769441
  2  51.6616
  3  0.0668166
  4  0.083047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604763': 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) = 5599.57363634
delta logL = 5.67551978747e-08

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  7.694e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.180e+00  5.166e+01  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:  1.313e+00  8.305e-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:  7.320e-01  6.682e-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/604763/cmap_HighResolution_332380801_332640001_4FGL_J0957.8+3423_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-01 07:24:47.854820', job_id='604763', GAL2='1.31', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630506287.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='5.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='359' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 604763: <4FGL_J0957.8+3423_daily_bin359> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin359> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:11:24 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:11:26 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:11:26 2021
Terminated at Wed Sep  1 07:24:48 2021
Results reported at Wed Sep  1 07:24:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin359 149.471 34.3975 332380801 332640001 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 :                                   759.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

