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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin417
RA = 149.471, Dec = 34.3975
tmin = 347414401, tmax = 347673601
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='606020', job_status='RUN', time_executed='2021-09-01 07:16:08.907831', time_epoch_executed='1630505768.91' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606020/ft1_4FGL_J0957.8+3423_daily_bin417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606020/ft2_4FGL_J0957.8+3423_daily_bin417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606020/ft1_4FGL_J0957.8+3423_daily_bin417.fits outfile=/scratch/kocevski/606020/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin417.fits ra=149.471 dec=34.3975 rad=12.0 tmin=347414401.0 tmax=347673601.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.44
user 3.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606020/ft1_filtered_4FGL_J0957.8+3423_daily_bin417.fits" evtable="EVENTS" scfile=/scratch/kocevski/606020/ft2_4FGL_J0957.8+3423_daily_bin417.fits sctable="SC_DATA" outfile=/scratch/kocevski/606020/ltcube_347414401_347673601_4FGL_J0957.8+3423_daily_bin417.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/606020/ft2_4FGL_J0957.8+3423_daily_bin417.fits
.....................!
real 11.86
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606020/ft1_filtered_4FGL_J0957.8+3423_daily_bin417.fits evtable="EVENTS" scfile=/scratch/kocevski/606020/ft2_4FGL_J0957.8+3423_daily_bin417.fits sctable="SC_DATA" expcube=/scratch/kocevski/606020/ltcube_347414401_347673601_4FGL_J0957.8+3423_daily_bin417.fits outfile=/scratch/kocevski/606020/expmap_347414401_347673601_4FGL_J0957.8+3423_daily_bin417.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/606020/ltcube_347414401_347673601_4FGL_J0957.8+3423_daily_bin417.fits
.....................!
real 189.91
user 185.26
sys 4.23

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/606020/ft1_filtered_4FGL_J0957.8+3423_daily_bin417.fits scfile=/scratch/kocevski/606020/ft2_4FGL_J0957.8+3423_daily_bin417.fits outfile=/scratch/kocevski/606020/cmap_347414401_347673601_4FGL_J0957.8+3423_daily_bin417.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.99
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606020/ft1_filtered_4FGL_J0957.8+3423_daily_bin417.fits scfile=/scratch/kocevski/606020/ft2_4FGL_J0957.8+3423_daily_bin417.fits outfile=/scratch/kocevski/606020/cmap_HighResolution_347414401_347673601_4FGL_J0957.8+3423_daily_bin417.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.63
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .86871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.8111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .52900E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92442       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.857       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.755       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32405E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.296       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79238       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0753       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=   5512.527     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3573 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0455       -.13995E-08** at limit **
   2  Prefactor     .10000E-03    16.381        .23308E-06** at limit **
   3  Prefactor     .10000E-03    1.5049        .10419E-07** at limit **
   4  norm          .86917        1.4489       -.11307E-06   -.27903E-03
   5  Prefactor     .10000E-03    44.289        .12960E-05** at limit **
   6  norm          3.1172        4.9888        .54146E-07   -.41684E-04
   7  Prefactor     .10000E-03    .64657        .21386E-06** at limit **
   8  Prefactor     .10000E-03    1.7122        .12254E-07** at limit **
   9  norm          8.8110        10.552        .42736E-06    .55431E-04
  10  Prefactor     .10000E-03    8.9770       -.81000E-08** at limit **
  11  Prefactor     6.0719        20.137       -.15556E-05   -.13923E-04
  12  Prefactor     .10000E-03    95.083       -.10140E-05** at limit **
  13  Prefactor     2.8177        3.9690        .64854E-07    .33136E-04
  14  Prefactor     19.315        12.673        .14393E-06    .29523E-04
  15  Prefactor     .10000E-03    1.1506       -.12739E-06** at limit **
  16  norm          .10000E-03    1.9557       -.12289E-07** at limit **
  17  Prefactor     .92211        2.8414       -.84127E-07   -.63585E-04
  18  Prefactor     2.0065        33.993        .58762E-05    .71395E-04
  19  Prefactor     .10000E-03    1.3242       -.17268E-07** at limit **
  20  norm          15.857        8.7955       -.22079E-07   -.18427E-03
  21  Prefactor     20.645        56.068        .77628E-05    .60736E-04
  22  Prefactor     .10000E-03    11.185        .12125E-06** at limit **
  23  Prefactor     .10050E-03    2.6515        .10085E-05** at limit **
  24  Prefactor     .10000E-03    2.4136       -.56189E-07** at limit **
  25  Prefactor     11.299        19.147        .15745E-06   -.52436E-04
  26  Prefactor     .10000E-03    12.603       -.31228E-06** at limit **
  27  Normalizat    .79285        .15980       -.72919E-06   -.72644E-04
  28  Prefactor     1.0749        .18338        .48999E-06   -.36918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.869173
  Prefactor  = 0.0001
  norm       = 3.11721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.81097
  Prefactor  = 0.0001
  Prefactor  = 6.07191
  Prefactor  = 0.000100001
  Prefactor  = 2.81774
  Prefactor  = 19.3149
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.922105
  Prefactor  = 2.00649
  Prefactor  = 0.0001
  norm       = 15.8572
  Prefactor  = 20.6453
  Prefactor  = 0.0001
  Prefactor  = 0.000100497
  Prefactor  = 0.0001
  Prefactor  = 11.2987
  Prefactor  = 0.0001
  Normalizat = 0.792854
  Prefactor  = 1.07487
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.527     FROM HESSE     STATUS=OK           521 CALLS     4094 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1346        .20731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5501        .17775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .86917        1.2579        .11236E-02   -1.5522    
   5  Prefactor     .10000E-03    45.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1172        4.9525        .20149E-03   -1.5355    
   7  Prefactor     .10000E-03    .89217        .11543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7515        .94803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.8110        10.541        .13503E-03   -1.5114    
  10  Prefactor     .10000E-03    8.9913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0719        20.010        .16232E-03   -1.5215    
  12  Prefactor     .10000E-03    95.079        .42259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8177        3.9510        .16947E-03   -1.5372    
  14  Prefactor     19.315        12.631        .91127E-04   -1.4829    
  15  Prefactor     .10000E-03    2.0489        .15352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9603        .10140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .92211        2.7895        .20506E-03   -1.5516    
  18  Prefactor     2.0065        34.496        .14603E-02   -1.5425    
  19  Prefactor     .10000E-03    1.3305        .83346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.857        8.7370        .10058E-03   -1.4911    
  21  Prefactor     20.645        56.148        .87917E-04   -1.4799    
  22  Prefactor     .10000E-03    11.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10050E-03    34.394        .19722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.4353        .11258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.299        19.056        .11920E-03   -1.5036    
  26  Prefactor     .10000E-03    12.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79285        .18128        .22460E-03   -1.0033    
  28  Prefactor     1.0749        .21133        .23860E-03   -.90274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3904e-08
Minuit parameter uncertainties:
  1  7.56918e-07
  2  9.25348e-06
  3  9.25044e-08
  4  1.25792
  5  5.99547e-05
  6  4.95319
  7  1.06034e-06
  8  1.50006e-06
  9  10.5427
  10  2.65853e-07
  11  20.0318
  12  0.000581061
  13  3.95135
  14  12.6324
  15  3.66209e-06
  16  5.61586e-07
  17  2.78992
  18  16.6501
  19  1.79833e-06
  20  8.73771
  21  56.2922
  22  7.64545e-07
  23  0.00827297
  24  5.24171e-06
  25  19.0665
  26  2.04821e-05
  27  0.181414
  28  0.21149
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.931e+01  1.263e+01  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.075e+00  2.115e-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:  7.929e-01  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.74e-05

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) = 5511.80378662
delta logL = 0.722885172969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5511.79371462
delta logL = 0.732957172688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8595       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7643       1.0000          .0000       10.000    
     3 'Normalizat'    .74296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1112       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=   5511.794     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8701        84.040        .31904E-02    .20046E-03
   2  Index         2.7637        2.4583        .88990E-01    .16338E-03
   3  Normalizat    .74291        .67989E-01    .42861E-01    .16102E-04
   4  Prefactor     1.1112        .73314E-01    .53188E-01    .11448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.87007
  Index      = 2.76372
  Normalizat = 0.742914
  Prefactor  = 1.11117
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.794     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8701        12.356        .11083E-03   -1.5080    
   2  Index         2.7637        .63704        .34938E-02   -.46370    
   3  Normalizat    .74291        .17888        .23111E-03   -1.0222    
   4  Prefactor     1.1112        .21298        .23516E-03   -.89110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41778e-11
Minuit parameter uncertainties:
  1  12.3589
  2  0.639218
  3  0.179016
  4  0.21314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606020': 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) = 5511.79371365
delta logL = 0.732958140962

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  9.870e+00  1.236e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.764e+00  6.392e-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.111e+00  2.131e-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:  7.429e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.95
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.76 +/- 0.64
Photon Flux (Free Index): 9.37e-08 +/- 5.20e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.22e-05

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/606020/cmap_HighResolution_347414401_347673601_4FGL_J0957.8+3423_daily_bin417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='2.15e-05', photon_flux_error='3.62e-08', dlogl='7.33e-01', energy_flux='2.67e-05', photon_flux2='9.37e-08', job_status='DONE', time_completed='2021-09-01 07:27:16.438400', photon_index_error2='0.64', photon_index2='2.76', ts='4.36', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.79', time_epoch_completed='1630506436.44', return_code='0', job_id='606020', GAL2='1.11', EG2='0.74', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.20e-08', ts2='5.95', photon_index='2.16' WHERE bin_id='417' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:27:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 606020: <4FGL_J0957.8+3423_daily_bin417> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin417> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 07:15:44 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:15:46 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:15:46 2021
Terminated at Wed Sep  1 07:27:17 2021
Results reported at Wed Sep  1 07:27:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin417 149.471 34.3975 347414401 347673601 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 :                                   654.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

