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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin171
RA = 149.471, Dec = 34.3975
tmin = 283651201, tmax = 283910401
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='604435', job_status='RUN', time_executed='2021-09-01 07:11:13.237742', time_epoch_executed='1630505473.24' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604435/ft1_4FGL_J0957.8+3423_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604435/ft2_4FGL_J0957.8+3423_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604435/ft1_4FGL_J0957.8+3423_daily_bin171.fits outfile=/scratch/kocevski/604435/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin171.fits ra=149.471 dec=34.3975 rad=12.0 tmin=283651201.0 tmax=283910401.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 3.79
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604435/ft2_4FGL_J0957.8+3423_daily_bin171.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/604435/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/604435/ft1_filtered_4FGL_J0957.8+3423_daily_bin171.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.79
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604435/ft1_filtered_4FGL_J0957.8+3423_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/604435/ft2_4FGL_J0957.8+3423_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/604435/ltcube_283651201_283910401_4FGL_J0957.8+3423_daily_bin171.fits outfile=/scratch/kocevski/604435/expmap_283651201_283910401_4FGL_J0957.8+3423_daily_bin171.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/604435/ltcube_283651201_283910401_4FGL_J0957.8+3423_daily_bin171.fits
.....................!
real 195.43
user 186.93
sys 4.09

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/604435/ft1_filtered_4FGL_J0957.8+3423_daily_bin171.fits scfile=/scratch/kocevski/604435/ft2_4FGL_J0957.8+3423_daily_bin171.fits outfile=/scratch/kocevski/604435/cmap_283651201_283910401_4FGL_J0957.8+3423_daily_bin171.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.61
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604435/ft1_filtered_4FGL_J0957.8+3423_daily_bin171.fits scfile=/scratch/kocevski/604435/ft2_4FGL_J0957.8+3423_daily_bin171.fits outfile=/scratch/kocevski/604435/cmap_HighResolution_283651201_283910401_4FGL_J0957.8+3423_daily_bin171.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.75
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7312       1.0000         .10000E-03   10000.    
     4 'norm      '    .11075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.7206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9098       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.074       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88518       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6044       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3980       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5953       1.0000         .10000E-03   10000.    
    20 'norm      '    25.684       1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21409E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3447       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.814       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .60863       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=   5542.603     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3539 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1255        4.9740       -.45162E-06   -.90057E-04
   2  Prefactor     .10000E-03    12.479       -.50259E-05** at limit **
   3  Prefactor     3.7316        3.5122        .99767E-06    .36685E-04
   4  norm          .10000E-03    .91193        .25956E-06** at limit **
   5  Prefactor     .10000E-03    14.386       -.10983E-05** at limit **
   6  norm          8.7220        9.4968        .72469E-07    .29164E-06
   7  Prefactor     1.6654        1.8605       -.11455E-06   -.14487E-03
   8  Prefactor     5.9097        4.3986       -.16441E-05   -.20261E-03
   9  norm          .10000E-03    5.9722       -.47945E-06** at limit **
  10  Prefactor     22.798        25.058        .21952E-05    .73351E-05
  11  Prefactor     .10000E-03    9.0360        .21866E-05** at limit **
  12  Prefactor     23.972        27.586        .10304E-04    .38548E-04
  13  Prefactor     21.076        9.1031        .10310E-06   -.13263E-04
  14  Prefactor     .10000E-03    5.9080        .72472E-06** at limit **
  15  Prefactor     .88577        1.0980        .27486E-06   -.37783E-02
  16  norm          9.6044        7.2001        .13448E-06   -.54844E-05
  17  Prefactor     2.4014        5.4427        .45804E-07   -.11884E-03
  18  Prefactor     .10000E-03    16.965        .71370E-05** at limit **
  19  Prefactor     5.5951        6.2661       -.48677E-07   -.10477E-02
  20  norm          25.678        13.486        .28544E-07   -.20417E-04
  21  Prefactor     58.239        58.008        .35169E-05    .61598E-05
  22  Prefactor     .10000E-03    23.241        .27111E-05** at limit **
  23  Prefactor     .10000E-03    2.7550       -.12565E-06** at limit **
  24  Prefactor     5.3416        6.3095        .24804E-06   -.10711E-02
  25  Prefactor     .10000E-03    24.838       -.62247E-05** at limit **
  26  Prefactor     47.818        31.119        .33284E-05    .24409E-04
  27  Normalizat    1.1851        .19605       -.13265E-05    .15705E-04
  28  Prefactor     .60894        .20908        .14790E-06   -.69728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.12552
  Prefactor  = 0.0001
  Prefactor  = 3.73162
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.72196
  Prefactor  = 1.66538
  Prefactor  = 5.90971
  norm       = 0.0001
  Prefactor  = 22.7981
  Prefactor  = 0.0001
  Prefactor  = 23.9721
  Prefactor  = 21.0762
  Prefactor  = 0.0001
  Prefactor  = 0.885769
  norm       = 9.60438
  Prefactor  = 2.40143
  Prefactor  = 0.0001
  Prefactor  = 5.59513
  norm       = 25.678
  Prefactor  = 58.2392
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.34156
  Prefactor  = 0.0001
  Prefactor  = 47.8176
  Normalizat = 1.18515
  Prefactor  = 0.608942
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.603     FROM HESSE     STATUS=OK           527 CALLS     4066 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1255        4.9818        .14202E-03   -1.5213    
   2  Prefactor     .10000E-03    12.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7316        3.4978        .12780E-03   -1.5322    
   4  norm          .10000E-03    1.5734        .13792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.7220        9.5050        .13574E-03   -1.5117    
   7  Prefactor     1.6654        1.8430        .10123E-03   -1.5450    
   8  Prefactor     5.9097        4.4034        .12782E-03   -1.5222    
   9  norm          .10000E-03    5.9783        .17773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.798        25.066        .83895E-04   -1.4753    
  11  Prefactor     .10000E-03    9.0260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.972        27.568        .81829E-04   -1.4728    
  13  Prefactor     21.076        9.1158        .87250E-04   -1.4789    
  14  Prefactor     .10000E-03    5.9424        .17668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .88577        2.3282        .87567E-03   -1.5520    
  16  norm          9.6044        7.1997        .12931E-03   -1.5088    
  17  Prefactor     2.4014        5.3047        .19885E-03   -1.5398    
  18  Prefactor     .10000E-03    16.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5951        6.2246        .75960E-03   -1.5235    
  20  norm          25.678        13.170        .79045E-04   -1.4694    
  21  Prefactor     58.239        58.013        .52571E-04   -1.4180    
  22  Prefactor     .10000E-03    23.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.068        .23027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.3416        6.5432        .86919E-03   -1.5246    
  25  Prefactor     .10000E-03    24.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     47.818        31.119        .57989E-04   -1.4324    
  27  Normalizat    1.1851        .22528        .22036E-03   -.87063    
  28  Prefactor     .60894        .23573        .33479E-03   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04229e-08
Minuit parameter uncertainties:
  1  4.98211
  2  3.28964e-05
  3  3.49801
  4  1.98302e-05
  5  1.78005e-05
  6  9.50664
  7  1.84311
  8  4.40364
  9  2.04169e-05
  10  25.078
  11  3.22267e-05
  12  27.5828
  13  9.11643
  14  2.41504e-06
  15  2.32845
  16  7.20036
  17  5.30578
  18  3.2861e-05
  19  6.22536
  20  13.1715
  21  58.0698
  22  1.82157e-05
  23  0.000212194
  24  6.5441
  25  4.13299e-05
  26  31.1294
  27  0.225464
  28  0.236118
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.415e-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:  6.089e-01  2.361e-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.185e+00  2.255e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604435/likelihoodResults_283651201_283910401_4FGL_J0957.8+3423_daily_bin171.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) = 5542.60426768
delta logL = -0.000800968437943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5542.60346672
delta logL = -1.40844349517e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1661       1.0000          .0000       10.000    
     3 'Normalizat'    1.1852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60894       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=   5542.603     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8286        .90712E-02** at limit **
   2  Index         2.1680        8.3883        .50000       -.25696E-05
   3  Normalizat    1.1851        .43352E-02    .35266E-01    .51570E-05
   4  Prefactor     .60894        .48936E-02    .75615E-01    .25910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16802
  Normalizat = 1.18515
  Prefactor  = 0.608944
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.603     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.567        .17670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1680        6.2714        .50000       -.60213    
   3  Normalizat    1.1851        .16806E-01    .22036E-03   -.87063    
   4  Prefactor     .60894        .18927E-01    .33479E-03   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.85515e-08
Minuit parameter uncertainties:
  1  6.85062e-06
  2  450.372
  3  0.0168056
  4  0.0189273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604435': 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) = 5542.60346671
delta logL = 2.48383003054e-09

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.851e-06  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.168e+00  4.504e+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:  6.089e-01  1.893e-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.185e+00  1.681e-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/604435/cmap_HighResolution_283651201_283910401_4FGL_J0957.8+3423_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-01 07:23:57.669011', job_id='604435', GAL2='0.61', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630506237.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.48e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='171' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:23:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 604435: <4FGL_J0957.8+3423_daily_bin171> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin171> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:56 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:10:58 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:10:58 2021
Terminated at Wed Sep  1 07:23:58 2021
Results reported at Wed Sep  1 07:23:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin171 149.471 34.3975 283651201 283910401 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 :                                   749.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             369.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

