/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

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

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

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

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

number of points = 7584
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1616
RA = 149.471, Dec = 34.3975
tmin = 658195201, tmax = 658454401
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='290243', job_status='RUN', time_executed='2021-12-07 20:41:11.797547', time_epoch_executed='1638938471.8' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290243/ft1_4FGL_J0957.8+3423_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290243/ft2_4FGL_J0957.8+3423_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290243/ft1_4FGL_J0957.8+3423_daily_bin1616.fits outfile=/scratch/kocevski/290243/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1616.fits ra=149.471 dec=34.3975 rad=12.0 tmin=658195201.0 tmax=658454401.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.79
user 4.52
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290243/ft1_filtered_4FGL_J0957.8+3423_daily_bin1616.fits" evtable="EVENTS" scfile=/scratch/kocevski/290243/ft2_4FGL_J0957.8+3423_daily_bin1616.fits sctable="SC_DATA" outfile=/scratch/kocevski/290243/ltcube_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.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/290243/ft2_4FGL_J0957.8+3423_daily_bin1616.fits
.....................!
real 17.53
user 17.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290243/ft1_filtered_4FGL_J0957.8+3423_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/290243/ft2_4FGL_J0957.8+3423_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/290243/ltcube_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.fits outfile=/scratch/kocevski/290243/expmap_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.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/290243/ltcube_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.fits
.....................!
real 195.27
user 188.39
sys 6.22

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/290243/ft1_filtered_4FGL_J0957.8+3423_daily_bin1616.fits scfile=/scratch/kocevski/290243/ft2_4FGL_J0957.8+3423_daily_bin1616.fits outfile=/scratch/kocevski/290243/cmap_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=149.471 yref=34.3975 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290243/ft1_filtered_4FGL_J0957.8+3423_daily_bin1616.fits scfile=/scratch/kocevski/290243/ft2_4FGL_J0957.8+3423_daily_bin1616.fits outfile=/scratch/kocevski/290243/cmap_HighResolution_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11474E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14406E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0856       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46081       1.0000         .10000E-03   10000.    
    16 'norm      '    7.3244       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75598E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .63384       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3737       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .72946       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=   6311.624     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3646 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8420        .23587E-07** at limit **
   2  Prefactor     .10000E-03    14.666        .71438E-05** at limit **
   3  Prefactor     .10000E-03    1.6666       -.64820E-08** at limit **
   4  norm          .10000E-03    .87968        .31737E-08** at limit **
   5  Prefactor     .10000E-03    46.402       -.46818E-05** at limit **
   6  norm          .10003E-03    8.3873        .49676E-06** at limit **
   7  Prefactor     1.2801        2.2160        .42973E-07   -.32152E-03
   8  Prefactor     .10000E-03    2.0019        .96143E-07** at limit **
   9  norm          .10000E-03    3.7084        .26770E-08** at limit **
  10  Prefactor     .10000E-03    14.021       -.49771E-05** at limit **
  11  Prefactor     .10000E-03    10.091       -.46600E-05** at limit **
  12  Prefactor     .10000E-03    10.208        .50274E-05** at limit **
  13  Prefactor     3.0865        5.5634       -.16782E-05   -.44454E-03
  14  Prefactor     3.1282        4.4170        .21672E-05   -.24262E-02
  15  Prefactor     .45998        1.8066        .35490E-06   -.47661E-03
  16  norm          7.3241        8.2279        .67361E-07   -.51890E-04
  17  Prefactor     .10000E-03    1.6439       -.37483E-07** at limit **
  18  Prefactor     .11312E-01    22.984       -.42185E-06    .50088E-04
  19  Prefactor     .10000E-03    1.6224       -.26483E-08** at limit **
  20  norm          .10000E-03    2.1086       -.10728E-07** at limit **
  21  Prefactor     .10000E-03    44.865        .43077E-05** at limit **
  22  Prefactor     .10000E-03    5.6636        .32079E-07** at limit **
  23  Prefactor     .63334        2.7967        .27399E-06   -.45804E-03
  24  Prefactor     .10000E-03    .91056        .41328E-08** at limit **
  25  Prefactor     .10000E-03    7.9151        .51314E-07** at limit **
  26  Prefactor     .10000E-03    16.190       -.24758E-05** at limit **
  27  Normalizat    1.3737        .16659       -.37450E-06    .97075E-05
  28  Prefactor     .72949        .19120        .10736E-06   -.18816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100033
  Prefactor  = 1.28012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 3.08655
  Prefactor  = 3.12815
  Prefactor  = 0.459978
  norm       = 7.32408
  Prefactor  = 0.0001
  Prefactor  = 0.011312
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.633338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37372
  Prefactor  = 0.729486
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.624     FROM HESSE     STATUS=OK           535 CALLS     4181 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8723        .10527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7314        .19486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.1784        .14486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10003E-03    11.225        .56780E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2801        2.1351        .13978E-03   -1.5482    
   8  Prefactor     .10000E-03    4.7691        .21713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.7101        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0865        5.5893        .23089E-03   -1.5357    
  14  Prefactor     3.1282        6.5327        .11460E-02   -1.5354    
  15  Prefactor     .45998        1.8261        .20092E-03   -1.5572    
  16  norm          7.3241        8.2182        .14820E-03   -1.5167    
  17  Prefactor     .10000E-03    1.6686        .99394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11312E-01    27.655        .10373       -1.5687    
  19  Prefactor     .10000E-03    1.6434        .98766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1107        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    45.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.6644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .63334        2.8484        .25673E-03   -1.5549    
  24  Prefactor     .10000E-03    .91215        .74030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.9213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3737        .19272        .19767E-03   -.81392    
  28  Prefactor     .72949        .21987        .30815E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49496e-09
Minuit parameter uncertainties:
  1  2.5836e-08
  2  0.000435134
  3  1.94604e-07
  4  6.80949e-06
  5  0.000521024
  6  0.00121559
  7  2.13527
  8  3.30547e-06
  9  4.73768e-07
  10  0.000274776
  11  0.000232576
  12  0.000255251
  13  5.59022
  14  6.53417
  15  1.82634
  16  8.21944
  17  1.13466e-06
  18  1.11419
  19  2.7972e-07
  20  2.99105e-07
  21  0.000436524
  22  1.22891e-06
  23  2.68626
  24  6.55674e-08
  25  2.74095e-06
  26  0.000156344
  27  0.192817
  28  0.220137
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  3.128e+00  6.534e+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:  7.295e-01  2.201e-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.374e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/290243/likelihoodResults_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.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) = 6311.61013007
delta logL = 0.0139322067689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6311.60654443
delta logL = 0.0175178447635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5865       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3622       1.0000          .0000       10.000    
     3 'Normalizat'    1.3712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73126       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=   6311.607     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5846        167.97        .63433E-02    .49814E-03
   2  Index         2.3626        6.1812        .24052        .47880E-04
   3  Normalizat    1.3714        .36227E-01    .31638E-01   -.12507E-03
   4  Prefactor     .73108        .41302E-01    .69565E-01    .64411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58457
  Index      = 2.36263
  Normalizat = 1.37142
  Prefactor  = 0.731084
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.607     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5846        6.9937        .24534E-03   -1.5386    
   2  Index         2.3626        1.1763        .94704E-02   -.55562    
   3  Normalizat    1.3714        .18581        .19781E-03   -.81459    
   4  Prefactor     .73108        .21822        .30783E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85356e-09
Minuit parameter uncertainties:
  1  6.99588
  2  1.19192
  3  0.185899
  4  0.218478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290243': 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) = 6311.60654365
delta logL = 0.0175186313672

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  2.585e+00  6.996e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.363e+00  1.192e+00  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.311e-01  2.185e-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.371e+00  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/290243/cmap_HighResolution_658195201_658454401_4FGL_J0957.8+3423_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-12-07 20:55:53.338731', job_id='290243', GAL2='0.73', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1638939353.34', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.75e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1616' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:55:53 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 290243: <4FGL_J0957.8+3423_daily_bin1616> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1616> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Dec  7 20:40:15 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:41:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:41:03 2021
Terminated at Tue Dec  7 20:55:53 2021
Results reported at Tue Dec  7 20:55:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1616 149.471 34.3975 658195201 658454401 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 :                                   880.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            938 sec.

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

