/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 238 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin39
RA = 149.471, Dec = 34.3975
tmin = 249436801, tmax = 249696001
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='604248', job_status='RUN', time_executed='2021-09-01 07:14:56.587273', time_epoch_executed='1630505696.59' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604248/ft1_4FGL_J0957.8+3423_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604248/ft2_4FGL_J0957.8+3423_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604248/ft1_4FGL_J0957.8+3423_daily_bin39.fits outfile=/scratch/kocevski/604248/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin39.fits ra=149.471 dec=34.3975 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.51
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604248/ft1_filtered_4FGL_J0957.8+3423_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/604248/ft2_4FGL_J0957.8+3423_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/604248/ltcube_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.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/604248/ft2_4FGL_J0957.8+3423_daily_bin39.fits
.....................!
real 12.87
user 12.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604248/ft1_filtered_4FGL_J0957.8+3423_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/604248/ft2_4FGL_J0957.8+3423_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/604248/ltcube_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.fits outfile=/scratch/kocevski/604248/expmap_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.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/604248/ltcube_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.fits
.....................!
real 192.09
user 187.08
sys 4.60

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/604248/ft1_filtered_4FGL_J0957.8+3423_daily_bin39.fits scfile=/scratch/kocevski/604248/ft2_4FGL_J0957.8+3423_daily_bin39.fits outfile=/scratch/kocevski/604248/cmap_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.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.63
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604248/ft1_filtered_4FGL_J0957.8+3423_daily_bin39.fits scfile=/scratch/kocevski/604248/ft2_4FGL_J0957.8+3423_daily_bin39.fits outfile=/scratch/kocevski/604248/cmap_HighResolution_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .84416       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5523       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12730E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1683       1.0000         .10000E-03   10000.    
     9 'norm      '    .10520E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.714       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13206E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14647E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .86221E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3412       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .46154       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2605       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .55824       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=   4536.850     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3565 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1475       -.21006E-07** at limit **
   2  Prefactor     8.0210        22.020       -.71332E-07   -.42972E-04
   3  Prefactor     .10000E-03    1.5260        .58686E-08** at limit **
   4  norm          .84387        1.4391       -.50935E-07    .33170E-03
   5  Prefactor     6.5578        14.448       -.50355E-06   -.19745E-03
   6  norm          1.3486        12.074        .21135E-05   -.16574E-03
   7  Prefactor     .10000E-03    2.4598        .84376E-06** at limit **
   8  Prefactor     5.1678        4.2346        .14919E-06    .11624E-03
   9  norm          .10000E-03    10.021        .65414E-06** at limit **
  10  Prefactor     21.514        19.887        .15172E-06    .26233E-04
  11  Prefactor     12.666        32.164        .58272E-06   -.24119E-04
  12  Prefactor     .10000E-03    25.102        .10563E-05** at limit **
  13  Prefactor     .10000E-03    3.5205        .54312E-06** at limit **
  14  Prefactor     .10000E-03    4.0612       -.35037E-07** at limit **
  15  Prefactor     .10000E-03    .62540       -.29331E-07** at limit **
  16  norm          .10000E-03    2.2123       -.27968E-07** at limit **
  17  Prefactor     .10002E-03    2.8735        .54634E-06** at limit **
  18  Prefactor     .10000E-03    8.3042        .30876E-07** at limit **
  19  Prefactor     5.3457        5.6546       -.68653E-06   -.19575E-03
  20  norm          .10000E-03    2.5760        .11748E-07** at limit **
  21  Prefactor     .10000E-03    24.237       -.48674E-07** at limit **
  22  Prefactor     .10000E-03    22.165       -.38879E-08** at limit **
  23  Prefactor     .10000E-03    3.0607        .16292E-06** at limit **
  24  Prefactor     .44948        3.7673        .22451E-06   -.80444E-04
  25  Prefactor     .10000E-03    58.714       -.29444E-06** at limit **
  26  Prefactor     .10000E-03    11.218       -.39778E-07** at limit **
  27  Normalizat    1.2607        .19421       -.23542E-05   -.34230E-03
  28  Prefactor     .55823        .20772        .30655E-05   -.14440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.021
  Prefactor  = 0.0001
  norm       = 0.843873
  Prefactor  = 6.55777
  norm       = 1.34856
  Prefactor  = 0.000100001
  Prefactor  = 5.16782
  norm       = 0.0001
  Prefactor  = 21.5144
  Prefactor  = 12.6662
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 5.3457
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.449483
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.26073
  Prefactor  = 0.558229
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.850     FROM HESSE     STATUS=OK           525 CALLS     4090 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1532        .70473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0210        21.997        .14161E-03   -1.5141    
   3  Prefactor     .10000E-03    1.5374        .81184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .84387        1.2582        .10225E-02   -1.5524    
   5  Prefactor     6.5578        14.450        .78389E-03   -1.5196    
   6  norm          1.3486        12.870        .19093E-02   -1.5476    
   7  Prefactor     .10000E-03    3.4448        .17733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1678        4.2234        .11786E-03   -1.5253    
   9  norm          .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.514        19.870        .86344E-04   -1.4780    
  11  Prefactor     12.666        32.172        .11234E-03   -1.4996    
  12  Prefactor     .10000E-03    25.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.762        .22843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0840        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .63111        .52023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2166        .97852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    67.432        .19405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3457        5.7233        .14960E-03   -1.5246    
  20  norm          .10000E-03    2.5774        .10557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.700        .22494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .44948        17.769        .23877E-02   -1.5574    
  25  Prefactor     .10000E-03    59.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2607        .20848        .18954E-03   -.84746    
  28  Prefactor     .55823        .21890        .31028E-03   -1.0937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1569e-08
Minuit parameter uncertainties:
  1  2.51774e-06
  2  22.0189
  3  3.32365e-06
  4  1.25821
  5  14.4573
  6  8.33413
  7  0.000129062
  8  4.22362
  9  0.000139558
  10  19.8759
  11  32.2164
  12  0.000466317
  13  0.00027028
  14  4.53826e-06
  15  1.78009e-06
  16  3.57647e-06
  17  0.00238103
  18  4.17861e-06
  19  5.72388
  20  4.11712e-07
  21  8.11408e-06
  22  8.10388e-05
  23  0.000255338
  24  5.65342
  25  0.000397299
  26  7.95929e-06
  27  0.208616
  28  0.219237
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.538e-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:  5.582e-01  2.192e-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.261e+00  2.086e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604248/likelihoodResults_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.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) = 4536.85117907
delta logL = -0.00115929654658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4536.85001973
delta logL = 4.23724486609e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1529       1.0000          .0000       10.000    
     3 'Normalizat'    1.2607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55822       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=   4536.850     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10062E-03    65.236        .13325E-02** at limit **
   2  Index         2.1098        5.8394        .50000        .19242E-04
   3  Normalizat    1.2607        .17106E-01    .18953E-03   -.43187E-05
   4  Prefactor     .55823        .19402E-01    .31028E-03   -.40304E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010062
  Index      = 2.10978
  Normalizat = 1.26073
  Prefactor  = 0.558228
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.850     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10062E-03    272.41        .26650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1098        7.5136        .50000       -.61633    
   3  Normalizat    1.2607        .37358E-01    .75814E-05   -.84746    
   4  Prefactor     .55823        .42361E-01    .12411E-04   -1.0937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.77809e-08
Minuit parameter uncertainties:
  1  0.0261212
  2  687.844
  3  0.037359
  4  0.0423636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604248': 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) = 4536.85001957
delta logL = 2.07654920814e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.006e-04  2.612e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.110e+00  6.878e+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:  5.582e-01  4.236e-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.261e+00  3.736e-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/604248/cmap_HighResolution_249436801_249696001_4FGL_J0957.8+3423_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-01 07:26:17.272240', job_id='604248', GAL2='0.56', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630506377.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='39' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:26:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 604248: <4FGL_J0957.8+3423_daily_bin39> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin39 149.471 34.3975 249436801 249696001 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 :                                   670.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             224.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

