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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1014
RA = 149.471, Dec = 34.3975
tmin = 502156801, tmax = 502416001
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='611267', job_status='RUN', time_executed='2021-09-01 07:31:30.152908', time_epoch_executed='1630506690.15' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611267

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611267/ft1_4FGL_J0957.8+3423_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611267/ft2_4FGL_J0957.8+3423_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611267/ft1_4FGL_J0957.8+3423_daily_bin1014.fits outfile=/scratch/kocevski/611267/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1014.fits ra=149.471 dec=34.3975 rad=12.0 tmin=502156801.0 tmax=502416001.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.09
user 3.78
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611267/ft2_4FGL_J0957.8+3423_daily_bin1014.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/611267/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/611267/ft1_filtered_4FGL_J0957.8+3423_daily_bin1014.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611267/ft1_filtered_4FGL_J0957.8+3423_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/611267/ft2_4FGL_J0957.8+3423_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/611267/ltcube_502156801_502416001_4FGL_J0957.8+3423_daily_bin1014.fits outfile=/scratch/kocevski/611267/expmap_502156801_502416001_4FGL_J0957.8+3423_daily_bin1014.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/611267/ltcube_502156801_502416001_4FGL_J0957.8+3423_daily_bin1014.fits
.....................!
real 190.31
user 185.17
sys 4.31

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/611267/ft1_filtered_4FGL_J0957.8+3423_daily_bin1014.fits scfile=/scratch/kocevski/611267/ft2_4FGL_J0957.8+3423_daily_bin1014.fits outfile=/scratch/kocevski/611267/cmap_502156801_502416001_4FGL_J0957.8+3423_daily_bin1014.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611267/ft1_filtered_4FGL_J0957.8+3423_daily_bin1014.fits scfile=/scratch/kocevski/611267/ft2_4FGL_J0957.8+3423_daily_bin1014.fits outfile=/scratch/kocevski/611267/cmap_HighResolution_502156801_502416001_4FGL_J0957.8+3423_daily_bin1014.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.00
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19722E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4758       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2819       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3520       1.0000         .10000E-03   10000.    
     9 'norm      '    17.124       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.012       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30250E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33849       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33989       1.0000         .10000E-03   10000.    
    16 'norm      '    11.016       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    87.087       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17736E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    93.902       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5756       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6022       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98599       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74945       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=   5453.371     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3576 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6201        3.6729        .13389E-07    .80501E-05
   2  Prefactor     .10000E-03    11.132        .34172E-06** at limit **
   3  Prefactor     .10001E-03    1.4553       -.26643E-06** at limit **
   4  norm          .10000E-03    .58331        .14437E-07** at limit **
   5  Prefactor     7.4813        12.686       -.17949E-06    .12840E-04
   6  norm          1.8238        5.5002        .87861E-06   -.46673E-04
   7  Prefactor     1.2826        1.5629        .13104E-08    .92452E-04
   8  Prefactor     9.3527        4.6373        .56380E-07    .22640E-05
   9  norm          17.123        14.743        .29216E-06   -.34482E-04
  10  Prefactor     17.027        23.922        .45733E-06    .43382E-04
  11  Prefactor     .10000E-03    6.5925        .24617E-06** at limit **
  12  Prefactor     .10000E-03    17.689       -.66216E-08** at limit **
  13  Prefactor     .10009E-03    4.0582       -.16598E-06** at limit **
  14  Prefactor     .32952        6.1360        .17155E-06   -.37363E-04
  15  Prefactor     .34025        1.5828        .28989E-06   -.20370E-03
  16  norm          11.022        9.8356       -.31199E-07    .25100E-04
  17  Prefactor     .10000E-03    1.0808        .50296E-08** at limit **
  18  Prefactor     87.069        41.939       -.17593E-05   -.14661E-03
  19  Prefactor     .10000E-03    1.8480        .19830E-06** at limit **
  20  norm          .10000E-03    2.7488       -.74529E-07** at limit **
  21  Prefactor     93.896        64.239       -.78864E-06   -.35073E-04
  22  Prefactor     5.5163        16.395       -.19065E-05   -.57286E-04
  23  Prefactor     1.6059        3.4139        .32838E-06   -.36162E-04
  24  Prefactor     .10000E-03    3.1449        .90980E-06** at limit **
  25  Prefactor     .10000E-03    27.611       -.46844E-07** at limit **
  26  Prefactor     .10000E-03    8.7644        .10388E-06** at limit **
  27  Normalizat    .98556        .16627        .13327E-06   -.10546E-03
  28  Prefactor     .74999        .18215       -.10859E-05    .15058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.62008
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 7.48127
  norm       = 1.82385
  Prefactor  = 1.28263
  Prefactor  = 9.35266
  norm       = 17.1233
  Prefactor  = 17.0267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100095
  Prefactor  = 0.329515
  Prefactor  = 0.340247
  norm       = 11.0215
  Prefactor  = 0.0001
  Prefactor  = 87.0694
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 93.8956
  Prefactor  = 5.51629
  Prefactor  = 1.60591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985556
  Prefactor  = 0.749993
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.371     FROM HESSE     STATUS=OK           533 CALLS     4109 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6201        3.6735        .89537E-04   -1.5121    
   2  Prefactor     .10000E-03    11.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    10.065        .16733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .58862        .55047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4813        12.557        .14668E-03   -1.5161    
   6  norm          1.8238        5.4224        .27621E-03   -1.5438    
   7  Prefactor     1.2826        1.5242        .96230E-04   -1.5481    
   8  Prefactor     9.3527        4.6433        .10488E-03   -1.5096    
   9  norm          17.123        14.734        .48393E-03   -1.4880    
  10  Prefactor     17.027        23.859        .97104E-04   -1.4882    
  11  Prefactor     .10000E-03    6.6053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    88.644        .27258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32952        25.277        .34958E-02   -1.5593    
  15  Prefactor     .34025        2.6748        .17163E-02   -1.5591    
  16  norm          11.022        9.7376        .12071E-03   -1.5044    
  17  Prefactor     .10000E-03    1.0897        .74878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     87.069        42.703        .43052E-04   -1.3839    
  19  Prefactor     .10000E-03    5.7363        .19385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7490        .11950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     93.896        64.495        .41474E-04   -1.3767    
  22  Prefactor     5.5163        16.370        .17014E-03   -1.5238    
  23  Prefactor     1.6059        3.3709        .18929E-03   -1.5455    
  24  Prefactor     .10000E-03    6.2904        .23635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.7700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .98556        .19418        .21143E-03   -.93516    
  28  Prefactor     .74999        .21022        .28036E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26916e-08
Minuit parameter uncertainties:
  1  3.67364
  2  1.69314e-05
  3  0.000615871
  4  1.5316e-07
  5  12.5613
  6  5.42383
  7  1.52423
  8  4.64345
  9  14.737
  10  23.8727
  11  1.1606e-05
  12  1.69556e-05
  13  0.00580284
  14  5.7737
  15  1.90782
  16  9.73895
  17  8.24853e-07
  18  42.7177
  19  4.81009e-05
  20  6.71225e-06
  21  64.5429
  22  16.3832
  23  3.37133
  24  6.12383e-05
  25  2.76389e-06
  26  4.81953e-06
  27  0.194314
  28  0.21044
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  3.295e-01  5.774e+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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.500e-01  2.104e-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:  9.856e-01  1.943e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611267/likelihoodResults_502156801_502416001_4FGL_J0957.8+3423_daily_bin1014.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): 0
logL (Free Index) = 5453.36982554
delta logL = 0.00122612741507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5453.36976135
delta logL = 0.00129031485449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32953       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3342       1.0000          .0000       10.000    
     3 'Normalizat'    .98516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75016       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=   5453.370     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      249 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33717        8.1436        .70793E-01    .46228E-03
   2  Index         2.3382        .81511        .50000        .36991E-05
   3  Normalizat    .98515        .61777E-02    .45981E-01   -.30823E-04
   4  Prefactor     .75013        .72756E-02    .63374E-01   -.70937E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.337173
  Index      = 2.3382
  Normalizat = 0.985153
  Prefactor  = 0.750134
 **********
 **   18 **HESSE 
 **********

 FCN=   5453.370     FROM HESSE     STATUS=OK            35 CALLS      284 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33717        33.216        .25957E-02   -1.5592    
   2  Index         2.3382        6.1548        .88118E-02   -.56139    
   3  Normalizat    .98515        .17713        .21147E-03   -.93529    
   4  Prefactor     .75013        .20769        .28034E-03   -1.0159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56237e-08
Minuit parameter uncertainties:
  1  6.69603
  2  4.72489
  3  0.177231
  4  0.207907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611267': 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) = 5453.36975826
delta logL = 0.00129340416515

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  3.372e-01  6.696e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.338e+00  4.725e+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:  7.501e-01  2.079e-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:  9.852e-01  1.772e-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/611267/cmap_HighResolution_502156801_502416001_4FGL_J0957.8+3423_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-01 07:44:24.664140', job_id='611267', GAL2='0.75', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630507464.66', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.29e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1014' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:44:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 611267: <4FGL_J0957.8+3423_daily_bin1014> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1014 149.471 34.3975 502156801 502416001 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

