/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 134 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin61
RA = 149.471, Dec = 34.3975
tmin = 255139201, tmax = 255398401
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='604281', job_status='RUN', time_executed='2021-09-01 07:14:31.400097', time_epoch_executed='1630505671.4' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604281/ft1_4FGL_J0957.8+3423_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604281/ft2_4FGL_J0957.8+3423_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604281/ft1_4FGL_J0957.8+3423_daily_bin61.fits outfile=/scratch/kocevski/604281/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin61.fits ra=149.471 dec=34.3975 rad=12.0 tmin=255139201.0 tmax=255398401.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 8.01
user 7.16
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604281/ft1_filtered_4FGL_J0957.8+3423_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/604281/ft2_4FGL_J0957.8+3423_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/604281/ltcube_255139201_255398401_4FGL_J0957.8+3423_daily_bin61.fits outfile=/scratch/kocevski/604281/expmap_255139201_255398401_4FGL_J0957.8+3423_daily_bin61.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/604281/ltcube_255139201_255398401_4FGL_J0957.8+3423_daily_bin61.fits
.....................!
real 192.08
user 186.56
sys 4.45

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/604281/ft1_filtered_4FGL_J0957.8+3423_daily_bin61.fits scfile=/scratch/kocevski/604281/ft2_4FGL_J0957.8+3423_daily_bin61.fits outfile=/scratch/kocevski/604281/cmap_255139201_255398401_4FGL_J0957.8+3423_daily_bin61.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.69
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604281/ft1_filtered_4FGL_J0957.8+3423_daily_bin61.fits scfile=/scratch/kocevski/604281/ft2_4FGL_J0957.8+3423_daily_bin61.fits outfile=/scratch/kocevski/604281/cmap_HighResolution_255139201_255398401_4FGL_J0957.8+3423_daily_bin61.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.67
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.218       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15442       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.035       1.0000         .10000E-03   10000.    
     9 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5780       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6503       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0337       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71049       1.0000         .10000E-03   10000.    
    20 'norm      '    12.672       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3187       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.409       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97202       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87260       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=   3571.691     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3617 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.219        7.5540       -.53399E-07    .86872E-04
   2  Prefactor     .10000E-03    26.857        .10006E-05** at limit **
   3  Prefactor     .16179        12.915       -.37317E-05    .28971E-03
   4  norm          1.9941        1.9109       -.25535E-07    .22690E-04
   5  Prefactor     .10000E-03    7.7073       -.72718E-07** at limit **
   6  norm          .10000E-03    3.5425       -.84071E-07** at limit **
   7  Prefactor     2.8637        2.7703        .38391E-07    .18585E-03
   8  Prefactor     10.036        6.6164       -.11597E-06    .88790E-04
   9  norm          .10000E-03    31.489       -.49406E-06** at limit **
  10  Prefactor     4.5738        89.235       -.18095E-05    .97083E-05
  11  Prefactor     2.6540        76.223       -.12229E-05    .98842E-05
  12  Prefactor     .10000E-03    24.253       -.10952E-05** at limit **
  13  Prefactor     8.7464        7.4015       -.36172E-06    .98396E-04
  14  Prefactor     .10000E-03    6.1080       -.73483E-07** at limit **
  15  Prefactor     .10000E-03    1.1435       -.78566E-07** at limit **
  16  norm          1.0655        11.688        .16539E-05    .30602E-03
  17  Prefactor     1.4304        4.4728        .19965E-06    .38838E-03
  18  Prefactor     25.442        32.301       -.23403E-06    .30308E-04
  19  Prefactor     .71018        8.5429       -.61587E-06    .22112E-03
  20  norm          12.673        11.089        .11372E-06    .92309E-04
  21  Prefactor     .10000E-03    69.057        .27465E-05** at limit **
  22  Prefactor     .10000E-03    12.435        .85001E-08** at limit **
  23  Prefactor     5.3203        5.7776       -.60035E-06    .12805E-03
  24  Prefactor     .10000E-03    2.1190        .12291E-07** at limit **
  25  Prefactor     .10000E-03    44.608       -.36479E-05** at limit **
  26  Prefactor     21.413        39.833       -.11099E-05    .86797E-05
  27  Normalizat    .97199        .21930        .13147E-05    .30455E-03
  28  Prefactor     .87259        .23991        .12165E-05    .26038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.219
  Prefactor  = 0.0001
  Prefactor  = 0.161789
  norm       = 1.99414
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.86365
  Prefactor  = 10.0362
  norm       = 0.0001
  Prefactor  = 4.57383
  Prefactor  = 2.65399
  Prefactor  = 0.0001
  Prefactor  = 8.74643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06553
  Prefactor  = 1.43038
  Prefactor  = 25.4421
  Prefactor  = 0.710182
  norm       = 12.6727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4129
  Normalizat = 0.971989
  Prefactor  = 0.872594
 **********
 **   18 **HESSE 
 **********

 FCN=   3571.691     FROM HESSE     STATUS=OK           527 CALLS     4144 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.219        7.5723        .10622E-03   -1.4954    
   2  Prefactor     .10000E-03    26.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16179        17.607        .18543E-02   -1.5628    
   4  norm          1.9941        1.9069        .78381E-04   -1.5426    
   5  Prefactor     .10000E-03    7.7124        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5498        .10986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8637        2.7511        .91660E-04   -1.5370    
   8  Prefactor     10.036        6.6301        .11580E-03   -1.5074    
   9  norm          .10000E-03    31.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5738        89.394        .18813E-03   -1.5280    
  11  Prefactor     2.6540        75.619        .25041E-03   -1.5382    
  12  Prefactor     .10000E-03    24.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7464        7.3783        .13554E-03   -1.5116    
  14  Prefactor     .10000E-03    6.1359        .14427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1644        .62432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0655        22.632        .30247E-02   -1.5502    
  17  Prefactor     1.4304        4.1358        .16497E-03   -1.5469    
  18  Prefactor     25.442        32.329        .79420E-04   -1.4699    
  19  Prefactor     .71018        12.968        .24502E-02   -1.5539    
  20  norm          12.673        11.071        .11253E-03   -1.4996    
  21  Prefactor     .10000E-03    69.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.3203        5.7566        .13955E-03   -1.5247    
  24  Prefactor     .10000E-03    2.1234        .84934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    44.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.413        39.878        .86565E-04   -1.4782    
  27  Normalizat    .97199        .25590        .22299E-03   -.93975    
  28  Prefactor     .87259        .28242        .27562E-03   -.97105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08938e-09
Minuit parameter uncertainties:
  1  7.57283
  2  2.4394e-05
  3  3.37553
  4  1.90694
  5  7.51265e-06
  6  5.31978e-06
  7  2.75127
  8  6.63054
  9  7.66549e-05
  10  40.5106
  11  28.3723
  12  3.86868e-05
  13  7.37907
  14  1.40909e-05
  15  3.79713e-06
  16  9.82526
  17  4.1366
  18  32.351
  19  6.07049
  20  11.0729
  21  3.46468e-05
  22  8.69116e-07
  23  5.75723
  24  8.93897e-07
  25  0.000164838
  26  39.9273
  27  0.256225
  28  0.282889
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.409e-05  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.726e-01  2.829e-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.720e-01  2.562e-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: 6.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604281/likelihoodResults_255139201_255398401_4FGL_J0957.8+3423_daily_bin61.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) = 3571.69181865
delta logL = -0.000775676258854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3571.69104319
delta logL = -2.15045474761e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1368       1.0000          .0000       10.000    
     3 'Normalizat'    .97202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87258       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=   3571.691     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10524E-03    4.1181        .14873E-01** at limit **
   2  Index         1.9732        5.3001        .50000        .22217E-04
   3  Normalizat    .97199        .37723E-02    .22299E-03   -.17028E-04
   4  Prefactor     .87259        .44651E-02    .27562E-03   -.22459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105239
  Index      = 1.97321
  Normalizat = 0.971988
  Prefactor  = 0.872593
 **********
 **   18 **HESSE 
 **********

 FCN=   3571.691     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10524E-03    146.77        .15796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9732        6.8063        .50000       -.65022    
   3  Normalizat    .97199        .22931E-01    .89197E-05   -.93975    
   4  Prefactor     .87259        .27141E-01    .11025E-04   -.97105    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.23979e-08
Minuit parameter uncertainties:
  1  0.0555979
  2  635.523
  3  0.0229309
  4  0.0271412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604281': 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) = 3571.69104194
delta logL = 1.0309818208e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.726e-01  2.714e-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:  9.720e-01  2.293e-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/604281/cmap_HighResolution_255139201_255398401_4FGL_J0957.8+3423_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.85e-08', time_completed='2021-09-01 07:25:20.506477', job_id='604281', GAL2='0.87', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630506320.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='61' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:25:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 604281: <4FGL_J0957.8+3423_daily_bin61> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin61 149.471 34.3975 255139201 255398401 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 :                                   628.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

