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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin186
RA = 149.471, Dec = 34.3975
tmin = 287539201, tmax = 287798401
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='604450', job_status='RUN', time_executed='2021-09-01 07:11:15.254852', time_epoch_executed='1630505475.25' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604450/ft1_4FGL_J0957.8+3423_daily_bin186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604450/ft2_4FGL_J0957.8+3423_daily_bin186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604450/ft1_4FGL_J0957.8+3423_daily_bin186.fits outfile=/scratch/kocevski/604450/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin186.fits ra=149.471 dec=34.3975 rad=12.0 tmin=287539201.0 tmax=287798401.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.63
user 3.36
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604450/ft1_filtered_4FGL_J0957.8+3423_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/604450/ft2_4FGL_J0957.8+3423_daily_bin186.fits sctable="SC_DATA" expcube=/scratch/kocevski/604450/ltcube_287539201_287798401_4FGL_J0957.8+3423_daily_bin186.fits outfile=/scratch/kocevski/604450/expmap_287539201_287798401_4FGL_J0957.8+3423_daily_bin186.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/604450/ltcube_287539201_287798401_4FGL_J0957.8+3423_daily_bin186.fits
.....................!
real 192.87
user 185.58
sys 4.73

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/604450/ft1_filtered_4FGL_J0957.8+3423_daily_bin186.fits scfile=/scratch/kocevski/604450/ft2_4FGL_J0957.8+3423_daily_bin186.fits outfile=/scratch/kocevski/604450/cmap_287539201_287798401_4FGL_J0957.8+3423_daily_bin186.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.83
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604450/ft1_filtered_4FGL_J0957.8+3423_daily_bin186.fits scfile=/scratch/kocevski/604450/ft2_4FGL_J0957.8+3423_daily_bin186.fits outfile=/scratch/kocevski/604450/cmap_HighResolution_287539201_287798401_4FGL_J0957.8+3423_daily_bin186.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.97
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4752       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58556E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0804       1.0000         .10000E-03   10000.    
     9 'norm      '    9.8504       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.659       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8389       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3444       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45170E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2176       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.074       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7263       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1893       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80982       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5892.407     FROM MIGRAD    STATUS=CONVERGED   1249 CALLS     4094 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4758        3.8746        .76575E-03   -.18383E-02
   2  Prefactor     .10001E-03    95.265        .18142E-02** at limit **
   3  Prefactor     .10000E-03    1.9744        .20781E-03** at limit **
   4  norm          2.8212        1.7413        .76607E-04    .15434E-04
   5  Prefactor     .10025E-03    96.967        .50168E-02** at limit **
   6  norm          3.6995        6.4762        .20996E-03    .30392E-03
   7  Prefactor     .10000E-03    1.3456        .17057E-03** at limit **
   8  Prefactor     5.0805        4.6229        .14742E-03   -.93851E-04
   9  norm          9.8423        12.567        .12768E-03   -.59659E-04
  10  Prefactor     .10000E-03    39.863        .18142E-02** at limit **
  11  Prefactor     .10000E-03    19.129        .18142E-02** at limit **
  12  Prefactor     .10000E-03    99.593        .36285E-03** at limit **
  13  Prefactor     20.661        9.1317        .88121E-04   -.42832E-04
  14  Prefactor     .10000E-03    3.9949        .14938E-02** at limit **
  15  Prefactor     2.8389        2.5994        .11251E-03   -.91546E-04
  16  norm          6.3450        8.1003        .79678E-03   -.63186E-03
  17  Prefactor     1.6499        2.5639        .14203E-03    .49709E-04
  18  Prefactor     .10029E-03    35.525        .10885    ** at limit **
  19  Prefactor     3.2183        3.9724        .15433E-03   -.89207E-04
  20  norm          .10000E-03    8.6900        .18142E-02** at limit **
  21  Prefactor     .10000E-03    16.874        .18142E-02** at limit **
  22  Prefactor     35.059        25.035        .67666E-04    .15044E-03
  23  Prefactor     5.7260        3.7995        .11694E-03    .12444E-04
  24  Prefactor     .10000E-03    2.2904        .11282E-02** at limit **
  25  Prefactor     10.005        15.228        .12666E-03    .27646E-04
  26  Prefactor     .10000E-03    7.6307        .18142E-02** at limit **
  27  Normalizat    1.1891        .20789        .21542E-03   -.14882E-03
  28  Prefactor     .80996        .23220        .30261E-03    .88174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47575
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 2.82121
  Prefactor  = 0.000100252
  norm       = 3.69945
  Prefactor  = 0.0001
  Prefactor  = 5.08046
  norm       = 9.84231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.6612
  Prefactor  = 0.0001
  Prefactor  = 2.83892
  norm       = 6.34502
  Prefactor  = 1.6499
  Prefactor  = 0.000100291
  Prefactor  = 3.21826
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0592
  Prefactor  = 5.72596
  Prefactor  = 0.0001
  Prefactor  = 10.005
  Prefactor  = 0.0001
  Normalizat = 1.18911
  Prefactor  = 0.80996
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.407     FROM HESSE     STATUS=OK           501 CALLS     4595 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4758        3.8739        .30630E-04   -1.5335    
   2  Prefactor     .10001E-03    95.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9744        .41561E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8212        1.7413        .30643E-05   -1.5372    
   5  Prefactor     .10025E-03    98.231        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6995        6.4478        .83985E-05   -1.5323    
   7  Prefactor     .10000E-03    1.3456        .34115E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0805        4.6226        .58968E-05   -1.5257    
   9  norm          9.8423        12.568        .51071E-05   -1.5080    
  10  Prefactor     .10000E-03    39.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    99.597        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.661        9.1311        .35248E-05   -1.4799    
  14  Prefactor     .10000E-03    3.9955        .29877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8389        2.5992        .45005E-05   -1.5371    
  16  norm          6.3450        8.0990        .31871E-04   -1.5204    
  17  Prefactor     1.6499        2.5633        .56811E-05   -1.5451    
  18  Prefactor     .10029E-03    32.753        .11481       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2183        3.9714        .61733E-05   -1.5349    
  20  norm          .10000E-03    8.6933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.059        25.034        .13533E-04   -1.4523    
  23  Prefactor     5.7260        3.7994        .46776E-05   -1.5229    
  24  Prefactor     .10000E-03    2.2906        .22565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.005        15.228        .50663E-05   -1.5075    
  26  Prefactor     .10000E-03    7.6307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1891        .20802        .43084E-04   -.86940    
  28  Prefactor     .80996        .23241        .12104E-04   -.99362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05709e-09
Minuit parameter uncertainties:
  1  3.8742
  2  0.0017752
  3  1.09409e-05
  4  1.74131
  5  0.0099654
  6  6.44902
  7  1.56438e-06
  8  4.62289
  9  12.5709
  10  3.54758e-05
  11  5.99918e-05
  12  0.000672612
  13  9.13171
  14  1.21828e-05
  15  2.59931
  16  8.10039
  17  2.56347
  18  0.00617887
  19  3.97176
  20  1.69248e-05
  21  1.69369e-05
  22  25.0414
  23  3.79957
  24  3.63428e-05
  25  15.2338
  26  2.51502e-07
  27  0.208162
  28  0.232691
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.218e-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:  8.100e-01  2.327e-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.189e+00  2.082e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604450/likelihoodResults_287539201_287798401_4FGL_J0957.8+3423_daily_bin186.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) = 5892.40807895
delta logL = -0.00118948595627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5892.40688938
delta logL = 8.21592038847e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1461       1.0000          .0000       10.000    
     3 'Normalizat'    1.1891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80995       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5892.407     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10077E-03    40.569        .15130E-02** at limit **
   2  Index         2.1017        6.6600        .50000        .29974E-04
   3  Normalizat    1.1891        .13048E-01    .21542E-03   -.14303E-03
   4  Prefactor     .80996        .15491E-01    .30261E-03    .49966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100771
  Index      = 2.10172
  Normalizat = 1.18911
  Prefactor  = 0.809959
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.407     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10077E-03    175.39        .30260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1017        7.2186        .50000       -.61831    
   3  Normalizat    1.1891        .28228E-01    .43084E-04   -.86940    
   4  Prefactor     .80996        .33511E-01    .12104E-04   -.99362    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.03271e-08
Minuit parameter uncertainties:
  1  0.0233237
  2  395.55
  3  0.0282289
  4  0.0335123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604450': 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) = 5892.40688904
delta logL = 4.23471647082e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.008e-04  2.332e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.102e+00  3.955e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.100e-01  3.351e-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:  1.189e+00  2.823e-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/604450/cmap_HighResolution_287539201_287798401_4FGL_J0957.8+3423_daily_bin186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-09-01 07:25:23.799139', job_id='604450', GAL2='0.81', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630506323.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='186' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 604450: <4FGL_J0957.8+3423_daily_bin186> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin186> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:58 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:11:00 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:11:00 2021
Terminated at Wed Sep  1 07:25:24 2021
Results reported at Wed Sep  1 07:25:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin186 149.471 34.3975 287539201 287798401 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 :                                   835.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

