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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin750
RA = 145.45, Dec = 41.4216
tmin = 433728001, tmax = 433987201
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='426633', job_status='RUN', time_executed='2021-08-31 22:11:04.948027', time_epoch_executed='1630473064.95' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426633/ft1_4FGL_J0941.7+4125_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426633/ft1_4FGL_J0941.7+4125_daily_bin750.fits outfile=/scratch/kocevski/426633/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin750.fits ra=145.45 dec=41.4216 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.52
user 5.79
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.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/426633/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.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.94
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/426633/ltcube_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.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/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits
.....................!
real 12.97
user 12.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/426633/ltcube_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.fits outfile=/scratch/kocevski/426633/expmap_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.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/426633/ltcube_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.fits
.....................!
real 193.37
user 185.57
sys 4.00

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/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits scfile=/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits outfile=/scratch/kocevski/426633/cmap_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits scfile=/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits outfile=/scratch/kocevski/426633/cmap_HighResolution_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/426633/Model_4FGL_J0941.7+4125_daily_bin750.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/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits.....................!
real 41.33
user 39.89
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits', '/scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits', expMap='/scratch/kocevski/426633/expmap_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.fits', expCube='/scratch/kocevski/426633/ltcube_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/426633/Model_4FGL_J0941.7+4125_daily_bin750.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/426633/ft1_filtered_4FGL_J0941.7+4125_daily_bin750.fits
Spacecraft file(s): /scratch/kocevski/426633/ft2_4FGL_J0941.7+4125_daily_bin750.fits
Exposure map: /scratch/kocevski/426633/expmap_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.fits
Exposure cube: /scratch/kocevski/426633/ltcube_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/426633/Model_4FGL_J0941.7+4125_daily_bin750.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) = 4369.46013217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.822       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13222E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.926       1.0000         .10000E-03   10000.    
     8 'norm      '    .36430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26191       1.0000         .10000E-03   10000.    
    10 'norm      '    28.101       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.745       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3532       1.0000         .10000E-03   10000.    
    20 'norm      '    19.839       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0631       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1497       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.803       1.0000         .10000E-03   10000.    
    24 'norm      '    7.2159       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .77379       1.0000         .10000E-03   10000.    
    26 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.418       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.8822       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .66477       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0158       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=   4369.439     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4460 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0266        5.6064        .70220E-07   -.35622E-04
   2  Prefactor     .28526        2.4440       -.22058E-06   -.30904E-03
   3  Prefactor     55.972        74.523        .35225E-06   -.10868E-03
   4  Prefactor     6.1561        4.0367        .11901E-06   -.72960E-05
   5  Prefactor     62.833        53.615        .19186E-06    .49056E-04
   6  Prefactor     .10000E-03    2.7545        .96996E-06** at limit **
   7  Prefactor     36.943        38.518        .59821E-07   -.26663E-03
   8  norm          .36423        .38975       -.90533E-07   -.20029E-02
   9  Prefactor     .26273        3.2818        .87104E-06   -.39527E-03
  10  norm          28.099        16.903       -.27917E-06   -.12245E-02
  11  Prefactor     .10000E-03    1.8231        .88665E-06** at limit **
  12  Prefactor     .10000E-03    3.4165       -.61225E-07** at limit **
  13  Prefactor     6.5942        5.1560       -.40195E-06   -.19291E-03
  14  Prefactor     .10000E-03    5.6801       -.35156E-07** at limit **
  15  norm          30.496        25.288        .22495E-05    .10331E-03
  16  Prefactor     3.3074        94.963       -.14478E-04   -.99528E-04
  17  Prefactor     .10000E-03    10.112       -.24638E-06** at limit **
  18  Prefactor     17.719        37.867        .44712E-05   -.14249E-03
  19  Prefactor     1.3534        4.3568        .28976E-06   -.44422E-04
  20  norm          19.840        17.499       -.11335E-05   -.60165E-04
  21  Prefactor     2.0634        6.4633        .87155E-05   -.27105E-03
  22  Prefactor     1.1501        3.2100        .16311E-06   -.18534E-04
  23  Prefactor     14.805        23.686        .53776E-06    .38977E-04
  24  norm          7.2159        3.7873       -.22021E-06   -.80934E-06
  25  Prefactor     .77363        3.9877        .37757E-06   -.29447E-04
  26  norm          .10000E-03    13.816        .22893E-07** at limit **
  27  Prefactor     .10000E-03    93.731        .16709E-06** at limit **
  28  Prefactor     11.418        5.9592        .15807E-06    .50121E-04
  29  Prefactor     2.8860        5.9412        .58837E-06    .87029E-04
  30  Prefactor     .10000E-03    20.158       -.95162E-07** at limit **
  31  Normalizat    .66455        .20382       -.39283E-05   -.40423E-03
  32  Prefactor     1.0161        .22058        .19033E-05   -.30439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.02663
  Prefactor  = 0.28526
  Prefactor  = 55.972
  Prefactor  = 6.15613
  Prefactor  = 62.8332
  Prefactor  = 0.0001
  Prefactor  = 36.9427
  norm       = 0.364229
  Prefactor  = 0.262725
  norm       = 28.0985
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.59423
  Prefactor  = 0.0001
  norm       = 30.4959
  Prefactor  = 3.30738
  Prefactor  = 0.000100001
  Prefactor  = 17.7187
  Prefactor  = 1.35341
  norm       = 19.8398
  Prefactor  = 2.06338
  Prefactor  = 1.15012
  Prefactor  = 14.8046
  norm       = 7.21586
  Prefactor  = 0.773635
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.4183
  Prefactor  = 2.88603
  Prefactor  = 0.0001
  Normalizat = 0.664552
  Prefactor  = 1.01607
 **********
 **   18 **HESSE 
 **********

 FCN=   4369.439     FROM HESSE     STATUS=OK           667 CALLS     5127 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0266        5.5922        .14538E-03   -1.5217    
   2  Prefactor     .28526        4.6232        .18463E-02   -1.5601    
   3  Prefactor     55.972        74.342        .53614E-04   -1.4210    
   4  Prefactor     6.1561        4.0346        .10357E-03   -1.5212    
   5  Prefactor     62.833        53.556        .50627E-04   -1.4121    
   6  Prefactor     .10000E-03    5.4817        .20326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.943        38.235        .65954E-04   -1.4492    
   8  norm          .36423        .41344        .33868E-04   -1.5587    
   9  Prefactor     .26273        6.9667        .17555E-02   -1.5605    
  10  norm          28.099        16.757        .75575E-04   -1.4647    
  11  Prefactor     .10000E-03    7.9046        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4215        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5942        5.1423        .12653E-03   -1.5194    
  14  Prefactor     .10000E-03    5.6845        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.496        25.334        .72537E-04   -1.4603    
  16  Prefactor     3.3074        95.731        .22374E-03   -1.5344    
  17  Prefactor     .10000E-03    10.518        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.719        37.968        .95079E-04   -1.4866    
  19  Prefactor     1.3534        4.2963        .24049E-03   -1.5475    
  20  norm          19.840        17.523        .89923E-04   -1.4817    
  21  Prefactor     2.0634        6.4858        .13584E-02   -1.5421    
  22  Prefactor     1.1501        3.0031        .17017E-03   -1.5493    
  23  Prefactor     14.805        23.681        .10410E-03   -1.4938    
  24  norm          7.2159        3.7855        .89775E-04   -1.5171    
  25  Prefactor     .77363        3.5342        .22617E-03   -1.5532    
  26  norm          .10000E-03    14.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    93.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.418        5.9625        .11132E-03   -1.5032    
  29  Prefactor     2.8860        5.8886        .21912E-03   -1.5368    
  30  Prefactor     .10000E-03    20.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .66455        .22920        .25046E-03   -1.0531    
  32  Prefactor     1.0161        .25167        .25323E-03   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69818e-09
Minuit parameter uncertainties:
  1  5.59266
  2  2.2966
  3  74.4653
  4  4.03482
  5  53.5972
  6  1.37478e-05
  7  38.2599
  8  0.413446
  9  2.70563
  10  16.7596
  11  0.000131029
  12  7.21224e-06
  13  5.14262
  14  1.207e-05
  15  25.343
  16  35.65
  17  0.000146664
  18  38.0199
  19  4.29723
  20  17.5274
  21  6.488
  22  3.00347
  23  23.6957
  24  3.78564
  25  3.3072
  26  5.51025e-05
  27  0.000508869
  28  5.96277
  29  5.8898
  30  7.48275e-05
  31  0.229531
  32  0.251961
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  3.050e+01  2.534e+01  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:  1.016e+00  2.520e-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:  6.646e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.85
Ra Dec: 145.450 41.422
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.17e-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) = 4369.42603366
delta logL = 0.0132228585626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4369.41790115
delta logL = 0.0213553646254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.099       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5799       1.0000          .0000       5.0000    
     3 'Normalizat'    .66822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       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=   4369.418     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.092        30.772        .68624E-04    .73854E-04
   2  alpha         2.5793        1.1745        .20612E-01    .94136E-04
   3  Normalizat    .66829        .19838        .24986E-03    .10929E-03
   4  Prefactor     1.0150        .24479        .25341E-03    .45715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.0922
  alpha      = 2.57927
  Normalizat = 0.668295
  Prefactor  = 1.01497
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.092        29.993        .13725E-04   -1.4540    
   2  alpha         2.5793        1.1469        .41224E-02    .31711E-01
   3  Normalizat    .66829        .19845        .99943E-05   -1.0516    
   4  Prefactor     1.0150        .24498        .10136E-04   -.92232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12679e-11
Minuit parameter uncertainties:
  1  30.0064
  2  1.19154
  3  0.198659
  4  0.245252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426633': 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) = 4369.41790073
delta logL = 0.0213557814068

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  3.409e+01  3.001e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.579e+00  1.192e+00  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:  1.015e+00  2.453e-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:  6.683e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.88
Ra Dec: 145.450 41.422
Photon Index (Free Index): 2.58 +/- 1.19
Photon Flux (Free Index): 2.32e-08 +/- 2.62e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/426633/cmap_HighResolution_433728001_433987201_4FGL_J0941.7+4125_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='1.39e-05', photon_flux_error='2.29e-08', dlogl='2.14e-02', energy_flux='1.40e-05', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-08-31 22:23:45.303378', photon_index_error2='1.19', photon_index2='2.58', ts='6.85', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.66', time_epoch_completed='1630473825.3', return_code='0', job_id='426633', GAL2='1.01', EG2='0.67', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.62e-08', ts2='6.88', photon_index='2.82' WHERE bin_id='750' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:23:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 426633: <4FGL_J0941.7+4125_daily_bin750> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 22:10:46 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:10: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:10:47 2021
Terminated at Tue Aug 31 22:23:46 2021
Results reported at Tue Aug 31 22:23:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin750 145.45 41.4216 433728001 433987201 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 :                                   748.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

