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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin424
RA = 145.45, Dec = 41.4216
tmin = 349228801, tmax = 349488001
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='424450', job_status='RUN', time_executed='2021-08-31 22:05:42.624914', time_epoch_executed='1630472742.62' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424450/ft1_4FGL_J0941.7+4125_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424450/ft1_4FGL_J0941.7+4125_daily_bin424.fits outfile=/scratch/kocevski/424450/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin424.fits ra=145.45 dec=41.4216 rad=12.0 tmin=349228801.0 tmax=349488001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.45
user 3.21
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.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/424450/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.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/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/424450/ltcube_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.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/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits
.....................!
real 11.96
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/424450/ltcube_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.fits outfile=/scratch/kocevski/424450/expmap_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.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/424450/ltcube_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.fits
.....................!
real 189.97
user 184.86
sys 4.70

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

Setting source of interest to:
4FGL J0941.7+4125 @ 145.45 41.4216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits scfile=/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits outfile=/scratch/kocevski/424450/cmap_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.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.45 yref=41.4216 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.59
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits scfile=/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits outfile=/scratch/kocevski/424450/cmap_HighResolution_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.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.45 yref=41.4216 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.59
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424450/Model_4FGL_J0941.7+4125_daily_bin424.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/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits.....................!
real 48.18
user 46.82
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits', '/scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits', expMap='/scratch/kocevski/424450/expmap_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.fits', expCube='/scratch/kocevski/424450/ltcube_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424450/Model_4FGL_J0941.7+4125_daily_bin424.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.7+4125'

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.978e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/424450/ft1_filtered_4FGL_J0941.7+4125_daily_bin424.fits
Spacecraft file(s): /scratch/kocevski/424450/ft2_4FGL_J0941.7+4125_daily_bin424.fits
Exposure map: /scratch/kocevski/424450/expmap_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.fits
Exposure cube: /scratch/kocevski/424450/ltcube_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424450/Model_4FGL_J0941.7+4125_daily_bin424.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) = 5640.54330195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36247       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13628E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3875       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13383E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4968       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8716       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7080       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.308       1.0000         .10000E-03   10000.    
    24 'norm      '    10.980       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .72956E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.734       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98430       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96706       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5640.534     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4453 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.188        7.8040        .24469E-07    .20247E-04
   2  Prefactor     1.4470        1.9008        .10215E-07   -.28349E-05
   3  Prefactor     .10000E-03    34.306       -.35207E-06** at limit **
   4  Prefactor     3.1818        2.8432       -.30678E-07    .97041E-05
   5  Prefactor     44.857        44.872        .10476E-05    .17008E-04
   6  Prefactor     .35177        2.7219        .90528E-06   -.49489E-03
   7  Prefactor     .10000E-03    11.699       -.41019E-06** at limit **
   8  norm          .13073E-01    .22905        .99643E-07   -.64559E-03
   9  Prefactor     .10000E-03    1.0939       -.88761E-07** at limit **
  10  norm          .10000E-03    2.6796       -.11969E-06** at limit **
  11  Prefactor     .10000E-03    1.6884       -.52739E-06** at limit **
  12  Prefactor     6.7983        8.8248       -.97168E-07   -.15606E-04
  13  Prefactor     1.3870        4.3910        .28099E-06    .11758E-03
  14  Prefactor     .10000E-03    21.833        .20463E-06** at limit **
  15  norm          .10000E-03    4.3474       -.22341E-07** at limit **
  16  Prefactor     .10000E-03    8.7169       -.76332E-07** at limit **
  17  Prefactor     4.4961        6.7872        .64167E-06    .25841E-03
  18  Prefactor     .10000E-03    34.563        .39814E-07** at limit **
  19  Prefactor     8.8594        13.148        .35243E-06   -.57228E-04
  20  norm          .10000E-03    6.1404       -.73920E-07** at limit **
  21  Prefactor     .10000E-03    2.4101        .21866E-06** at limit **
  22  Prefactor     5.7083        5.0568        .28868E-07   -.20642E-03
  23  Prefactor     28.437        38.766       -.41642E-05   -.39942E-03
  24  norm          10.979        3.5978        .20590E-08    .14698E-04
  25  Prefactor     .10000E-03    2.6174        .54615E-07** at limit **
  26  norm          .18691E-03    12.800        .34366E-05** at limit **
  27  Prefactor     14.759        17.393       -.53295E-06   -.76109E-04
  28  Prefactor     .10000E-03    2.5238        .40660E-06** at limit **
  29  Prefactor     .10000E-03    1.9363        .98968E-07** at limit **
  30  Prefactor     .10000E-03    11.181        .72494E-07** at limit **
  31  Normalizat    .98482        .18760       -.21203E-05   -.42581E-03
  32  Prefactor     .96677        .20839        .29171E-05   -.21076E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1881
  Prefactor  = 1.44698
  Prefactor  = 0.0001
  Prefactor  = 3.18178
  Prefactor  = 44.857
  Prefactor  = 0.351773
  Prefactor  = 0.0001
  norm       = 0.0130726
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79828
  Prefactor  = 1.38699
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.4961
  Prefactor  = 0.0001
  Prefactor  = 8.85937
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.70831
  Prefactor  = 28.4367
  norm       = 10.9791
  Prefactor  = 0.0001
  norm       = 0.000186909
  Prefactor  = 14.7594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.984824
  Prefactor  = 0.966773
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.534     FROM HESSE     STATUS=OK           669 CALLS     5122 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.188        7.7913        .12549E-03   -1.5069    
   2  Prefactor     1.4470        1.8747        .11348E-03   -1.5467    
   3  Prefactor     .10000E-03    34.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1818        2.8442        .11618E-03   -1.5351    
   5  Prefactor     44.857        44.957        .59889E-04   -1.4367    
   6  Prefactor     .35177        9.8828        .19415E-02   -1.5589    
   7  Prefactor     .10000E-03    11.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .13073E-01    .95907        .67462E-03   -1.5685    
   9  Prefactor     .10000E-03    1.1168        .15218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6881        .12004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8773        .17925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7983        8.7770        .15385E-03   -1.5186    
  13  Prefactor     1.3870        4.3190        .25085E-03   -1.5472    
  14  Prefactor     .10000E-03    22.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3484        .15294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4961        6.8611        .94933E-03   -1.5284    
  18  Prefactor     .10000E-03    34.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.8594        13.110        .13457E-03   -1.5113    
  20  norm          .10000E-03    6.1621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4358        .11386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7083        5.0326        .14408E-03   -1.5230    
  23  Prefactor     28.437        43.982        .75299E-04   -1.4641    
  24  norm          10.979        3.5993        .79035E-04   -1.5045    
  25  Prefactor     .10000E-03    2.6285        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .18691E-03    17.871        .58686E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.759        17.405        .10434E-03   -1.4939    
  28  Prefactor     .10000E-03    5.1438        .22604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.9426        .10192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98482        .20450        .22692E-03   -.93541    
  32  Prefactor     .96677        .23169        .27368E-03   -.93845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62025e-08
Minuit parameter uncertainties:
  1  7.79204
  2  1.87475
  3  1.3208e-05
  4  2.84435
  5  44.9909
  6  3.72923
  7  5.43568e-05
  8  0.223087
  9  6.69108e-06
  10  8.06977e-06
  11  4.55498e-05
  12  8.7787
  13  4.32002
  14  4.71928e-06
  15  1.59381e-06
  16  2.76857e-06
  17  6.86229
  18  4.79751e-05
  19  13.1145
  20  7.59787e-06
  21  7.82619e-06
  22  5.03298
  23  44.0323
  24  3.59939
  25  3.99511e-06
  26  0.0788439
  27  17.4106
  28  7.52012e-05
  29  6.51208e-06
  30  1.2076e-05
  31  0.204664
  32  0.231933
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  1.594e-06  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.668e-01  2.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.848e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.450 41.422
Photon Flux Upper Limit: 2.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424450/likelihoodResults_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.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) = 5640.53536412
delta logL = -0.00105247741703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5640.53431198
delta logL = -3.41423401551e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8046       1.0000          .0000       5.0000    
     3 'Normalizat'    .98476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+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=   5640.534     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      231 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    420.17        .15457E-01** at limit **
   2  alpha         1.2681        4.1196        .16618        .71150E-08
   3  Normalizat    .98483        .32046E-01    .22692E-03    .21643E-04
   4  Prefactor     .96677        .38529E-01    .27368E-03    .19025E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.26812
  Normalizat = 0.984827
  Prefactor  = 0.966771
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.534     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9080        .20602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2681        3.9431        .66471E-02   -.51525    
   3  Normalizat    .98483        .18812        .90768E-05   -.93540    
   4  Prefactor     .96677        .22611        .10947E-04   -.93845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5618e-11
Minuit parameter uncertainties:
  1  5.49673e-05
  2  499.356
  3  0.188246
  4  0.226327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424450': 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) = 5640.53430648
delta logL = 5.1621655075e-06

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  5.497e-05  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  1.268e+00  4.994e+02  0.000e+00  5.000e+00 ( 1.000e+00)
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.668e-01  2.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.848e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.450 41.422

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/424450/cmap_HighResolution_349228801_349488001_4FGL_J0941.7+4125_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-05', job_status='DONE', photon_flux_upper_limit='2.25e-08', time_completed='2021-08-31 22:21:49.301059', job_id='424450', GAL2='0.97', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630473709.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='424' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 424450: <4FGL_J0941.7+4125_daily_bin424> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin424> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 22:05:30 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:05: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:05:32 2021
Terminated at Tue Aug 31 22:21:50 2021
Results reported at Tue Aug 31 22:21:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin424 145.45 41.4216 349228801 349488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.7+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   960.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

