/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 188 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 = 7436
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin72
RA = 145.494, Dec = 27.4136
tmin = 257990401, tmax = 258249601
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='432689', job_status='RUN', time_executed='2021-08-31 22:34:25.019383', time_epoch_executed='1630474465.02' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432689/ft1_4FGL_J0941.9+2724_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432689/ft1_4FGL_J0941.9+2724_daily_bin72.fits outfile=/scratch/kocevski/432689/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin72.fits ra=145.494 dec=27.4136 rad=12.0 tmin=257990401.0 tmax=258249601.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 1.56
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.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/432689/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/432689/ft1_filtered_4FGL_J0941.9+2724_daily_bin72.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.61
user 0.31
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432689/ft1_filtered_4FGL_J0941.9+2724_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/432689/ltcube_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.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/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits
.....................!
real 13.58
user 12.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432689/ft1_filtered_4FGL_J0941.9+2724_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/432689/ltcube_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.fits outfile=/scratch/kocevski/432689/expmap_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.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/432689/ltcube_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.fits
.....................!
real 191.80
user 185.36
sys 5.62

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/432689/ft1_filtered_4FGL_J0941.9+2724_daily_bin72.fits scfile=/scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits outfile=/scratch/kocevski/432689/cmap_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.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.57
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432689/ft1_filtered_4FGL_J0941.9+2724_daily_bin72.fits scfile=/scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits outfile=/scratch/kocevski/432689/cmap_HighResolution_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.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.51
user 0.36
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432689/ft1_filtered_4FGL_J0941.9+2724_daily_bin72.fits', '/scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits', expMap='/scratch/kocevski/432689/expmap_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.fits', expCube='/scratch/kocevski/432689/ltcube_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432689/Model_4FGL_J0941.9+2724_daily_bin72.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/432689/ft1_filtered_4FGL_J0941.9+2724_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/432689/ft2_4FGL_J0941.9+2724_daily_bin72.fits
Exposure map: /scratch/kocevski/432689/expmap_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.fits
Exposure cube: /scratch/kocevski/432689/ltcube_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432689/Model_4FGL_J0941.9+2724_daily_bin72.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) = 6217.9629778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.7991       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.567       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21745E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    28.259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .75628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33988E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87054       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0577       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=   6217.954     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2049 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9423        9.2082        .25988E-06    .11676E-03
   2  Prefactor     .10000E-03    6.4828        .12725E-05** at limit **
   3  norm          9.7897        30.332       -.97941E-06   -.53315E-04
   4  Prefactor     .10000E-03    1.9176        .11191E-05** at limit **
   5  norm          1.8549        1.2593        .41181E-08   -.12996E-03
   6  Prefactor     .10000E-03    21.914        .67924E-06** at limit **
   7  Prefactor     2.6903        3.3678       -.62907E-06   -.79433E-03
   8  Prefactor     51.246        30.972        .53407E-06    .16798E-03
   9  Prefactor     52.213        49.860       -.46466E-06   -.75591E-04
  10  Prefactor     41.592        34.655       -.54149E-06   -.12642E-03
  11  Prefactor     .10000E-03    1.2274       -.92501E-06** at limit **
  12  Prefactor     .10000E-03    2.8369        .34956E-06** at limit **
  13  Prefactor     .10007E-03    1.1487       -.10637E-05** at limit **
  14  norm          28.263        10.055        .71530E-07    .22731E-03
  15  Prefactor     .75947        3.5898        .29672E-05   -.14196E-03
  16  Prefactor     .10000E-03    20.013        .12929E-06** at limit **
  17  Prefactor     .10000E-03    5.6602        .42068E-05** at limit **
  18  Prefactor     .10000E-03    19.521        .50698E-06** at limit **
  19  Normalizat    .87055        .16803        .90200E-06    .12210E-03
  20  Prefactor     1.0577        .16976       -.63547E-06    .82551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94235
  Prefactor  = 0.000100001
  norm       = 9.78965
  Prefactor  = 0.000100001
  norm       = 1.85486
  Prefactor  = 0.0001
  Prefactor  = 2.6903
  Prefactor  = 51.2464
  Prefactor  = 52.2135
  Prefactor  = 41.5921
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  norm       = 28.2633
  Prefactor  = 0.759468
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.87055
  Prefactor  = 1.05766
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.954     FROM HESSE     STATUS=OK           293 CALLS     2342 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9423        9.1942        .76134E-03   -1.5181    
   2  Prefactor     .10000E-03    6.6024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.7897        30.404        .12801E-03   -1.5082    
   4  Prefactor     .10000E-03    2.0138        .10831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8549        1.2601        .70650E-04   -1.5436    
   6  Prefactor     .10000E-03    21.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6903        3.3900        .15378E-03   -1.5380    
   8  Prefactor     51.246        31.015        .56039E-04   -1.4275    
   9  Prefactor     52.213        49.896        .27761E-03   -1.4262    
  10  Prefactor     41.592        34.679        .62176E-04   -1.4417    
  11  Prefactor     .10000E-03    1.2800        .87062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8477        .12981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10007E-03    22.391        .14801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.263        10.054        .75364E-04   -1.4644    
  15  Prefactor     .75947        3.6659        .13885E-02   -1.5534    
  16  Prefactor     .10000E-03    20.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0338        .25676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87055        .18768        .24134E-03   -.97503    
  20  Prefactor     1.0577        .19374        .23442E-03   -.90832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4292e-09
Minuit parameter uncertainties:
  1  9.19609
  2  0.000184141
  3  30.4525
  4  8.81212e-05
  5  1.26013
  6  0.0001661
  7  3.39025
  8  31.0244
  9  49.9357
  10  34.6955
  11  6.02132e-05
  12  2.9734e-05
  13  0.00254891
  14  10.0543
  15  3.33726
  16  3.10371e-05
  17  0.000293983
  18  0.000127595
  19  0.187825
  20  0.193873
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  5.125e+01  3.102e+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.058e+00  1.939e-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:  8.706e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.24e-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) = 6217.91263564
delta logL = 0.0411124478724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6217.91145387
delta logL = 0.0422942170007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.417       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5806       1.0000          .0000       10.000    
     3 'Normalizat'    .86169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0640       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=   6217.911     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      288 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.431        36.576        .59493E-04    .55799E-04
   2  Index         2.5812        .54527        .55761E-02    .35321E-03
   3  Normalizat    .86162        .18386        .24245E-03   -.48298E-05
   4  Prefactor     1.0640        .19212        .23381E-03   -.69919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4312
  Index      = 2.58119
  Normalizat = 0.861617
  Prefactor  = 1.06395
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.911     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.431        35.240        .23797E-05   -1.4359    
   2  Index         2.5812        .52488        .11152E-02   -.50495    
   3  Normalizat    .86162        .18395        .96979E-05   -.97822    
   4  Prefactor     1.0640        .19221        .93526E-05   -.90627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14338e-11
Minuit parameter uncertainties:
  1  35.2559
  2  0.526145
  3  0.184079
  4  0.192338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432689': 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) = 6217.91145197
delta logL = 0.0422961178438

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  4.543e+01  3.526e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.581e+00  5.261e-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.064e+00  1.923e-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:  8.616e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.58 +/- 0.53
Photon Flux (Free Index): 7.22e-08 +/- 4.73e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.21e-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/432689/cmap_HighResolution_257990401_258249601_4FGL_J0941.9+2724_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='1.93e-05', photon_flux_error='3.95e-08', dlogl='4.23e-02', energy_flux='2.05e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-08-31 22:43:39.798602', photon_index_error2='0.53', photon_index2='2.58', ts='4.37', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.87', time_epoch_completed='1630475019.8', return_code='0', job_id='432689', GAL2='1.06', EG2='0.86', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.73e-08', ts2='4.46', photon_index='2.43' WHERE bin_id='72' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:43:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 432689: <4FGL_J0941.9+2724_daily_bin72> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin72> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 22:30:30 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:30:32 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:30:32 2021
Terminated at Tue Aug 31 22:43:42 2021
Results reported at Tue Aug 31 22:43:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin72 145.494 27.4136 257990401 258249601 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 :                                   546.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            792 sec.

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

