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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1253
RA = 145.494, Dec = 27.4136
tmin = 564105601, tmax = 564364801
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='439215', job_status='RUN', time_executed='2021-08-31 22:50:41.424886', time_epoch_executed='1630475441.42' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439215/ft1_4FGL_J0941.9+2724_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439215/ft1_4FGL_J0941.9+2724_daily_bin1253.fits outfile=/scratch/kocevski/439215/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1253.fits ra=145.494 dec=27.4136 rad=12.0 tmin=564105601.0 tmax=564364801.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.34
user 3.06
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.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/439215/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1253.fits evtable="EVENTS" outfile="/scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/439215/ltcube_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.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/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits
.....................!
real 11.93
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/439215/ltcube_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.fits outfile=/scratch/kocevski/439215/expmap_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.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/439215/ltcube_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.fits
.....................!
real 191.17
user 185.81
sys 4.85

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J0941.9+2724 @ 145.494 27.4136

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits scfile=/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits outfile=/scratch/kocevski/439215/cmap_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.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=145.494 yref=27.4136 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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits scfile=/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits outfile=/scratch/kocevski/439215/cmap_HighResolution_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.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=145.494 yref=27.4136 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439215/Model_4FGL_J0941.9+2724_daily_bin1253.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/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits.....................!
real 57.43
user 56.03
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits', '/scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits', expMap='/scratch/kocevski/439215/expmap_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.fits', expCube='/scratch/kocevski/439215/ltcube_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439215/Model_4FGL_J0941.9+2724_daily_bin1253.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.9+2724'

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  6.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/439215/ft1_filtered_4FGL_J0941.9+2724_daily_bin1253.fits
Spacecraft file(s): /scratch/kocevski/439215/ft2_4FGL_J0941.9+2724_daily_bin1253.fits
Exposure map: /scratch/kocevski/439215/expmap_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.fits
Exposure cube: /scratch/kocevski/439215/ltcube_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439215/Model_4FGL_J0941.9+2724_daily_bin1253.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) = 6641.36762823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.995       1.0000         .10000E-03   10000.    
     3 'norm      '    23.281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2764       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1936       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16223E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.943       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.890       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9264       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6641.211     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1810 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.583        .52729E-05** at limit **
   2  Prefactor     17.995        13.657        .46639E-06    .18675E-03
   3  norm          23.181        42.883       -.44217E-04    .49639E-05
   4  Prefactor     1.2767        3.0008       -.14583E-05   -.95086E-03
   5  norm          1.1933        1.1298       -.27925E-07    .70408E-03
   6  Prefactor     .10000E-03    20.557        .21715E-04** at limit **
   7  Prefactor     .10036E-03    1.9489       -.14237E-05** at limit **
   8  Prefactor     47.944        29.661       -.20817E-05    .20446E-03
   9  Prefactor     .10000E-03    46.452        .26498E-05** at limit **
  10  Prefactor     49.890        37.440       -.23486E-05    .67849E-05
  11  Prefactor     .10000E-03    1.7839       -.26622E-06** at limit **
  12  Prefactor     .10000E-03    4.4537       -.12248E-06** at limit **
  13  Prefactor     .10000E-03    .89191       -.34337E-07** at limit **
  14  norm          5.1327        6.3022        .73188E-06   -.14298E-03
  15  Prefactor     1.8309        2.4141       -.28265E-06   -.45978E-03
  16  Prefactor     .10002E-03    249.01        .38429E-04** at limit **
  17  Prefactor     1.9269        3.0969       -.40679E-06   -.50536E-03
  18  Prefactor     .10000E-03    23.336       -.15166E-04** at limit **
  19  Normalizat    1.0090        .15978        .21875E-07    .55050E-03
  20  Prefactor     1.0692        .16740        .46608E-05    .51448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 17.9947
  norm       = 23.1809
  Prefactor  = 1.27669
  norm       = 1.19325
  Prefactor  = 0.0001
  Prefactor  = 0.000100358
  Prefactor  = 47.9444
  Prefactor  = 0.0001
  Prefactor  = 49.8895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.13267
  Prefactor  = 1.83095
  Prefactor  = 0.000100018
  Prefactor  = 1.92687
  Prefactor  = 0.0001
  Normalizat = 1.00903
  Prefactor  = 1.06915
 **********
 **   18 **HESSE 
 **********

 FCN=   6641.211     FROM HESSE     STATUS=OK           287 CALLS     2097 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.995        13.638        .94416E-04   -1.4859    
   3  norm          23.181        43.044        .83016E-04   -1.4745    
   4  Prefactor     1.2767        2.9751        .20803E-03   -1.5482    
   5  norm          1.1933        1.1248        .41649E-04   -1.5489    
   6  Prefactor     .10000E-03    20.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10036E-03    17.237        .21237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.944        29.590        .57911E-04   -1.4322    
   9  Prefactor     .10000E-03    46.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     49.890        37.442        .56776E-04   -1.4294    
  11  Prefactor     .10000E-03    1.7881        .10628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4879        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .91041        .75101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1327        6.2939        .17744E-03   -1.5255    
  15  Prefactor     1.8309        2.3801        .13660E-03   -1.5437    
  16  Prefactor     .10002E-03    258.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9269        3.0584        .17132E-03   -1.5430    
  18  Prefactor     .10000E-03    23.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0090        .18646        .24055E-03   -.92728    
  20  Prefactor     1.0692        .19619        .24648E-03   -.90459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21907e-08
Minuit parameter uncertainties:
  1  0.000195333
  2  13.6403
  3  43.1012
  4  2.9754
  5  1.12481
  6  0.000121293
  7  0.00497159
  8  29.5995
  9  5.42508e-05
  10  37.4595
  11  3.37993e-06
  12  1.54472e-05
  13  5.93005e-06
  14  6.29469
  15  2.38025
  16  0.00428449
  17  3.0586
  18  2.60449e-05
  19  0.186579
  20  0.196324
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  4.794e+01  2.960e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.069e+00  1.963e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.009e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.15
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.12e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.19e-05

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) = 6641.08763722
delta logL = 0.123705741873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6641.08173999
delta logL = 0.129602967158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.829       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7387       1.0000          .0000       10.000    
     3 'Normalizat'    .98564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   6641.082     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      297 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.837        32.773        .63513E-04    .93079E-05
   2  Index         2.7390        .65125        .62088E-02    .51607E-03
   3  Normalizat    .98561        .18994        .24298E-03   -.75516E-04
   4  Prefactor     1.0839        .19428        .24499E-03   -.72623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.8368
  Index      = 2.73905
  Normalizat = 0.985613
  Prefactor  = 1.08387
 **********
 **   18 **HESSE 
 **********

 FCN=   6641.082     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.837        30.878        .25405E-05   -1.4445    
   2  Index         2.7390        .61289        .12418E-02   -.46922    
   3  Normalizat    .98561        .18973        .97193E-05   -.93514    
   4  Prefactor     1.0839        .19422        .97996E-05   -.89984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61098e-11
Minuit parameter uncertainties:
  1  30.8901
  2  0.614833
  3  0.189861
  4  0.194342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439215': 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) = 6641.08173931
delta logL = 0.12960365098

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  3.984e+01  3.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.739e+00  6.148e-01  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.084e+00  1.943e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.856e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.45
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.74 +/- 0.61
Photon Flux (Free Index): 8.07e-08 +/- 5.64e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.05e-05

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/439215/cmap_HighResolution_564105601_564364801_4FGL_J0941.9+2724_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.12e-08', energy_flux2='1.88e-05', photon_flux_error='3.77e-08', dlogl='1.30e-01', energy_flux='1.92e-05', photon_flux2='8.07e-08', job_status='DONE', time_completed='2021-08-31 22:59:50.652421', photon_index_error2='0.61', photon_index2='2.74', ts='6.15', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.01', time_epoch_completed='1630475990.65', return_code='0', job_id='439215', GAL2='1.08', EG2='0.99', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.64e-08', ts2='6.45', photon_index='2.43' WHERE bin_id='1253' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:59:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 439215: <4FGL_J0941.9+2724_daily_bin1253> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1253> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 22:50:31 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:50:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 22:50:33 2021
Terminated at Tue Aug 31 22:59:51 2021
Results reported at Tue Aug 31 22:59:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1253 145.494 27.4136 564105601 564364801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.9+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   543.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             316.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            560 sec.

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

