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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1124
RA = 149.471, Dec = 34.3975
tmin = 530668801, tmax = 530928001
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='611439', job_status='RUN', time_executed='2021-09-01 07:31:20.863746', time_epoch_executed='1630506680.86' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611439

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611439/ft1_4FGL_J0957.8+3423_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611439/ft2_4FGL_J0957.8+3423_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611439/ft1_4FGL_J0957.8+3423_daily_bin1124.fits outfile=/scratch/kocevski/611439/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1124.fits ra=149.471 dec=34.3975 rad=12.0 tmin=530668801.0 tmax=530928001.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.12
user 3.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611439/ft1_filtered_4FGL_J0957.8+3423_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/611439/ft2_4FGL_J0957.8+3423_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/611439/ltcube_530668801_530928001_4FGL_J0957.8+3423_daily_bin1124.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/611439/ft2_4FGL_J0957.8+3423_daily_bin1124.fits
.....................!
real 13.09
user 12.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611439/ft1_filtered_4FGL_J0957.8+3423_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/611439/ft2_4FGL_J0957.8+3423_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/611439/ltcube_530668801_530928001_4FGL_J0957.8+3423_daily_bin1124.fits outfile=/scratch/kocevski/611439/expmap_530668801_530928001_4FGL_J0957.8+3423_daily_bin1124.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/611439/ltcube_530668801_530928001_4FGL_J0957.8+3423_daily_bin1124.fits
.....................!
real 192.93
user 187.04
sys 4.66

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/611439/ft1_filtered_4FGL_J0957.8+3423_daily_bin1124.fits scfile=/scratch/kocevski/611439/ft2_4FGL_J0957.8+3423_daily_bin1124.fits outfile=/scratch/kocevski/611439/cmap_530668801_530928001_4FGL_J0957.8+3423_daily_bin1124.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.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9701       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .63793       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68863       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2593       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52202E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5370       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6379       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93298E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .26862E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.935       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4425       1.0000         .10000E-03   10000.    
    20 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43212       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7715       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5570.182     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     2522 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9699        2.2091       -.35393E-07    .74816E-04
   2  Prefactor     .10000E-03    5.3503       -.19849E-04** at limit **
   3  Prefactor     .10000E-03    1.9774       -.10511E-06** at limit **
   4  norm          .63788        .74253        .11109E-05    .20357E-03
   5  Prefactor     .10000E-03    3.0511       -.33548E-05** at limit **
   6  norm          .10000E-03    2.2281       -.22490E-05** at limit **
   7  Prefactor     .68846        1.9004       -.62305E-06    .33260E-04
   8  Prefactor     3.2588        2.6188       -.10097E-05    .20494E-04
   9  norm          .10000E-03    5.0503       -.90431E-05** at limit **
  10  Prefactor     .10000E-03    11.834        .18632E-04** at limit **
  11  Prefactor     .10013E-03    215.36        .28912E-03** at limit **
  12  Prefactor     .10000E-03    48.750       -.77625E-04** at limit **
  13  Prefactor     7.5340        1.2192       -.16506E-05   -.33222E-02
  14  Prefactor     6.6342        1.1345       -.79241E-06   -.24859E-02
  15  Prefactor     .10042E-03    .89965        .21410E-05** at limit **
  16  norm          .10001E-03    55.262        .46899E-04** at limit **
  17  Prefactor     .10000E-03    3.0869       -.68626E-05** at limit **
  18  Prefactor     14.921        2.1672       -.25728E-05   -.17752E-02
  19  Prefactor     1.4392        4.5911        .23194E-05   -.89277E-04
  20  norm          .10000E-03    5.3199       -.19957E-04** at limit **
  21  Prefactor     .10017E-03    6250.1       -.17295E-03** at limit **
  22  Prefactor     .10000E-03    9.6419        .12534E-04** at limit **
  23  Prefactor     4.7710        4.0323       -.10270E-06    .18058E-03
  24  Prefactor     .10000E-03    2.0188        .68316E-06** at limit **
  25  Prefactor     .10000E-03    9.1465       -.22266E-04** at limit **
  26  Prefactor     .10000E-03    15.175       -.14275E-04** at limit **
  27  Normalizat    1.0450        .19457        .12603E-04    .24183E-03
  28  Prefactor     1.0356        .22897        .12688E-04    .18326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96994
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.637875
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.688459
  Prefactor  = 3.25885
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100125
  Prefactor  = 0.000100001
  Prefactor  = 7.53401
  Prefactor  = 6.63416
  Prefactor  = 0.000100417
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 14.9212
  Prefactor  = 1.43922
  norm       = 0.000100004
  Prefactor  = 0.000100165
  Prefactor  = 0.0001
  Prefactor  = 4.77101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.04496
  Prefactor  = 1.03556
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.182     FROM HESSE     STATUS=OK           603 CALLS     3125 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9699        2.2103        .58901E-02   -1.5363    
   2  Prefactor     .10000E-03    10.655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .63788        .76041        .11822E-01   -1.5548    
   5  Prefactor     .10000E-03    3.0587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .68846        1.9394        .12018E-01   -1.5542    
   8  Prefactor     3.2588        2.6260        .56081E-02   -1.5347    
   9  norm          .10000E-03    5.0499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10013E-03    21.748        .11430       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.694        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5340        6.5940        .36520E-02   -1.5159    
  14  Prefactor     6.6342        9.2594        .38938E-02   -1.5193    
  15  Prefactor     .10042E-03    1.0816        .57010E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    7.1836        .66828E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0444        .37909E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.921        30.228        .25910E-02   -1.4935    
  19  Prefactor     1.4392        4.9383        .89776E-02   -1.5468    
  20  norm          .10000E-03    10.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10017E-03    51.824        .15263       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.7489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7710        4.0592        .46048E-02   -1.5271    
  24  Prefactor     .10000E-03    1.9979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.1763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0450        .17295        .40913E-01   -.91539    
  28  Prefactor     1.0356        .19628        .59998E-01   -.91553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98802e-08
Minuit parameter uncertainties:
  1  2.21035
  2  0.000233454
  3  3.93717e-06
  4  0.76042
  5  3.12472e-05
  6  5.48611e-06
  7  1.93958
  8  2.62613
  9  5.31244e-05
  10  0.000479329
  11  0.00330477
  12  0.000382871
  13  6.59468
  14  9.2614
  15  0.00134382
  16  0.000477513
  17  1.77734e-05
  18  30.2594
  19  4.93974
  20  0.000395162
  21  0.00585685
  22  2.12586e-05
  23  4.05939
  24  1.60125e-06
  25  0.00010125
  26  0.000182777
  27  0.173044
  28  0.19642
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  6.634e+00  9.261e+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:  1.036e+00  1.964e-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.045e+00  1.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 8.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611439/likelihoodResults_530668801_530928001_4FGL_J0957.8+3423_daily_bin1124.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) = 5570.1711486
delta logL = 0.0109939769918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5570.1660399
delta logL = 0.016102676248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7230       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0129       1.0000          .0000       10.000    
     3 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0321       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=   5570.166     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7242        11.956        .14430E-03   -.79709E-03
   2  Index         2.0124        .83137        .10333E-01   -.21938E-03
   3  Normalizat    1.0488        .18907        .21899E-03    .32053E-03
   4  Prefactor     1.0320        .22781        .26571E-03    .34978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.72416
  Index      = 2.01238
  Normalizat = 1.04885
  Prefactor  = 1.03204
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.166     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7242        11.563        .57718E-05   -1.5152    
   2  Index         2.0124        .80413        .41333E-03   -.64041    
   3  Normalizat    1.0488        .18907        .43798E-04   -.91411    
   4  Prefactor     1.0320        .22785        .53141E-04   -.91669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29136e-09
Minuit parameter uncertainties:
  1  11.5664
  2  0.809618
  3  0.189191
  4  0.22806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611439': 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) = 5570.16603951
delta logL = 0.016103070946

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  7.724e+00  1.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.012e+00  8.096e-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.032e+00  2.281e-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.049e+00  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
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/611439/cmap_HighResolution_530668801_530928001_4FGL_J0957.8+3423_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-01 07:43:09.817017', job_id='611439', GAL2='1.03', fit_tolerance='1e-08', EG2='1.05', EG='1.04', time_epoch_completed='1630507389.82', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.61e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1124' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:43:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 611439: <4FGL_J0957.8+3423_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1124 149.471 34.3975 530668801 530928001 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

