/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 8 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin214
RA = 145.494, Dec = 27.4136
tmin = 294796801, tmax = 295056001
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='432908', job_status='RUN', time_executed='2021-08-31 22:31:06.365723', time_epoch_executed='1630474266.37' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432908/ft1_4FGL_J0941.9+2724_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432908/ft2_4FGL_J0941.9+2724_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432908/ft1_4FGL_J0941.9+2724_daily_bin214.fits outfile=/scratch/kocevski/432908/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin214.fits ra=145.494 dec=27.4136 rad=12.0 tmin=294796801.0 tmax=295056001.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.36
user 2.17
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432908/ft1_filtered_4FGL_J0941.9+2724_daily_bin214.fits" evtable="EVENTS" scfile=/scratch/kocevski/432908/ft2_4FGL_J0941.9+2724_daily_bin214.fits sctable="SC_DATA" outfile=/scratch/kocevski/432908/ltcube_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.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/432908/ft2_4FGL_J0941.9+2724_daily_bin214.fits
.....................!
real 12.20
user 11.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432908/ft1_filtered_4FGL_J0941.9+2724_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/432908/ft2_4FGL_J0941.9+2724_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/432908/ltcube_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.fits outfile=/scratch/kocevski/432908/expmap_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.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/432908/ltcube_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.fits
.....................!
real 191.91
user 185.63
sys 5.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/432908/ft1_filtered_4FGL_J0941.9+2724_daily_bin214.fits scfile=/scratch/kocevski/432908/ft2_4FGL_J0941.9+2724_daily_bin214.fits outfile=/scratch/kocevski/432908/cmap_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432908/ft1_filtered_4FGL_J0941.9+2724_daily_bin214.fits scfile=/scratch/kocevski/432908/ft2_4FGL_J0941.9+2724_daily_bin214.fits outfile=/scratch/kocevski/432908/cmap_HighResolution_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.494       1.0000         .10000E-03   10000.    
     3 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5129       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2800       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81866       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2335       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=   6564.558     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2034 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2887       -.48408E-09** at limit **
   2  Prefactor     15.498        17.513        .57744E-07   -.28569E-04
   3  norm          .10001E-03    64.858       -.17638E-05** at limit **
   4  Prefactor     4.5133        3.6489        .10524E-06   -.52120E-04
   5  norm          .10000E-03    .63920        .13624E-07** at limit **
   6  Prefactor     .10000E-03    29.663        .93346E-07** at limit **
   7  Prefactor     .10000E-03    1.7638        .23382E-06** at limit **
   8  Prefactor     .10000E-03    11.468       -.35685E-07** at limit **
   9  Prefactor     .10000E-03    25.497       -.79254E-06** at limit **
  10  Prefactor     .10000E-03    46.753        .21733E-05** at limit **
  11  Prefactor     21.403        8.0844        .42728E-07   -.15187E-04
  12  Prefactor     5.9980        7.5841        .30369E-05   -.27263E-03
  13  Prefactor     .10000E-03    .69604        .67985E-08** at limit **
  14  norm          20.443        9.1962        .61633E-07   -.29125E-05
  15  Prefactor     7.2809        3.6478       -.83095E-07   -.52514E-04
  16  Prefactor     .10000E-03    15.420        .21809E-06** at limit **
  17  Prefactor     .10000E-03    2.8971        .24541E-08** at limit **
  18  Prefactor     .10000E-03    31.658        .55016E-06** at limit **
  19  Normalizat    .81858        .16492       -.46659E-06   -.57440E-04
  20  Prefactor     1.2336        .16850       -.18174E-06   -.50826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.4984
  norm       = 0.000100006
  Prefactor  = 4.51329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 21.4033
  Prefactor  = 5.99799
  Prefactor  = 0.0001
  norm       = 20.4428
  Prefactor  = 7.28089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.818581
  Prefactor  = 1.23357
 **********
 **   18 **HESSE 
 **********

 FCN=   6564.558     FROM HESSE     STATUS=OK           289 CALLS     2323 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.498        17.476        .10175E-03   -1.4920    
   3  norm          .10001E-03    65.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5133        3.6441        .13408E-03   -1.5283    
   5  norm          .10000E-03    .64967        .63218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7005        .20152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    47.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.403        8.0977        .86576E-04   -1.4782    
  12  Prefactor     5.9980        7.5921        .81976E-03   -1.5218    
  13  Prefactor     .10000E-03    .70354        .65979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.443        9.1932        .88586E-04   -1.4803    
  15  Prefactor     7.2809        3.6371        .10468E-03   -1.5168    
  16  Prefactor     .10000E-03    15.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9378        .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81858        .18964        .26089E-03   -.99383    
  20  Prefactor     1.2336        .19625        .23368E-03   -.85304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61177e-10
Minuit parameter uncertainties:
  1  2.07075e-06
  2  17.4818
  3  0.00123321
  4  3.64423
  5  5.55124e-08
  6  4.87328e-05
  7  0.000195069
  8  2.00003e-05
  9  0.000402175
  10  0.000911833
  11  8.09809
  12  7.59333
  13  2.30976e-07
  14  9.19386
  15  3.63718
  16  7.8875e-05
  17  1.46225e-07
  18  0.000280641
  19  0.18979
  20  0.196371
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.000e-05  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.234e+00  1.964e-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.186e-01  1.898e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432908/likelihoodResults_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.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) = 6564.55835891
delta logL = -0.000414851913774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6564.55794407
delta logL = -4.85852069687e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4310       1.0000          .0000       10.000    
     3 'Normalizat'    .81858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2336       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=   6564.558     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6268.5        .90712E-02** at limit **
   2  Index         2.4292        7.3750        .50000        .13897E-05
   3  Normalizat    .81858        .13951        .43852E-01    .13924E-04
   4  Prefactor     1.2336        .14951        .52854E-01   -.14303E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42916
  Normalizat = 0.818581
  Prefactor  = 1.23357
 **********
 **   18 **HESSE 
 **********

 FCN=   6564.558     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4292        6.2093        .50000       -.54004    
   3  Normalizat    .81858        .18018        .26089E-03   -.99383    
   4  Prefactor     1.2336        .19486        .23368E-03   -.85304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51885e-12
Minuit parameter uncertainties:
  1  2.86133e-06
  2  4.7001
  3  0.180311
  4  0.194971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432908': 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) = 6564.55794406
delta logL = 1.26874510897e-09

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.861e-06  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.429e+00  4.700e+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:  1.234e+00  1.950e-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.186e-01  1.803e-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/432908/cmap_HighResolution_294796801_295056001_4FGL_J0941.9+2724_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-08-31 22:41:16.514709', job_id='432908', GAL2='1.23', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630474876.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.27e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='214' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 432908: <4FGL_J0941.9+2724_daily_bin214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin214 145.494 27.4136 294796801 295056001 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 :                                   602.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            630 sec.

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

