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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1000
RA = 149.471, Dec = 34.3975
tmin = 498528001, tmax = 498787201
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='611244', job_status='RUN', time_executed='2021-09-01 07:34:17.504519', time_epoch_executed='1630506857.5' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611244/ft1_4FGL_J0957.8+3423_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611244/ft2_4FGL_J0957.8+3423_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611244/ft1_4FGL_J0957.8+3423_daily_bin1000.fits outfile=/scratch/kocevski/611244/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1000.fits ra=149.471 dec=34.3975 rad=12.0 tmin=498528001.0 tmax=498787201.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 7.98
user 4.85
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611244/ft1_filtered_4FGL_J0957.8+3423_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/611244/ft2_4FGL_J0957.8+3423_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/611244/ltcube_498528001_498787201_4FGL_J0957.8+3423_daily_bin1000.fits outfile=/scratch/kocevski/611244/expmap_498528001_498787201_4FGL_J0957.8+3423_daily_bin1000.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/611244/ltcube_498528001_498787201_4FGL_J0957.8+3423_daily_bin1000.fits
.....................!
real 195.15
user 185.00
sys 4.46

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/611244/ft1_filtered_4FGL_J0957.8+3423_daily_bin1000.fits scfile=/scratch/kocevski/611244/ft2_4FGL_J0957.8+3423_daily_bin1000.fits outfile=/scratch/kocevski/611244/cmap_498528001_498787201_4FGL_J0957.8+3423_daily_bin1000.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.68
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611244/ft1_filtered_4FGL_J0957.8+3423_daily_bin1000.fits scfile=/scratch/kocevski/611244/ft2_4FGL_J0957.8+3423_daily_bin1000.fits outfile=/scratch/kocevski/611244/cmap_HighResolution_498528001_498787201_4FGL_J0957.8+3423_daily_bin1000.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 1.60
user 0.41
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1360       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8596       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0499       1.0000         .10000E-03   10000.    
     6 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.563       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.612       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6940       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0632       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16459E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11824E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.358       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.914       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78918       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0685       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=   4344.274     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3556 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1357        3.3084       -.35655E-06    .19023E-04
   2  Prefactor     .10000E-03    24.399       -.45275E-06** at limit **
   3  Prefactor     6.8611        4.4011        .10018E-06    .16420E-03
   4  norm          1.8169        1.5833       -.12746E-06    .56398E-04
   5  Prefactor     2.0307        41.926       -.27535E-05    .27907E-04
   6  norm          .10000E-03    8.0593        .22399E-07** at limit **
   7  Prefactor     .10000E-03    .99678       -.37256E-06** at limit **
   8  Prefactor     .10000E-03    1.5116       -.48901E-06** at limit **
   9  norm          31.643        30.074       -.48132E-05    .34418E-04
  10  Prefactor     26.616        27.012       -.34947E-06    .48887E-05
  11  Prefactor     .10003E-03    48.784       -.47104E-06** at limit **
  12  Prefactor     2.1085        296.72       -.10144E-04    .36585E-04
  13  Prefactor     .10000E-03    6.0388       -.12011E-05** at limit **
  14  Prefactor     5.6942        7.1684        .82876E-06    .28127E-04
  15  Prefactor     .10000E-03    1.5863       -.62632E-06** at limit **
  16  norm          8.0561        12.489       -.73985E-06    .42890E-04
  17  Prefactor     .10000E-03    3.5690        .15433E-05** at limit **
  18  Prefactor     .10000E-03    7.5380       -.77283E-06** at limit **
  19  Prefactor     .10000E-03    203.54        .33960E-04** at limit **
  20  norm          .10000E-03    9.6273       -.14383E-05** at limit **
  21  Prefactor     .10000E-03    62.974       -.13300E-04** at limit **
  22  Prefactor     .10000E-03    12.171       -.61352E-07** at limit **
  23  Prefactor     11.358        5.4931        .36985E-06    .22326E-03
  24  Prefactor     .10000E-03    1.9317       -.25821E-06** at limit **
  25  Prefactor     .10000E-03    52.080       -.26419E-05** at limit **
  26  Prefactor     17.880        27.367        .11388E-05    .53538E-04
  27  Normalizat    .78957        .21070       -.64205E-05    .23668E-03
  28  Prefactor     1.0684        .25037        .11636E-04    .17824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13574
  Prefactor  = 0.0001
  Prefactor  = 6.86114
  norm       = 1.81693
  Prefactor  = 2.03072
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.6428
  Prefactor  = 26.6164
  Prefactor  = 0.00010003
  Prefactor  = 2.1085
  Prefactor  = 0.0001
  Prefactor  = 5.6942
  Prefactor  = 0.0001
  norm       = 8.05611
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 11.3582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8804
  Normalizat = 0.789571
  Prefactor  = 1.0684
 **********
 **   18 **HESSE 
 **********

 FCN=   4344.274     FROM HESSE     STATUS=OK           527 CALLS     4083 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1357        3.3076        .11872E-03   -1.5354    
   2  Prefactor     .10000E-03    24.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8611        4.3730        .10351E-03   -1.5184    
   4  norm          1.8169        1.5774        .75057E-04   -1.5438    
   5  Prefactor     2.0307        41.348        .28874E-03   -1.5423    
   6  norm          .10000E-03    8.0943        .18136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0040        .64145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5269        .79208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.643        31.017        .71320E-04   -1.4582    
  10  Prefactor     26.616        27.068        .77656E-04   -1.4676    
  11  Prefactor     .10003E-03    49.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1085        322.41        .26918E-02   -1.5418    
  13  Prefactor     .10000E-03    6.1219        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6942        7.1583        .16833E-03   -1.5231    
  15  Prefactor     .10000E-03    1.6416        .16254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0561        12.497        .14120E-03   -1.5140    
  17  Prefactor     .10000E-03    5.7406        .22260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5431        .17676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.6597        .35848E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.8021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    63.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.358        5.4936        .10292E-03   -1.5034    
  24  Prefactor     .10000E-03    1.9381        .89474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    52.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.880        27.387        .94630E-04   -1.4862    
  27  Normalizat    .78957        .22008        .23504E-03   -1.0046    
  28  Prefactor     1.0684        .25347        .24674E-03   -.90483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36032e-09
Minuit parameter uncertainties:
  1  3.30783
  2  2.99843e-05
  3  4.37325
  4  1.57743
  5  18.3408
  6  3.21744e-05
  7  7.04851e-06
  8  2.91957e-06
  9  31.0329
  10  27.08
  11  0.00243396
  12  52.4352
  13  1.65539e-05
  14  7.15934
  15  5.17623e-06
  16  12.5008
  17  0.000240822
  18  1.05436e-05
  19  9.71127e-05
  20  3.02424e-05
  21  0.00108098
  22  7.22091e-07
  23  5.49387
  24  3.23667e-06
  25  0.000193658
  26  27.4061
  27  0.22033
  28  0.253758
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  5.694e+00  7.159e+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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.068e+00  2.538e-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.896e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.63e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 7.86e-06 +/- 9.88e-06

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

Saving results to:
/scratch/kocevski/611244/likelihoodResults_498528001_498787201_4FGL_J0957.8+3423_daily_bin1000.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) = 4344.23660399
delta logL = 0.0374959841383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4344.23496055
delta logL = 0.0391394160342

Fit tolerance = 1e-08

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

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

 FCN=   4344.235     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8384        9.1362        .15343E-03    .28617E-03
   2  Index         1.9303        .82237        .10187E-01    .42018E-04
   3  Normalizat    .79359        .20492        .23446E-03   -.26232E-04
   4  Prefactor     1.0655        .24744        .24701E-03   -.28673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83842
  Index      = 1.93031
  Normalizat = 0.793592
  Prefactor  = 1.06554
 **********
 **   18 **HESSE 
 **********

 FCN=   4344.235     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8384        8.9972        .61370E-05   -1.5185    
   2  Index         1.9303        .81015        .40748E-03   -.66104    
   3  Normalizat    .79359        .20509        .93786E-05   -1.0031    
   4  Prefactor     1.0655        .24768        .98806E-05   -.90576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13741e-10
Minuit parameter uncertainties:
  1  8.99896
  2  0.815946
  3  0.205285
  4  0.247951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611244': 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) = 4344.23496054
delta logL = 0.039139425031

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  6.838e+00  8.999e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.930e+00  8.159e-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.066e+00  2.480e-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.936e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 149.471 34.398
Photon Index (Free Index): 1.93 +/- 0.82
Photon Flux (Free Index): 1.31e-08 +/- 2.04e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.92e-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/611244/cmap_HighResolution_498528001_498787201_4FGL_J0957.8+3423_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', comment='SUCCESS', photon_flux='1.63e-08', energy_flux2='1.08e-05', photon_flux_error='2.05e-08', dlogl='3.91e-02', energy_flux='7.86e-06', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-01 07:45:43.572101', photon_index_error2='0.82', photon_index2='1.93', ts='1.28', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.77e-08', energy_flux_error2='1.92e-05', EG='0.79', time_epoch_completed='1630507543.57', return_code='0', job_id='611244', GAL2='1.07', EG2='0.79', return_code2='0', energy_flux_error='9.88e-06', photon_flux_error2='2.04e-08', ts2='1.35', photon_index='2.16' WHERE bin_id='1000' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 611244: <4FGL_J0957.8+3423_daily_bin1000> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1000> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:30:29 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:30:30 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:30:30 2021
Terminated at Wed Sep  1 07:45:44 2021
Results reported at Wed Sep  1 07:45:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1000 149.471 34.3975 498528001 498787201 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 :                                   657.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

