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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1043
RA = 145.494, Dec = 27.4136
tmin = 509673601, tmax = 509932801
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='437811', job_status='RUN', time_executed='2021-08-31 22:47:12.654300', time_epoch_executed='1630475232.65' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437811/ft1_4FGL_J0941.9+2724_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437811/ft2_4FGL_J0941.9+2724_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437811/ft1_4FGL_J0941.9+2724_daily_bin1043.fits outfile=/scratch/kocevski/437811/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1043.fits ra=145.494 dec=27.4136 rad=12.0 tmin=509673601.0 tmax=509932801.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 2.75
user 2.54
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437811/ft2_4FGL_J0941.9+2724_daily_bin1043.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/437811/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/437811/ft1_filtered_4FGL_J0941.9+2724_daily_bin1043.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.42
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437811/ft1_filtered_4FGL_J0941.9+2724_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/437811/ft2_4FGL_J0941.9+2724_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/437811/ltcube_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.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/437811/ft2_4FGL_J0941.9+2724_daily_bin1043.fits
.....................!
real 8.82
user 8.51
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437811/ft1_filtered_4FGL_J0941.9+2724_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/437811/ft2_4FGL_J0941.9+2724_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/437811/ltcube_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.fits outfile=/scratch/kocevski/437811/expmap_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.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/437811/ltcube_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.fits
.....................!
real 140.94
user 137.41
sys 3.19

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/437811/ft1_filtered_4FGL_J0941.9+2724_daily_bin1043.fits scfile=/scratch/kocevski/437811/ft2_4FGL_J0941.9+2724_daily_bin1043.fits outfile=/scratch/kocevski/437811/cmap_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.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.46
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437811/ft1_filtered_4FGL_J0941.9+2724_daily_bin1043.fits scfile=/scratch/kocevski/437811/ft2_4FGL_J0941.9+2724_daily_bin1043.fits outfile=/scratch/kocevski/437811/cmap_HighResolution_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .24207E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0978       1.0000         .10000E-03   10000.    
     5 'norm      '    .29940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4038       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74371E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16722E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.8763       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89726       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=   5944.635     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1823 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.579        13.605        .50861E-07    .99153E-04
   2  Prefactor     .10000E-03    21.110        .52564E-05** at limit **
   3  norm          .10004E-03    100.37        .22795E-04** at limit **
   4  Prefactor     4.0982        3.4390       -.86835E-07    .20473E-03
   5  norm          .29953        1.2880       -.33976E-05    .38377E-03
   6  Prefactor     .10000E-03    27.194       -.35420E-05** at limit **
   7  Prefactor     2.5219        4.7755        .84366E-06    .89319E-03
   8  Prefactor     .10000E-03    32.519        .39278E-05** at limit **
   9  Prefactor     .10000E-03    45.068        .62194E-05** at limit **
  10  Prefactor     .10000E-03    16.428       -.56349E-06** at limit **
  11  Prefactor     5.4000        7.4695       -.63763E-06    .32185E-03
  12  Prefactor     .10000E-03    25.210        .10487E-04** at limit **
  13  Prefactor     .12231E-03    2.2382       -.27409E-05** at limit **
  14  norm          9.8774        8.0749        .23925E-06    .27925E-03
  15  Prefactor     .10000E-03    2.8528        .34318E-06** at limit **
  16  Prefactor     .10000E-03    23.264       -.14089E-05** at limit **
  17  Prefactor     6.2336        5.7101       -.40234E-06    .25489E-03
  18  Prefactor     .10000E-03    23.869       -.25511E-05** at limit **
  19  Normalizat    1.2002        .18209        .11090E-05    .58552E-03
  20  Prefactor     .89713        .17572        .12478E-05    .46797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5788
  Prefactor  = 0.000100001
  norm       = 0.000100039
  Prefactor  = 4.09819
  norm       = 0.299529
  Prefactor  = 0.000100001
  Prefactor  = 2.52189
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.40001
  Prefactor  = 0.0001
  Prefactor  = 0.000122313
  norm       = 9.87736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23359
  Prefactor  = 0.000100001
  Normalizat = 1.20017
  Prefactor  = 0.897131
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.635     FROM HESSE     STATUS=OK           301 CALLS     2124 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.579        13.556        .10485E-03   -1.4944    
   2  Prefactor     .10000E-03    21.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10004E-03    137.58        .67300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0982        3.4341        .12668E-03   -1.5303    
   5  norm          .29953        1.2945        .17051E-03   -1.5599    
   6  Prefactor     .10000E-03    27.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5219        4.7224        .20943E-03   -1.5390    
   8  Prefactor     .10000E-03    32.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4000        7.4537        .17287E-03   -1.5243    
  12  Prefactor     .10000E-03    58.714        .41542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12231E-03    5.8335        .28170E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.8774        8.0786        .12751E-03   -1.5079    
  15  Prefactor     .10000E-03    2.8784        .12665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2336        5.6934        .16083E-03   -1.5209    
  18  Prefactor     .10000E-03    23.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2002        .21609        .23015E-03   -.86598    
  20  Prefactor     .89713        .20782        .26181E-03   -.96241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79755e-09
Minuit parameter uncertainties:
  1  13.5587
  2  0.000209719
  3  0.00463089
  4  3.43431
  5  1.24521
  6  0.000346927
  7  4.72307
  8  0.000236566
  9  0.000630968
  10  5.95193e-05
  11  7.45502
  12  4.18489e-05
  13  0.0228201
  14  8.07946
  15  2.59369e-06
  16  0.000131751
  17  5.69384
  18  0.000223551
  19  0.216253
  20  0.208004
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.366e-04  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:  8.971e-01  2.080e-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.200e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437811/likelihoodResults_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.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): 102
logL (Free Index) = 5944.63534755
delta logL = -0.000145801221151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5944.63520192
delta logL = -1.65903657035e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3582       1.0000          .0000       10.000    
     3 'Normalizat'    1.2002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89713       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.

 FCN=   5944.635     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7377.4        .90712E-02** at limit **
   2  Index         2.3861        6.1317        .50000       -.83074E-05
   3  Normalizat    1.2002        .90697E-01    .52054E-01    .32335E-04
   4  Prefactor     .89713        .90352E-01    .44968E-01    .31227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.38608
  Normalizat = 1.20017
  Prefactor  = 0.897131
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.635     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3861        6.1670        .50000       -.55011    
   3  Normalizat    1.2002        .20304        .23015E-03   -.86598    
   4  Prefactor     .89713        .20389        .26181E-03   -.96241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80173e-11
Minuit parameter uncertainties:
  1  0.000483655
  2  4.96662
  3  0.203174
  4  0.20406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437811': 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) = 5944.63520184
delta logL = -9.21199898585e-08

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  4.837e-04  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.386e+00  4.967e+00  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:  8.971e-01  2.041e-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.200e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.494 27.414

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/437811/cmap_HighResolution_509673601_509932801_4FGL_J0941.9+2724_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-08-31 22:54:45.647825', job_id='437811', GAL2='0.90', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630475685.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-9.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1043' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:54:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 437811: <4FGL_J0941.9+2724_daily_bin1043> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1043> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 22:45:54 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:45:55 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:45:55 2021
Terminated at Tue Aug 31 22:54:46 2021
Results reported at Tue Aug 31 22:54:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1043 145.494 27.4136 509673601 509932801 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 :                                   432.66 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            532 sec.

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

