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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1508
RA = 149.471, Dec = 34.3975
tmin = 630201601, tmax = 630460801
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='613299', job_status='RUN', time_executed='2021-09-01 07:38:40.600378', time_epoch_executed='1630507120.6' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613299

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613299/ft1_4FGL_J0957.8+3423_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613299/ft2_4FGL_J0957.8+3423_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613299/ft1_4FGL_J0957.8+3423_daily_bin1508.fits outfile=/scratch/kocevski/613299/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1508.fits ra=149.471 dec=34.3975 rad=12.0 tmin=630201601.0 tmax=630460801.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.43
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613299/ft1_filtered_4FGL_J0957.8+3423_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/613299/ft2_4FGL_J0957.8+3423_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/613299/ltcube_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.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/613299/ft2_4FGL_J0957.8+3423_daily_bin1508.fits
.....................!
real 12.94
user 11.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613299/ft1_filtered_4FGL_J0957.8+3423_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/613299/ft2_4FGL_J0957.8+3423_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/613299/ltcube_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.fits outfile=/scratch/kocevski/613299/expmap_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.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/613299/ltcube_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.fits
.....................!
real 199.83
user 187.11
sys 4.58

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/613299/ft1_filtered_4FGL_J0957.8+3423_daily_bin1508.fits scfile=/scratch/kocevski/613299/ft2_4FGL_J0957.8+3423_daily_bin1508.fits outfile=/scratch/kocevski/613299/cmap_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613299/ft1_filtered_4FGL_J0957.8+3423_daily_bin1508.fits scfile=/scratch/kocevski/613299/ft2_4FGL_J0957.8+3423_daily_bin1508.fits outfile=/scratch/kocevski/613299/cmap_HighResolution_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7183       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.641       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.126       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4456       1.0000         .10000E-03   10000.    
    16 'norm      '    35.306       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0121       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .47197       1.0000         .10000E-03   10000.    
    20 'norm      '    7.0697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13254E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5583       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.011       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97555       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80204       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=   2859.250     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3551 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2363        6.9965       -.25149E-05    .23001E-04
   2  Prefactor     1.7007        415.54       -.65815E-04    .93677E-06
   3  Prefactor     .10000E-03    1.5612        .21217E-07** at limit **
   4  norm          .10000E-03    1.2904        .17883E-06** at limit **
   5  Prefactor     .10000E-03    20.779       -.59095E-05** at limit **
   6  norm          .10000E-03    16.818        .36856E-05** at limit **
   7  Prefactor     .10000E-03    1.8912        .40260E-07** at limit **
   8  Prefactor     .10000E-03    1.5171        .69700E-08** at limit **
   9  norm          17.640        29.517       -.54376E-05   -.34217E-04
  10  Prefactor     .10000E-03    12.528       -.62888E-06** at limit **
  11  Prefactor     13.138        50.869        .15967E-04   -.16284E-04
  12  Prefactor     .10000E-03    27.247        .15450E-04** at limit **
  13  Prefactor     .10000E-03    20.211       -.58041E-05** at limit **
  14  Prefactor     16.244        17.350       -.14841E-06    .24954E-04
  15  Prefactor     8.4464        4.3030       -.18421E-07    .15917E-03
  16  norm          35.309        14.802        .18114E-06    .99704E-04
  17  Prefactor     7.0044        6.2040       -.12164E-06    .20540E-03
  18  Prefactor     .10000E-03    36.481       -.24626E-04** at limit **
  19  Prefactor     .49992        6.9183       -.88419E-06    .82968E-04
  20  norm          7.0694        16.202       -.25087E-06    .33064E-04
  21  Prefactor     .10000E-03    154.15       -.73326E-05** at limit **
  22  Prefactor     .10000E-03    61.869        .20235E-04** at limit **
  23  Prefactor     .10000E-03    2.3269        .13169E-06** at limit **
  24  Prefactor     8.5562        8.4525        .90170E-07   -.17893E-03
  25  Prefactor     .10000E-03    30.297        .69124E-05** at limit **
  26  Prefactor     16.021        27.354       -.61301E-07   -.74727E-06
  27  Normalizat    .97569        .23824        .24031E-08    .20500E-03
  28  Prefactor     .80193        .25213        .10060E-05    .10527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.2363
  Prefactor  = 1.70074
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6399
  Prefactor  = 0.0001
  Prefactor  = 13.138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2438
  Prefactor  = 8.44641
  norm       = 35.309
  Prefactor  = 7.00436
  Prefactor  = 0.0001
  Prefactor  = 0.499921
  norm       = 7.06944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.55619
  Prefactor  = 0.0001
  Prefactor  = 16.0209
  Normalizat = 0.975692
  Prefactor  = 0.801932
 **********
 **   18 **HESSE 
 **********

 FCN=   2859.250     FROM HESSE     STATUS=OK           517 CALLS     4068 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2363        7.0026        .11919E-03   -1.5100    
   2  Prefactor     1.7007        426.04        .32052E-03   -1.5447    
   3  Prefactor     .10000E-03    1.5614        .65247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3088        .59313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9433        .14358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5188        .64321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.640        29.505        .95359E-04   -1.4868    
  10  Prefactor     .10000E-03    12.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.138        51.041        .11056E-03   -1.4983    
  12  Prefactor     .10000E-03    27.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.244        17.351        .99380E-04   -1.4902    
  15  Prefactor     8.4464        4.3087        .75207E-04   -1.5127    
  16  norm          35.309        14.808        .67445E-04   -1.4519    
  17  Prefactor     7.0044        6.5993        .10509E-03   -1.5179    
  18  Prefactor     .10000E-03    36.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .49992        32.251        .22337E-02   -1.5567    
  20  norm          7.0694        16.163        .15087E-03   -1.5176    
  21  Prefactor     .10000E-03    155.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    61.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3321        .79627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5562        8.4182        .13703E-03   -1.5123    
  25  Prefactor     .10000E-03    30.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.021        27.358        .10009E-03   -1.4907    
  27  Normalizat    .97569        .27769        .22784E-03   -.93849    
  28  Prefactor     .80193        .29149        .28503E-03   -.99657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48509e-10
Minuit parameter uncertainties:
  1  7.00323
  2  54.2288
  3  6.45278e-06
  4  1.16338e-06
  5  0.000300757
  6  0.000111926
  7  2.36362e-06
  8  6.07501e-07
  9  29.5295
  10  1.04937e-06
  11  51.2115
  12  0.000116785
  13  5.46503e-05
  14  17.3569
  15  4.30886
  16  14.8094
  17  6.59996
  18  1.1867e-05
  19  8.03442
  20  16.1734
  21  3.94568e-05
  22  4.54024e-05
  23  6.18342e-07
  24  8.41933
  25  1.5549e-05
  26  27.3799
  27  0.278102
  28  0.292055
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.624e+01  1.736e+01  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.019e-01  2.921e-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:  9.757e-01  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 2.40e-05

TS (Fixed Index): 1.27
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613299/likelihoodResults_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.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) = 2859.18011269
delta logL = 0.0696086491871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2859.17787782
delta logL = 0.07184352083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.002       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8856       1.0000          .0000       10.000    
     3 'Normalizat'    .98996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79104       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=   2859.178     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      273 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.026        967.40        .22389E-02    .19438E-04
   2  Index         1.8866        5.4309        .15170        .17242E-04
   3  Normalizat    .98994        .22096        .46041E-01    .31456E-04
   4  Prefactor     .79098        .17701        .64812E-01    .29709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0264
  Index      = 1.88657
  Normalizat = 0.989939
  Prefactor  = 0.790979
 **********
 **   18 **HESSE 
 **********

 FCN=   2859.178     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.026        21.779        .89557E-04   -1.4813    
   2  Index         1.8866        .69745        .75643E-02   -.67217    
   3  Normalizat    .98994        .25034        .22639E-03   -.93368    
   4  Prefactor     .79098        .28567        .28670E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60317e-10
Minuit parameter uncertainties:
  1  21.7872
  2  0.701201
  3  0.250641
  4  0.286211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613299': 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) = 2859.17787576
delta logL = 0.0718455754741

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  2.003e+01  2.179e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.887e+00  7.012e-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:  7.910e-01  2.862e-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:  9.899e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 149.471 34.398
Photon Index (Free Index): 1.89 +/- 0.70
Photon Flux (Free Index): 3.57e-08 +/- 4.77e-08
Energy Flux (Free Index): 3.33e-05 +/- 5.14e-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/613299/cmap_HighResolution_630201601_630460801_4FGL_J0957.8+3423_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='3.33e-05', photon_flux_error='4.98e-08', dlogl='7.18e-02', energy_flux='2.24e-05', photon_flux2='3.57e-08', job_status='DONE', time_completed='2021-09-01 07:49:24.822718', photon_index_error2='0.70', photon_index2='1.89', ts='1.27', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='5.14e-05', EG='0.98', time_epoch_completed='1630507764.82', return_code='0', job_id='613299', GAL2='0.79', EG2='0.99', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='4.77e-08', ts2='1.41', photon_index='2.16' WHERE bin_id='1508' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:49:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 613299: <4FGL_J0957.8+3423_daily_bin1508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1508 149.471 34.3975 630201601 630460801 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 :                                   544.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             211.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

