/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin191
RA = 149.471, Dec = 34.3975
tmin = 288835201, tmax = 289094401
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='604455', job_status='RUN', time_executed='2021-09-01 07:13:09.744310', time_epoch_executed='1630505589.74' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604455

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604455/ft1_4FGL_J0957.8+3423_daily_bin191.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604455/ft2_4FGL_J0957.8+3423_daily_bin191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604455/ft1_4FGL_J0957.8+3423_daily_bin191.fits outfile=/scratch/kocevski/604455/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin191.fits ra=149.471 dec=34.3975 rad=12.0 tmin=288835201.0 tmax=289094401.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.26
user 3.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604455/ft1_filtered_4FGL_J0957.8+3423_daily_bin191.fits" evtable="EVENTS" scfile=/scratch/kocevski/604455/ft2_4FGL_J0957.8+3423_daily_bin191.fits sctable="SC_DATA" outfile=/scratch/kocevski/604455/ltcube_288835201_289094401_4FGL_J0957.8+3423_daily_bin191.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/604455/ft2_4FGL_J0957.8+3423_daily_bin191.fits
.....................!
real 18.37
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604455/ft1_filtered_4FGL_J0957.8+3423_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/604455/ft2_4FGL_J0957.8+3423_daily_bin191.fits sctable="SC_DATA" expcube=/scratch/kocevski/604455/ltcube_288835201_289094401_4FGL_J0957.8+3423_daily_bin191.fits outfile=/scratch/kocevski/604455/expmap_288835201_289094401_4FGL_J0957.8+3423_daily_bin191.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/604455/ltcube_288835201_289094401_4FGL_J0957.8+3423_daily_bin191.fits
.....................!
real 193.20
user 185.08
sys 4.53

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/604455/ft1_filtered_4FGL_J0957.8+3423_daily_bin191.fits scfile=/scratch/kocevski/604455/ft2_4FGL_J0957.8+3423_daily_bin191.fits outfile=/scratch/kocevski/604455/cmap_288835201_289094401_4FGL_J0957.8+3423_daily_bin191.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.54
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6165       1.0000         .10000E-03   10000.    
     4 'norm      '    .56516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6646       1.0000         .10000E-03   10000.    
     9 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6960       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3545       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2056       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7744       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4465       1.0000         .10000E-03   10000.    
    20 'norm      '    .13894E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.363       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0324       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11152E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.878       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75774       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=   5415.290     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2918 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5300        3.6829       -.81098E-07    .91738E-04
   2  Prefactor     .10001E-03    12.749       -.14680E-05** at limit **
   3  Prefactor     2.6148        3.2343       -.76105E-07    .23915E-04
   4  norm          .56689        1.1980       -.25203E-06    .48540E-04
   5  Prefactor     .10000E-03    11.451        .20332E-05** at limit **
   6  norm          1.5310        1.5097        .18234E-05    .38911E-03
   7  Prefactor     .10000E-03    1.6647       -.64648E-06** at limit **
   8  Prefactor     5.6612        4.3952        .34533E-06    .37455E-03
   9  norm          .10000E-03    6.2944       -.11000E-05** at limit **
  10  Prefactor     50.026        6.1432       -.80172E-06   -.14533E-02
  11  Prefactor     9.6926        11.197       -.11423E-04    .52178E-02
  12  Prefactor     9.2780        5.2225       -.67471E-05    .20746E-02
  13  Prefactor     28.611        4.7302        .38203E-05    .59977E-02
  14  Prefactor     5.4427        2.2824       -.35221E-05   -.64724E-03
  15  Prefactor     4.3537        3.1167       -.63487E-06   -.51457E-05
  16  norm          7.1708        1.3417       -.14722E-05   -.27030E-03
  17  Prefactor     2.2045        4.2665        .52187E-05    .83885E-03
  18  Prefactor     1.6281        128.90        .18291E-04   -.42241E-03
  19  Prefactor     4.4450        4.2188       -.40876E-05   -.90818E-03
  20  norm          .10059E-03    11.371        .20561E-04** at limit **
  21  Prefactor     1.6316        428.17       -.74766E-04    .36976E-03
  22  Prefactor     47.387        4.5097       -.65221E-06    .32704E-02
  23  Prefactor     6.0308        4.4061        .59301E-06    .46921E-03
  24  Prefactor     .10000E-03    5.5957        .11979E-05** at limit **
  25  Prefactor     .10049E-03    11.971       -.13756E-04** at limit **
  26  Prefactor     15.861        6.0965        .23753E-05   -.36099E-02
  27  Normalizat    .75842        .22327       -.14295E-05    .36793E-04
  28  Prefactor     1.0349        .24264        .11497E-05    .30467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52999
  Prefactor  = 0.000100006
  Prefactor  = 2.61483
  norm       = 0.566895
  Prefactor  = 0.000100001
  norm       = 1.53095
  Prefactor  = 0.0001
  Prefactor  = 5.66121
  norm       = 0.0001
  Prefactor  = 50.026
  Prefactor  = 9.6926
  Prefactor  = 9.27798
  Prefactor  = 28.6112
  Prefactor  = 5.44272
  Prefactor  = 4.35371
  norm       = 7.17079
  Prefactor  = 2.20446
  Prefactor  = 1.62813
  Prefactor  = 4.44497
  norm       = 0.000100587
  Prefactor  = 1.63159
  Prefactor  = 47.3867
  Prefactor  = 6.03082
  Prefactor  = 0.0001
  Prefactor  = 0.000100493
  Prefactor  = 15.8613
  Normalizat = 0.758422
  Prefactor  = 1.03491
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.290     FROM HESSE     STATUS=OK           591 CALLS     3509 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5300        3.7033        .47282E-02   -1.5282    
   2  Prefactor     .10001E-03    12.796        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6148        3.3065        .63039E-02   -1.5385    
   4  norm          .56689        1.4218        .27050E-01   -1.5557    
   5  Prefactor     .10000E-03    11.431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5310        10.406        .86314E-02   -1.5461    
   7  Prefactor     .10000E-03    1.5959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6612        4.5044        .42194E-02   -1.5232    
   9  norm          .10000E-03    6.2947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.026        36.910        .14172E-02   -1.4292    
  11  Prefactor     9.6926        25.652        .32173E-02   -1.5085    
  12  Prefactor     9.2780        42.395        .32859E-02   -1.5099    
  13  Prefactor     28.611        10.851        .18724E-02   -1.4638    
  14  Prefactor     5.4427        11.527        .43038E-02   -1.5241    
  15  Prefactor     4.3537        3.1641        .48256E-02   -1.5291    
  16  norm          7.1708        7.6868        .37447E-02   -1.5172    
  17  Prefactor     2.2045        4.4179        .69251E-02   -1.5411    
  18  Prefactor     1.6281        134.54        .78575E-02   -1.5453    
  19  Prefactor     4.4450        4.2740        .47741E-02   -1.5286    
  20  norm          .10059E-03    15.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6316        475.84        .76266E-02   -1.5452    
  22  Prefactor     47.387        36.167        .14566E-02   -1.4330    
  23  Prefactor     6.0308        4.4617        .40869E-02   -1.5217    
  24  Prefactor     .10000E-03    5.5439        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10049E-03    15.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.861        29.786        .25129E-02   -1.4911    
  27  Normalizat    .75842        .20090        .43056E-01   -1.0163    
  28  Prefactor     1.0349        .20494        .59005E-01   -.91575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05709e-07
Minuit parameter uncertainties:
  1  3.70345
  2  0.000566251
  3  3.30675
  4  1.42184
  5  0.00019414
  6  7.98433
  7  1.1219e-06
  8  4.50471
  9  1.85068e-05
  10  36.9264
  11  25.6811
  12  39.712
  13  10.852
  14  11.5317
  15  3.16427
  16  7.68783
  17  4.41853
  18  29.6688
  19  4.27426
  20  0.00594131
  21  56.1818
  22  36.1837
  23  4.46198
  24  7.65149e-06
  25  0.00550525
  26  29.8141
  27  0.201092
  28  0.205098
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.035e+00  2.051e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.584e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/604455/likelihoodResults_288835201_289094401_4FGL_J0957.8+3423_daily_bin191.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) = 5415.10372291
delta logL = 0.186415380259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5415.07790276
delta logL = 0.212235535515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6643       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7667       1.0000          .0000       10.000    
     3 'Normalizat'    .73699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   5415.078     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      224 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6507        121.34        .52753E-02    .45931E-03
   2  Index         2.7690        3.1663        .17026        .87955E-04
   3  Normalizat    .73671        .44213E-01    .42782E-01    .16137E-04
   4  Prefactor     1.0482        .50294E-01    .58663E-01   -.83970E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65074
  Index      = 2.76903
  Normalizat = 0.736708
  Prefactor  = 1.04817
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.078     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6507        9.6237        .17461E-03   -1.5326    
   2  Index         2.7690        1.1893        .62123E-02   -.46251    
   3  Normalizat    .73671        .20958        .26411E-03   -1.0246    
   4  Prefactor     1.0482        .23906        .25941E-03   -.91141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61423e-11
Minuit parameter uncertainties:
  1  9.62776
  2  1.20372
  3  0.209805
  4  0.239305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604455': 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) = 5415.077899
delta logL = 0.212239293377

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  3.651e+00  9.628e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.769e+00  1.204e+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.048e+00  2.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.367e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/604455/cmap_HighResolution_288835201_289094401_4FGL_J0957.8+3423_daily_bin191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-09-01 07:24:55.113917', job_id='604455', GAL2='1.05', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1630506295.11', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.12e-01', ts2='0.72', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='191' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:24:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 604455: <4FGL_J0957.8+3423_daily_bin191> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin191> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:59 2021
Job was executed on host(s) <bullet0160>, 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:24:55 2021
Results reported at Wed Sep  1 07:24:55 2021

Your job looked like:

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

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

