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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin445
RA = 149.471, Dec = 34.3975
tmin = 354672001, tmax = 354931201
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='606068', job_status='RUN', time_executed='2021-09-01 07:16:02.953110', time_epoch_executed='1630505762.95' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606068

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606068/ft1_4FGL_J0957.8+3423_daily_bin445.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606068/ft2_4FGL_J0957.8+3423_daily_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606068/ft1_4FGL_J0957.8+3423_daily_bin445.fits outfile=/scratch/kocevski/606068/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin445.fits ra=149.471 dec=34.3975 rad=12.0 tmin=354672001.0 tmax=354931201.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.35
user 3.15
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606068/ft1_filtered_4FGL_J0957.8+3423_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/606068/ft2_4FGL_J0957.8+3423_daily_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/606068/ltcube_354672001_354931201_4FGL_J0957.8+3423_daily_bin445.fits outfile=/scratch/kocevski/606068/expmap_354672001_354931201_4FGL_J0957.8+3423_daily_bin445.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/606068/ltcube_354672001_354931201_4FGL_J0957.8+3423_daily_bin445.fits
.....................!
real 190.22
user 185.06
sys 4.59

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/606068/ft1_filtered_4FGL_J0957.8+3423_daily_bin445.fits scfile=/scratch/kocevski/606068/ft2_4FGL_J0957.8+3423_daily_bin445.fits outfile=/scratch/kocevski/606068/cmap_354672001_354931201_4FGL_J0957.8+3423_daily_bin445.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.81
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606068/ft1_filtered_4FGL_J0957.8+3423_daily_bin445.fits scfile=/scratch/kocevski/606068/ft2_4FGL_J0957.8+3423_daily_bin445.fits outfile=/scratch/kocevski/606068/cmap_HighResolution_354672001_354931201_4FGL_J0957.8+3423_daily_bin445.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 2.45
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19198E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.997       1.0000         .10000E-03   10000.    
     6 'norm      '    10.022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.543       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16624E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0247       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2353       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.015       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7085       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .86909       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3135       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=   6061.048     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3644 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1569       -.32725E-07** at limit **
   2  Prefactor     .10000E-03    17.197       -.10635E-05** at limit **
   3  Prefactor     .40021E-01    1.9164       -.12417E-05    .11963E-02
   4  norm          1.1051        1.8625       -.85656E-07   -.19763E-03
   5  Prefactor     22.978        16.888        .46134E-06    .12467E-03
   6  norm          10.021        6.5725        .21826E-07    .12807E-03
   7  Prefactor     .10000E-03    .67213       -.13298E-07** at limit **
   8  Prefactor     11.544        5.6859       -.60213E-08    .83795E-04
   9  norm          .10000E-03    8.8917        .24437E-06** at limit **
  10  Prefactor     22.121        28.659        .75913E-07    .10509E-04
  11  Prefactor     .10000E-03    63.983        .50303E-05** at limit **
  12  Prefactor     7.9419        28.589       -.50734E-05   -.11515E-04
  13  Prefactor     .10000E-03    2.1996       -.50872E-07** at limit **
  14  Prefactor     .10000E-03    3.5280        .13808E-06** at limit **
  15  Prefactor     .10000E-03    1.1202       -.75485E-07** at limit **
  16  norm          .10000E-03    2.5126       -.44789E-07** at limit **
  17  Prefactor     .10000E-03    2.2048       -.82455E-08** at limit **
  18  Prefactor     2.0272        38.283        .10768E-04    .10724E-03
  19  Prefactor     4.2338        4.7419        .19591E-06    .82182E-04
  20  norm          .10000E-03    3.4834       -.14085E-06** at limit **
  21  Prefactor     38.028        67.833       -.15308E-05    .13492E-04
  22  Prefactor     .10000E-03    59.320       -.18984E-05** at limit **
  23  Prefactor     3.7080        3.0147        .25337E-08    .43994E-04
  24  Prefactor     .10000E-03    3.1165       -.75959E-07** at limit **
  25  Prefactor     .10000E-03    12.171        .90325E-07** at limit **
  26  Prefactor     .10000E-03    24.744        .13564E-05** at limit **
  27  Normalizat    .86907        .17848       -.91476E-06    .55412E-04
  28  Prefactor     1.3133        .20460        .91527E-06    .75273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0400213
  norm       = 1.10505
  Prefactor  = 22.9777
  norm       = 10.0205
  Prefactor  = 0.0001
  Prefactor  = 11.5444
  norm       = 0.0001
  Prefactor  = 22.1213
  Prefactor  = 0.000100003
  Prefactor  = 7.94188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0272
  Prefactor  = 4.23382
  norm       = 0.0001
  Prefactor  = 38.0278
  Prefactor  = 0.0001
  Prefactor  = 3.70802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.869068
  Prefactor  = 1.31332
 **********
 **   18 **HESSE 
 **********

 FCN=   6061.048     FROM HESSE     STATUS=OK           521 CALLS     4165 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1628        .81773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .40021E-01    34.076        .17583E-02   -1.5668    
   4  norm          1.1051        1.6341        .13137E-02   -1.5498    
   5  Prefactor     22.978        16.932        .83528E-04   -1.4749    
   6  norm          10.021        6.5706        .12657E-03   -1.5075    
   7  Prefactor     .10000E-03    .68486        .62281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.544        5.6355        .11791E-03   -1.5028    
   9  norm          .10000E-03    8.9123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.121        28.677        .85159E-04   -1.4767    
  11  Prefactor     .10000E-03    66.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9419        28.833        .14254E-03   -1.5144    
  13  Prefactor     .10000E-03    2.2191        .11275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5411        .14277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1724        .16083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5180        .12052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2308        .11247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0272        38.953        .14540E-02   -1.5423    
  19  Prefactor     4.2338        4.7502        .16588E-03   -1.5296    
  20  norm          .10000E-03    3.4944        .14190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.028        68.014        .65005E-04   -1.4474    
  22  Prefactor     .10000E-03    59.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7080        3.0132        .11793E-03   -1.5323    
  24  Prefactor     .10000E-03    3.1572        .13409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    24.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .86907        .21254        .25012E-03   -.97556    
  28  Prefactor     1.3133        .24413        .25629E-03   -.82912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36459e-08
Minuit parameter uncertainties:
  1  1.63708e-06
  2  1.41101e-05
  3  2.33401
  4  1.63417
  5  16.936
  6  6.57111
  7  9.62434e-07
  8  5.6358
  9  3.91084e-05
  10  28.6944
  11  0.000867704
  12  28.8833
  13  2.96144e-06
  14  5.22463e-06
  15  3.13754e-06
  16  2.11451e-06
  17  2.33976e-06
  18  17.7855
  19  4.75065
  20  2.57617e-07
  21  68.1533
  22  2.02174e-05
  23  3.01328
  24  5.55829e-06
  25  1.00913e-05
  26  7.90815e-05
  27  0.21274
  28  0.244339
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  5.225e-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.313e+00  2.443e-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.691e-01  2.127e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606068/likelihoodResults_354672001_354931201_4FGL_J0957.8+3423_daily_bin445.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) = 6061.04908048
delta logL = -0.00134050360066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6061.04773994
delta logL = 3.14439603244e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1551       1.0000          .0000       10.000    
     3 'Normalizat'    .86908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3133       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=   6061.048     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.432        .90712E-02** at limit **
   2  Index         2.1460        8.0428        .50000        .20863E-04
   3  Normalizat    .86907        .21011E-01    .44505E-01   -.33044E-04
   4  Prefactor     1.3133        .25962E-01    .57958E-01    .41874E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14598
  Normalizat = 0.869067
  Prefactor  = 1.31332
 **********
 **   18 **HESSE 
 **********

 FCN=   6061.048     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9127        .14327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1460        6.0639        .50000       -.60749    
   3  Normalizat    .86907        .19345        .25012E-03   -.97556    
   4  Prefactor     1.3133        .23904        .25629E-03   -.82912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45267e-10
Minuit parameter uncertainties:
  1  4.41366e-05
  2  4.30408
  3  0.193606
  4  0.239235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606068': 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) = 6061.04773988
delta logL = 9.45019564824e-08

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.414e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.146e+00  4.304e+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:  1.313e+00  2.392e-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.691e-01  1.936e-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/606068/cmap_HighResolution_354672001_354931201_4FGL_J0957.8+3423_daily_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-01 07:29:40.273612', job_id='606068', GAL2='1.31', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630506580.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='9.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='445' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:29:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 606068: <4FGL_J0957.8+3423_daily_bin445> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin445 149.471 34.3975 354672001 354931201 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 :                                   802.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

