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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin985
RA = 149.471, Dec = 34.3975
tmin = 494640001, tmax = 494899201
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='611223', job_status='RUN', time_executed='2021-09-01 07:31:26.783050', time_epoch_executed='1630506686.78' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611223

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611223/ft1_4FGL_J0957.8+3423_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611223/ft2_4FGL_J0957.8+3423_daily_bin985.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611223/ft1_4FGL_J0957.8+3423_daily_bin985.fits outfile=/scratch/kocevski/611223/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin985.fits ra=149.471 dec=34.3975 rad=12.0 tmin=494640001.0 tmax=494899201.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.69
user 3.94
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611223/ft1_filtered_4FGL_J0957.8+3423_daily_bin985.fits" evtable="EVENTS" scfile=/scratch/kocevski/611223/ft2_4FGL_J0957.8+3423_daily_bin985.fits sctable="SC_DATA" outfile=/scratch/kocevski/611223/ltcube_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.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/611223/ft2_4FGL_J0957.8+3423_daily_bin985.fits
.....................!
real 13.06
user 12.42
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611223/ft1_filtered_4FGL_J0957.8+3423_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/611223/ft2_4FGL_J0957.8+3423_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/611223/ltcube_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.fits outfile=/scratch/kocevski/611223/expmap_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.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/611223/ltcube_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.fits
.....................!
real 191.17
user 185.56
sys 4.24

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/611223/ft1_filtered_4FGL_J0957.8+3423_daily_bin985.fits scfile=/scratch/kocevski/611223/ft2_4FGL_J0957.8+3423_daily_bin985.fits outfile=/scratch/kocevski/611223/cmap_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.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 1.04
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611223/ft1_filtered_4FGL_J0957.8+3423_daily_bin985.fits scfile=/scratch/kocevski/611223/ft2_4FGL_J0957.8+3423_daily_bin985.fits outfile=/scratch/kocevski/611223/cmap_HighResolution_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.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 1.03
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.033       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6823       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17566E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.226       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93055       1.0000         .10000E-03   10000.    
    16 'norm      '    35.269       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79163E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    19.258       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.421       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2661       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8862       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9739       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .81042       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2409       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=   5825.571     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3694 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2062       -.13076E-06** at limit **
   2  Prefactor     .10000E-03    17.405        .13340E-04** at limit **
   3  Prefactor     11.033        4.1929        .10179E-06   -.36886E-04
   4  norm          1.6836        1.7988        .14534E-06   -.78102E-04
   5  Prefactor     .10000E-03    24.038       -.52891E-05** at limit **
   6  norm          .10001E-03    5.7956       -.25880E-06** at limit **
   7  Prefactor     .10000E-03    1.1276        .91861E-07** at limit **
   8  Prefactor     .10000E-03    2.4961       -.73383E-06** at limit **
   9  norm          .10000E-03    7.9372       -.11619E-05** at limit **
  10  Prefactor     11.607        35.240        .32951E-04    .25268E-04
  11  Prefactor     .10000E-03    14.422        .37738E-05** at limit **
  12  Prefactor     52.258        40.924        .20187E-04   -.37980E-04
  13  Prefactor     19.561        9.0595       -.60409E-06   -.60352E-04
  14  Prefactor     .10000E-03    4.9122        .46380E-06** at limit **
  15  Prefactor     .93182        2.2048       -.90111E-06   -.13102E-02
  16  norm          35.278        13.230        .56211E-06   -.23026E-04
  17  Prefactor     1.5731        4.2092       -.30732E-06   -.14018E-02
  18  Prefactor     .10000E-03    15.900       -.12803E-04** at limit **
  19  Prefactor     .18107        3.3456        .13078E-05   -.15971E-03
  20  norm          19.243        11.196        .14996E-05    .68265E-04
  21  Prefactor     .10000E-03    46.158        .28736E-04** at limit **
  22  Prefactor     25.351        40.265       -.54973E-04    .72229E-04
  23  Prefactor     2.2679        4.0824        .73743E-06   -.26516E-03
  24  Prefactor     5.8764        5.4020        .86542E-05    .16628E-04
  25  Prefactor     .10004E-03    73.688       -.55504E-04** at limit **
  26  Prefactor     9.9795        23.966        .19360E-05   -.23096E-04
  27  Normalizat    .80980        .18355       -.79787E-05   -.17551E-03
  28  Prefactor     1.2410        .20895        .28753E-05   -.18715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0325
  norm       = 1.68362
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6074
  Prefactor  = 0.000100001
  Prefactor  = 52.2579
  Prefactor  = 19.5607
  Prefactor  = 0.0001
  Prefactor  = 0.931818
  norm       = 35.278
  Prefactor  = 1.57312
  Prefactor  = 0.0001
  Prefactor  = 0.181072
  norm       = 19.2427
  Prefactor  = 0.0001
  Prefactor  = 25.3507
  Prefactor  = 2.26791
  Prefactor  = 5.8764
  Prefactor  = 0.000100036
  Prefactor  = 9.97954
  Normalizat = 0.809795
  Prefactor  = 1.241
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.571     FROM HESSE     STATUS=OK           527 CALLS     4221 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2540        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.033        4.1515        .91977E-04   -1.5044    
   4  norm          1.6836        1.7716        .10136E-03   -1.5448    
   5  Prefactor     .10000E-03    24.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    31.389        .34982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0007        .15632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1619        .22979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.9659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.607        35.155        .11778E-03   -1.5026    
  11  Prefactor     .10000E-03    14.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.258        41.090        .55498E-04   -1.4261    
  13  Prefactor     19.561        9.0430        .90572E-04   -1.4823    
  14  Prefactor     .10000E-03    4.9404        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93182        2.1725        .16485E-03   -1.5515    
  16  norm          35.278        13.222        .67480E-04   -1.4519    
  17  Prefactor     1.5731        4.8523        .20208E-03   -1.5457    
  18  Prefactor     .10000E-03    15.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .18107        51.302        .21852E-02   -1.5623    
  20  norm          19.243        11.166        .91270E-04   -1.4830    
  21  Prefactor     .10000E-03    46.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.351        40.238        .79452E-04   -1.4701    
  23  Prefactor     2.2679        4.0510        .19308E-03   -1.5407    
  24  Prefactor     5.8764        5.4061        .13880E-03   -1.5223    
  25  Prefactor     .10004E-03    74.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.9795        23.954        .12688E-03   -1.5076    
  27  Normalizat    .80980        .21302        .13098E-02   -.99706    
  28  Prefactor     1.2410        .24577        .26246E-03   -.85079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82182e-09
Minuit parameter uncertainties:
  1  1.34357e-05
  2  1.63733e-05
  3  4.15166
  4  1.77163
  5  9.52583e-05
  6  0.000898977
  7  8.03425e-05
  8  3.57751e-05
  9  0.000105405
  10  35.2182
  11  0.000208149
  12  41.1118
  13  9.04366
  14  9.5718e-06
  15  2.17271
  16  13.2232
  17  4.85354
  18  2.12475e-05
  19  6.0993
  20  11.1676
  21  4.79736e-05
  22  40.2807
  23  4.05148
  24  5.4066
  25  0.00329103
  26  23.9773
  27  0.213241
  28  0.245995
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  9.572e-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:  1.241e+00  2.460e-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.098e-01  2.132e-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: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611223/likelihoodResults_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.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) = 5825.57167141
delta logL = -0.000962976365372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5825.57070842
delta logL = 1.4601937437e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1733       1.0000          .0000       10.000    
     3 'Normalizat'    .80981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2410       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=   5825.571     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    202.73        .90712E-02** at limit **
   2  Index         2.1827        5.2928        .50000       -.16625E-04
   3  Normalizat    .80979        .28681E-01    .43738E-01   -.44963E-04
   4  Prefactor     1.2410        .34930E-01    .59350E-01    .55444E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18273
  Normalizat = 0.809794
  Prefactor  = 1.241
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.571     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    438.54        .16570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1827        7.9036        .50000       -.59856    
   3  Normalizat    .80979        .45264E-01    .26197E-03   -.99706    
   4  Prefactor     1.2410        .55134E-01    .26246E-03   -.85079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.00817e-08
Minuit parameter uncertainties:
  1  0.000426754
  2  39.1064
  3  0.0452656
  4  0.055137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611223': 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) = 5825.57070837
delta logL = 7.13553163223e-08

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.268e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.183e+00  3.911e+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.241e+00  5.514e-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:  8.098e-01  4.527e-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/611223/cmap_HighResolution_494640001_494899201_4FGL_J0957.8+3423_daily_bin985.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-01 07:45:00.975399', job_id='611223', GAL2='1.24', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630507500.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='7.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='985' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 611223: <4FGL_J0957.8+3423_daily_bin985> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin985> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:30:27 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:30:28 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:30:28 2021
Terminated at Wed Sep  1 07:45:01 2021
Results reported at Wed Sep  1 07:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin985 149.471 34.3975 494640001 494899201 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 :                                   801.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

