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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin42
RA = 149.471, Dec = 34.3975
tmin = 250214401, tmax = 250473601
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='604253', job_status='RUN', time_executed='2021-09-01 07:14:25.011059', time_epoch_executed='1630505665.01' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604253

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604253/ft1_4FGL_J0957.8+3423_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604253/ft2_4FGL_J0957.8+3423_daily_bin42.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604253/ft1_filtered_4FGL_J0957.8+3423_daily_bin42.fits" evtable="EVENTS" scfile=/scratch/kocevski/604253/ft2_4FGL_J0957.8+3423_daily_bin42.fits sctable="SC_DATA" outfile=/scratch/kocevski/604253/ltcube_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.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/604253/ft2_4FGL_J0957.8+3423_daily_bin42.fits
.....................!
real 12.76
user 12.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604253/ft1_filtered_4FGL_J0957.8+3423_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/604253/ft2_4FGL_J0957.8+3423_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/604253/ltcube_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.fits outfile=/scratch/kocevski/604253/expmap_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.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/604253/ltcube_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.fits
.....................!
real 193.74
user 188.73
sys 4.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/604253/ft1_filtered_4FGL_J0957.8+3423_daily_bin42.fits scfile=/scratch/kocevski/604253/ft2_4FGL_J0957.8+3423_daily_bin42.fits outfile=/scratch/kocevski/604253/cmap_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.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.60
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604253/ft1_filtered_4FGL_J0957.8+3423_daily_bin42.fits scfile=/scratch/kocevski/604253/ft2_4FGL_J0957.8+3423_daily_bin42.fits outfile=/scratch/kocevski/604253/cmap_HighResolution_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.6204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22612       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11323E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.388       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.670       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .77538       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5640       1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5051       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .23301E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .87539       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89502       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=   4669.876     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     4100 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8495        3.4699       -.19905E-06    .86504E-05
   2  Prefactor     .10000E-03    21.273        .81412E-05** at limit **
   3  Prefactor     .10000E-03    1.7751       -.59795E-07** at limit **
   4  norm          .10000E-03    .63558       -.22249E-07** at limit **
   5  Prefactor     .10000E-03    15.506       -.13453E-05** at limit **
   6  norm          8.6333        7.9288       -.10505E-05   -.51921E-03
   7  Prefactor     .21515        1.7649        .21558E-05   -.79254E-03
   8  Prefactor     .10000E-03    .81932       -.21918E-07** at limit **
   9  norm          .10001E-03    16.815       -.75986E-05** at limit **
  10  Prefactor     4.2832        13.446       -.11490E-05   -.57064E-04
  11  Prefactor     31.246        34.545       -.22424E-04   -.87753E-04
  12  Prefactor     70.478        44.235       -.14803E-04   -.57136E-04
  13  Prefactor     18.669        8.5061       -.54788E-06    .10059E-03
  14  Prefactor     .10000E-03    3.0911       -.45680E-07** at limit **
  15  Prefactor     .77534        2.2804       -.13625E-05   -.11399E-02
  16  norm          .10000E-03    2.8043       -.27199E-07** at limit **
  17  Prefactor     .10000E-03    1.0413       -.45798E-07** at limit **
  18  Prefactor     .10000E-03    26.224       -.36794E-05** at limit **
  19  Prefactor     6.5612        4.6567        .68731E-06   -.21562E-04
  20  norm          .10000E-03    4.0523       -.47764E-07** at limit **
  21  Prefactor     .10000E-03    37.772       -.84792E-06** at limit **
  22  Prefactor     .10000E-03    15.017        .66404E-05** at limit **
  23  Prefactor     .10000E-03    1.8693       -.86526E-07** at limit **
  24  Prefactor     7.5049        5.5587        .82275E-06   -.91091E-04
  25  Prefactor     .10000E-03    10.502       -.51727E-06** at limit **
  26  Prefactor     .11187E-03    14.261       -.30514E-05** at limit **
  27  Normalizat    .87546        .17461        .48994E-05   -.25033E-03
  28  Prefactor     .89506        .19540        .39570E-07    .68890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.84948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.63329
  Prefactor  = 0.215152
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 4.28325
  Prefactor  = 31.2463
  Prefactor  = 70.4783
  Prefactor  = 18.6685
  Prefactor  = 0.0001
  Prefactor  = 0.775341
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56121
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5049
  Prefactor  = 0.0001
  Prefactor  = 0.000111867
  Normalizat = 0.87546
  Prefactor  = 0.895062
 **********
 **   18 **HESSE 
 **********

 FCN=   4669.876     FROM HESSE     STATUS=OK           521 CALLS     4621 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8495        3.4764        .11679E-03   -1.5316    
   2  Prefactor     .10000E-03    21.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7872        .88768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .64311        .53195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.6333        7.9194        .13653E-03   -1.5120    
   7  Prefactor     .21515        10.534        .16532E-02   -1.5615    
   8  Prefactor     .10000E-03    .82086        .60404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    16.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2832        13.430        .19464E-03   -1.5294    
  11  Prefactor     31.246        34.507        .71649E-04   -1.4589    
  12  Prefactor     70.478        44.252        .47847E-04   -1.4027    
  13  Prefactor     18.669        8.4952        .92694E-04   -1.4844    
  14  Prefactor     .10000E-03    3.0970        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .77534        2.2720        .16596E-03   -1.5532    
  16  norm          .10000E-03    2.8197        .11175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.0433        .68064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5612        4.6703        .11692E-03   -1.5196    
  20  norm          .10000E-03    4.0755        .13433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8863        .91208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.5049        5.5568        .13158E-03   -1.5160    
  25  Prefactor     .10000E-03    10.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11187E-03    22.746        .94946E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .87546        .20206        .22083E-03   -.97328    
  28  Prefactor     .89506        .22696        .25815E-03   -.96314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0973e-09
Minuit parameter uncertainties:
  1  3.47659
  2  1.62403e-05
  3  4.19979e-06
  4  2.45668e-06
  5  1.30602e-05
  6  7.92036
  7  3.01079
  8  2.23279e-06
  9  0.000998683
  10  13.4395
  11  34.5287
  12  44.2731
  13  8.49577
  14  2.17308e-06
  15  2.2722
  16  6.2409e-06
  17  4.92711e-06
  18  5.69562e-05
  19  4.67058
  20  9.97259e-06
  21  0.000110036
  22  6.57499e-05
  23  9.87462e-06
  24  5.55714
  25  1.86702e-05
  26  0.0328715
  27  0.202238
  28  0.2272
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.173e-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:  8.951e-01  2.272e-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:  8.755e-01  2.022e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604253/likelihoodResults_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.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) = 4669.87749391
delta logL = -0.0015280556363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4669.8759658
delta logL = 5.4110387282e-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.1545       1.0000          .0000       10.000    
     3 'Normalizat'    .87548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89506       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=   4669.876     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      235 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5543        .11778E-02** at limit **
   2  Index         2.1448        5.9014        .50000        .25378E-04
   3  Normalizat    .87546        .18875        .22082E-03   -.16475E-05
   4  Prefactor     .89506        .22407        .25815E-03   -.61655E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.14481
  Normalizat = 0.875464
  Prefactor  = 0.895057
 **********
 **   18 **HESSE 
 **********

 FCN=   4669.876     FROM HESSE     STATUS=OK            29 CALLS      264 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1832        .23556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1448        6.0696        .50000       -.60777    
   3  Normalizat    .87546        .18893        .88330E-05   -.97328    
   4  Prefactor     .89506        .22428        .10326E-04   -.96314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51199e-09
Minuit parameter uncertainties:
  1  0.000160764
  2  4.14814
  3  0.189077
  4  0.224515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604253': 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) = 4669.87596573
delta logL = 1.2218424672e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.608e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.145e+00  4.148e+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:  8.951e-01  2.245e-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:  8.755e-01  1.891e-01  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/604253/cmap_HighResolution_250214401_250473601_4FGL_J0957.8+3423_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-09-01 07:26:34.944683', job_id='604253', GAL2='0.90', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630506394.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='42' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:26:34 PDT 2021


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

Job <4FGL_J0957.8+3423_daily_bin42> 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) <bullet0150>, 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:35 2021
Results reported at Wed Sep  1 07:26:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin42 149.471 34.3975 250214401 250473601 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

