/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 1 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 = 7207
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1592
RA = 149.471, Dec = 34.3975
tmin = 651974401, tmax = 652233601
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='926666', job_status='RUN', time_executed='2021-09-02 00:36:58.613578', time_epoch_executed='1630568218.61' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926666

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926666/ft1_4FGL_J0957.8+3423_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926666/ft2_4FGL_J0957.8+3423_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926666/ft1_4FGL_J0957.8+3423_daily_bin1592.fits outfile=/scratch/kocevski/926666/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1592.fits ra=149.471 dec=34.3975 rad=12.0 tmin=651974401.0 tmax=652233601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.46
user 3.17
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926666/ft1_filtered_4FGL_J0957.8+3423_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/926666/ft2_4FGL_J0957.8+3423_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/926666/ltcube_651974401_652233601_4FGL_J0957.8+3423_daily_bin1592.fits outfile=/scratch/kocevski/926666/expmap_651974401_652233601_4FGL_J0957.8+3423_daily_bin1592.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/926666/ltcube_651974401_652233601_4FGL_J0957.8+3423_daily_bin1592.fits
.....................!
real 192.77
user 187.32
sys 4.98

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/926666/ft1_filtered_4FGL_J0957.8+3423_daily_bin1592.fits scfile=/scratch/kocevski/926666/ft2_4FGL_J0957.8+3423_daily_bin1592.fits outfile=/scratch/kocevski/926666/cmap_651974401_652233601_4FGL_J0957.8+3423_daily_bin1592.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926666/ft1_filtered_4FGL_J0957.8+3423_daily_bin1592.fits scfile=/scratch/kocevski/926666/ft2_4FGL_J0957.8+3423_daily_bin1592.fits outfile=/scratch/kocevski/926666/cmap_HighResolution_651974401_652233601_4FGL_J0957.8+3423_daily_bin1592.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6259       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22224       1.0000         .10000E-03   10000.    
     4 'norm      '    .10580E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .48488       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12345E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14873E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5354       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19792E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11088E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    133.05       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7393       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9149       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0936       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=   6060.419     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3531 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6253        4.0436        .69701E-07   -.59038E-04
   2  Prefactor     .10000E-03    55.653       -.66901E-06** at limit **
   3  Prefactor     .22115        1.6841       -.31558E-06    .85679E-04
   4  norm          .13871E-01    .88351       -.83649E-07    .19654E-03
   5  Prefactor     .10000E-03    23.930        .10043E-05** at limit **
   6  norm          .48469        6.0347        .15015E-05   -.37669E-04
   7  Prefactor     .10000E-03    1.3548        .72297E-07** at limit **
   8  Prefactor     .10000E-03    3.3095        .24396E-06** at limit **
   9  norm          .10000E-03    6.1068       -.67548E-07** at limit **
  10  Prefactor     .10000E-03    11.229        .13245E-06** at limit **
  11  Prefactor     .10000E-03    8.4290       -.59502E-06** at limit **
  12  Prefactor     .10000E-03    56.740       -.58861E-06** at limit **
  13  Prefactor     .10000E-03    4.0638       -.47720E-06** at limit **
  14  Prefactor     .10000E-03    11.527        .63531E-07** at limit **
  15  Prefactor     .10000E-03    .64847        .53556E-07** at limit **
  16  norm          .10000E-03    6.7413        .36068E-06** at limit **
  17  Prefactor     4.5397        4.6452       -.46191E-06   -.58500E-03
  18  Prefactor     15.627        35.144        .59705E-05    .73546E-04
  19  Prefactor     .10000E-03    5.0117        .23490E-06** at limit **
  20  norm          .10000E-03    9.8286       -.17154E-05** at limit **
  21  Prefactor     133.06        76.965       -.63103E-06   -.63092E-04
  22  Prefactor     .10000E-03    18.827        .21474E-06** at limit **
  23  Prefactor     1.7388        2.5137       -.34586E-06   -.29505E-03
  24  Prefactor     2.9165        6.0875        .44908E-05   -.49287E-03
  25  Prefactor     .10000E-03    28.634       -.45351E-06** at limit **
  26  Prefactor     .10000E-03    18.014       -.20742E-06** at limit **
  27  Normalizat    1.2615        .18505        .86803E-06   -.16518E-03
  28  Prefactor     1.0930        .20684       -.32954E-05   -.34265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.62528
  Prefactor  = 0.0001
  Prefactor  = 0.221154
  norm       = 0.0138707
  Prefactor  = 0.0001
  norm       = 0.484686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.53973
  Prefactor  = 15.6268
  Prefactor  = 0.000100001
  norm       = 0.000100003
  Prefactor  = 133.056
  Prefactor  = 0.0001
  Prefactor  = 1.73882
  Prefactor  = 2.91648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26146
  Prefactor  = 1.09301
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.419     FROM HESSE     STATUS=OK           521 CALLS     4052 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6253        4.0432        .11818E-03   -1.5193    
   2  Prefactor     .10000E-03    56.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22115        8.9683        .19266E-02   -1.5614    
   4  norm          .13871E-01    1.5410        .27147E-01   -1.5684    
   5  Prefactor     .10000E-03    24.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .48469        6.0922        .36956E-03   -1.5569    
   7  Prefactor     .10000E-03    1.3948        .17639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4404        .27623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.1135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.172        .30146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .65128        .61216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.7994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5397        4.3885        .15069E-03   -1.5282    
  18  Prefactor     15.627        35.325        .10120E-03   -1.4917    
  19  Prefactor     .10000E-03    11.730        .30895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     133.06        76.988        .34911E-04   -1.3396    
  22  Prefactor     .10000E-03    18.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7388        2.4934        .14383E-03   -1.5444    
  24  Prefactor     2.9165        6.3048        .11898E-02   -1.5366    
  25  Prefactor     .10000E-03    28.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2615        .22317        .23200E-03   -.84724    
  28  Prefactor     1.0930        .24792        .28944E-03   -.89690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82462e-09
Minuit parameter uncertainties:
  1  4.04338
  2  7.21354e-06
  3  2.81646
  4  0.291352
  5  7.36995e-05
  6  3.43681
  7  5.91398e-06
  8  2.56769e-05
  9  4.95613e-08
  10  2.04971e-05
  11  2.62106e-05
  12  0.000208335
  13  0.000130953
  14  5.31679e-05
  15  2.58513e-06
  16  3.1389e-05
  17  4.38886
  18  35.3726
  19  0.000209772
  20  0.000337595
  21  77.0456
  22  2.05009e-06
  23  2.49353
  24  6.30625
  25  4.50488e-05
  26  1.26423e-05
  27  0.223341
  28  0.248184
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  5.317e-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:  1.093e+00  2.482e-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.233e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926666/likelihoodResults_651974401_652233601_4FGL_J0957.8+3423_daily_bin1592.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) = 6060.41903623
delta logL = -0.000407736332818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6060.41862887
delta logL = -3.77537617169e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11136E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2164       1.0000          .0000       10.000    
     3 'Normalizat'    1.2613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0932       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=   6060.419     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      220 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    265.20        .90712E-02** at limit **
   2  Index         2.2815        8.8590        .50000       -.45890E-04
   3  Normalizat    1.2615        .19060E-01    .52470E-01    .49684E-04
   4  Prefactor     1.0930        .22427E-01    .65433E-01    .66959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.28146
  Normalizat = 1.26145
  Prefactor  = 1.09301
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.419     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6740.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2815        7.8120        .50000       -.57485    
   3  Normalizat    1.2615        .19204        .23199E-03   -.84724    
   4  Prefactor     1.0930        .22568        .28944E-03   -.89690    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41845e-06
Minuit parameter uncertainties:
  1  0.0151418
  2  66.1063
  3  0.192145
  4  0.225882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926666': 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) = 6060.41862732
delta logL = 1.17867966765e-06

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.514e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.281e+00  6.611e+01  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:  1.093e+00  2.259e-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  1.921e-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/926666/cmap_HighResolution_651974401_652233601_4FGL_J0957.8+3423_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-02 00:50:35.645373', job_id='926666', GAL2='1.09', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630569035.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1592' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 00:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 926666: <4FGL_J0957.8+3423_daily_bin1592> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1592> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 00:36:02 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 00:36:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 00:36:49 2021
Terminated at Thu Sep  2 00:50:36 2021
Results reported at Thu Sep  2 00:50:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1592 149.471 34.3975 651974401 652233601 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 :                                   819.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            874 sec.

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

