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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin35
RA = 145.494, Dec = 27.4136
tmin = 248400001, tmax = 248659201
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='432627', job_status='RUN', time_executed='2021-08-31 22:34:41.837147', time_epoch_executed='1630474481.84' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432627/ft1_4FGL_J0941.9+2724_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432627/ft2_4FGL_J0941.9+2724_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432627/ft1_4FGL_J0941.9+2724_daily_bin35.fits outfile=/scratch/kocevski/432627/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin35.fits ra=145.494 dec=27.4136 rad=12.0 tmin=248400001.0 tmax=248659201.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.41
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432627/ft2_4FGL_J0941.9+2724_daily_bin35.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/432627/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/432627/ft1_filtered_4FGL_J0941.9+2724_daily_bin35.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432627/ft1_filtered_4FGL_J0941.9+2724_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/432627/ft2_4FGL_J0941.9+2724_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/432627/ltcube_248400001_248659201_4FGL_J0941.9+2724_daily_bin35.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/432627/ft2_4FGL_J0941.9+2724_daily_bin35.fits
.....................!
real 12.57
user 12.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432627/ft1_filtered_4FGL_J0941.9+2724_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/432627/ft2_4FGL_J0941.9+2724_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/432627/ltcube_248400001_248659201_4FGL_J0941.9+2724_daily_bin35.fits outfile=/scratch/kocevski/432627/expmap_248400001_248659201_4FGL_J0941.9+2724_daily_bin35.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/432627/ltcube_248400001_248659201_4FGL_J0941.9+2724_daily_bin35.fits
.....................!
real 189.48
user 185.07
sys 4.01

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/432627/ft1_filtered_4FGL_J0941.9+2724_daily_bin35.fits scfile=/scratch/kocevski/432627/ft2_4FGL_J0941.9+2724_daily_bin35.fits outfile=/scratch/kocevski/432627/cmap_248400001_248659201_4FGL_J0941.9+2724_daily_bin35.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432627/ft1_filtered_4FGL_J0941.9+2724_daily_bin35.fits scfile=/scratch/kocevski/432627/ft2_4FGL_J0941.9+2724_daily_bin35.fits outfile=/scratch/kocevski/432627/cmap_HighResolution_248400001_248659201_4FGL_J0941.9+2724_daily_bin35.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.53
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.478       1.0000         .10000E-03   10000.    
     3 'norm      '    77.609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .65060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5917       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5395       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6613       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.779       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2653       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63240       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=   7170.935     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2153 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.746        10.712        .11479E-06   -.76676E-05
   2  Prefactor     15.472        16.888       -.80352E-05   -.16651E-03
   3  norm          77.609        35.352        .86513E-08   -.23288E-04
   4  Prefactor     .10000E-03    .95198       -.57435E-07** at limit **
   5  norm          .65074        .90517        .50650E-07    .22613E-03
   6  Prefactor     33.011        40.110       -.29212E-05   -.31857E-04
   7  Prefactor     .30652        1.7028        .85926E-06   -.15035E-03
   8  Prefactor     45.262        25.102       -.82969E-06   -.81328E-04
   9  Prefactor     17.836        45.912       -.20677E-05   -.49308E-05
  10  Prefactor     29.753        31.519        .80954E-05    .37041E-04
  11  Prefactor     3.7956        5.0604       -.18002E-06   -.81762E-04
  12  Prefactor     9.7456        8.2889       -.32565E-06   -.21631E-04
  13  Prefactor     2.5918        2.4360       -.27130E-07   -.11177E-03
  14  norm          1.5390        1.3525        .33756E-06   -.27182E-02
  15  Prefactor     1.8363        3.2935       -.13655E-06   -.14869E-03
  16  Prefactor     .10000E-03    14.948        .13417E-06** at limit **
  17  Prefactor     2.6620        4.4154        .58795E-06   -.42706E-04
  18  Prefactor     37.783        35.794        .52020E-05    .22121E-04
  19  Normalizat    1.2651        .16016        .50960E-06   -.25011E-03
  20  Prefactor     .63257        .15177        .17724E-07   -.87602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7458
  Prefactor  = 15.4722
  norm       = 77.6091
  Prefactor  = 0.0001
  norm       = 0.650743
  Prefactor  = 33.0106
  Prefactor  = 0.306521
  Prefactor  = 45.2616
  Prefactor  = 17.8359
  Prefactor  = 29.7532
  Prefactor  = 3.79557
  Prefactor  = 9.74559
  Prefactor  = 2.5918
  norm       = 1.53899
  Prefactor  = 1.83633
  Prefactor  = 0.0001
  Prefactor  = 2.662
  Prefactor  = 37.7826
  Normalizat = 1.26513
  Prefactor  = 0.632571
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.935     FROM HESSE     STATUS=OK           303 CALLS     2456 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.746        10.711        .85894E-04   -1.4775    
   2  Prefactor     15.472        17.012        .10181E-03   -1.4921    
   3  norm          77.609        35.354        .45583E-04   -1.3944    
   4  Prefactor     .10000E-03    .95763        .80673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .65074        .76357        .91592E-03   -1.5547    
   6  Prefactor     33.011        40.115        .69741E-04   -1.4558    
   7  Prefactor     .30652        6.0861        .20342E-02   -1.5597    
   8  Prefactor     45.262        25.148        .59594E-04   -1.4361    
   9  Prefactor     17.836        45.927        .94833E-04   -1.4863    
  10  Prefactor     29.753        31.632        .73459E-04   -1.4616    
  11  Prefactor     3.7956        5.0504        .20722E-03   -1.5318    
  12  Prefactor     9.7456        8.2989        .12837E-03   -1.5084    
  13  Prefactor     2.5918        2.4288        .12087E-03   -1.5386    
  14  norm          1.5390        4.1467        .13780E-02   -1.5460    
  15  Prefactor     1.8363        3.2241        .18071E-03   -1.5437    
  16  Prefactor     .10000E-03    14.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6620        4.3332        .20254E-03   -1.5382    
  18  Prefactor     37.783        35.826        .65207E-04   -1.4478    
  19  Normalizat    1.2651        .19009        .21294E-03   -.84613    
  20  Prefactor     .63257        .17771        .29165E-03   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76154e-08
Minuit parameter uncertainties:
  1  10.7123
  2  17.0175
  3  35.3637
  4  5.91694e-07
  5  0.763582
  6  40.148
  7  2.73155
  8  25.1541
  9  46.0178
  10  31.65
  11  5.05094
  12  8.29987
  13  2.42892
  14  4.14746
  15  3.22441
  16  6.64114e-06
  17  4.33367
  18  35.8464
  19  0.190194
  20  0.17787
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  4.526e+01  2.515e+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:  6.326e-01  1.779e-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.265e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.74
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.77e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.01e-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) = 7170.69694212
delta logL = 0.238436393154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7170.6872801
delta logL = 0.248098413574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.265       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0665       1.0000          .0000       10.000    
     3 'Normalizat'    1.2890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61937       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=   7170.687     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      221 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 74.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.266        25.435        .24953E-05   -.88255E-03
   2  Index         2.0665        .39340       -.55655E-05   -.39637E-03
   3  Normalizat    1.2890        .15116        .25519E-06    .26446E-03
   4  Prefactor     .61934        .15055       -.24580E-06    .11121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.2662
  Index      = 2.06653
  Normalizat = 1.28904
  Prefactor  = 0.619338
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.687     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.266        30.023        .57719E-04   -1.4317    
   2  Index         2.0665        .53066        .88300E-02   -.62697    
   3  Normalizat    1.2890        .17838        .21131E-03   -.83894    
   4  Prefactor     .61934        .17601        .29458E-03   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12244e-09
Minuit parameter uncertainties:
  1  30.0325
  2  0.532194
  3  0.178466
  4  0.176167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432627': 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) = 7170.68728008
delta logL = 0.248098431901

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  4.827e+01  3.003e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.067e+00  5.322e-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:  6.193e-01  1.762e-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.289e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.20
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.07 +/- 0.53
Photon Flux (Free Index): 3.77e-08 +/- 3.62e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/432627/cmap_HighResolution_248400001_248659201_4FGL_J0941.9+2724_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.77e-08', energy_flux2='2.23e-05', photon_flux_error='3.21e-08', dlogl='2.48e-01', energy_flux='1.81e-05', photon_flux2='3.77e-08', job_status='DONE', time_completed='2021-08-31 22:44:27.843653', photon_index_error2='0.53', photon_index2='2.07', ts='11.74', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.27', time_epoch_completed='1630475067.84', return_code='0', job_id='432627', GAL2='0.62', EG2='1.29', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='3.62e-08', ts2='12.20', photon_index='2.43' WHERE bin_id='35' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:44:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 432627: <4FGL_J0941.9+2724_daily_bin35> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin35 145.494 27.4136 248400001 248659201 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 :                                   581.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

