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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin667
RA = 145.494, Dec = 27.4136
tmin = 412214401, tmax = 412473601
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='436079', job_status='RUN', time_executed='2021-08-31 22:41:33.302267', time_epoch_executed='1630474893.3' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436079/ft1_4FGL_J0941.9+2724_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436079/ft2_4FGL_J0941.9+2724_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436079/ft1_4FGL_J0941.9+2724_daily_bin667.fits outfile=/scratch/kocevski/436079/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin667.fits ra=145.494 dec=27.4136 rad=12.0 tmin=412214401.0 tmax=412473601.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.44
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436079/ft2_4FGL_J0941.9+2724_daily_bin667.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/436079/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin667.fits evtable="EVENTS" outfile="/scratch/kocevski/436079/ft1_filtered_4FGL_J0941.9+2724_daily_bin667.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.56
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436079/ft1_filtered_4FGL_J0941.9+2724_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/436079/ft2_4FGL_J0941.9+2724_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/436079/ltcube_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.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/436079/ft2_4FGL_J0941.9+2724_daily_bin667.fits
.....................!
real 11.91
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436079/ft1_filtered_4FGL_J0941.9+2724_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/436079/ft2_4FGL_J0941.9+2724_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/436079/ltcube_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.fits outfile=/scratch/kocevski/436079/expmap_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.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/436079/ltcube_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.fits
.....................!
real 191.10
user 185.64
sys 5.02

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/436079/ft1_filtered_4FGL_J0941.9+2724_daily_bin667.fits scfile=/scratch/kocevski/436079/ft2_4FGL_J0941.9+2724_daily_bin667.fits outfile=/scratch/kocevski/436079/cmap_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436079/ft1_filtered_4FGL_J0941.9+2724_daily_bin667.fits scfile=/scratch/kocevski/436079/ft2_4FGL_J0941.9+2724_daily_bin667.fits outfile=/scratch/kocevski/436079/cmap_HighResolution_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8794       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5438       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6511       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5596       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.292       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3118       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .62909       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9532.299     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1767 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5719        7.5957         .0000        .41200E-02
   2  Prefactor     .10000E-03    3.9962         .0000    ** at limit **
   3  norm          4.1328        12.659         .0000        .18059E-02
   4  Prefactor     1.8795        2.1199         .0000        .80337E-03
   5  norm          1.6183        1.0341         .0000        .16631E-04
   6  Prefactor     16.852        23.705         .0000        .10651E-03
   7  Prefactor     .10000E-03    .68745         .0000    ** at limit **
   8  Prefactor     .10000E-03    5.7607         .0000    ** at limit **
   9  Prefactor     .10000E-03    69.401         .0000    ** at limit **
  10  Prefactor     3.5445        28.157         .0000        .11290E-02
  11  Prefactor     .10000E-03    3.5239         .0000    ** at limit **
  12  Prefactor     2.6507        6.7912         .0000        .12203E-01
  13  Prefactor     .10000E-03    .46261         .0000    ** at limit **
  14  norm          4.0733        4.1311         .0000       -.26338E-03
  15  Prefactor     .10000E-03    1.4034         .0000    ** at limit **
  16  Prefactor     .10000E-03    10.617         .0000    ** at limit **
  17  Prefactor     1.5595        2.2634         .0000        .75006E-03
  18  Prefactor     14.292        22.193         .0000        .56468E-04
  19  Normalizat    1.3118        .12469         .0000        .14094E-03
  20  Prefactor     .62906        .12729         .0000        .12923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.57189
  Prefactor  = 0.0001
  norm       = 4.1328
  Prefactor  = 1.87947
  norm       = 1.61831
  Prefactor  = 16.8521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.54453
  Prefactor  = 0.0001
  Prefactor  = 2.65072
  Prefactor  = 0.0001
  norm       = 4.07326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55949
  Prefactor  = 14.2918
  Normalizat = 1.3118
  Prefactor  = 0.629061
 **********
 **   18 **HESSE 
 **********

 FCN=   9532.299     FROM HESSE     STATUS=OK           291 CALLS     2058 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5719        7.5877        .94127E-03   -1.5280    
   2  Prefactor     .10000E-03    4.0142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1328        12.648        .99139E-03   -1.5301    
   4  Prefactor     1.8795        2.1048        .14559E-03   -1.5434    
   5  norm          1.6183        1.0284        .77056E-04   -1.5454    
   6  Prefactor     16.852        23.702        .97564E-04   -1.4887    
   7  Prefactor     .10000E-03    .69396        .79010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    69.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5445        28.141        .10736E-02   -1.5331    
  11  Prefactor     .10000E-03    3.6052        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6507        6.7942        .12518E-02   -1.5382    
  13  Prefactor     .10000E-03    .47199        .64812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0733        4.1303        .19375E-03   -1.5304    
  15  Prefactor     .10000E-03    1.4363        .22480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5595        2.2327        .17045E-03   -1.5458    
  18  Prefactor     14.292        22.189        .10595E-03   -1.4952    
  19  Normalizat    1.3118        .14214        .19537E-03   -.83215    
  20  Prefactor     .62906        .14485        .27920E-03   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87241e-10
Minuit parameter uncertainties:
  1  7.58934
  2  1.01875e-05
  3  12.6559
  4  2.10488
  5  1.02844
  6  23.7148
  7  1.26955e-05
  8  1.57614e-05
  9  0.000358081
  10  19.9874
  11  1.42681e-05
  12  6.79613
  13  3.28435e-06
  14  4.13056
  15  3.0666e-06
  16  4.51281e-06
  17  2.23284
  18  22.202
  19  0.142182
  20  0.144939
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.576e-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:  6.291e-01  1.449e-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.312e+00  1.422e-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: 3.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436079/likelihoodResults_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.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) = 9532.29953698
delta logL = -0.000825108594654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9532.29871196
delta logL = -9.03455656953e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9532.299     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.996        .18142E-01** at limit **
   2  Index         2.0334        5.2350        .50000        .14143E-07
   3  Normalizat    1.3118        .52962E-02    .19537E-03   -.17704E-03
   4  Prefactor     .62906        .54547E-02    .27920E-03   -.12077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03338
  Normalizat = 1.3118
  Prefactor  = 0.629061
 **********
 **   18 **HESSE 
 **********

 FCN=   9532.299     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    168.62        .24238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0334        7.1440        .50000       -.63518    
   3  Normalizat    1.3118        .16180E-01    .39075E-04   -.83215    
   4  Prefactor     .62906        .16665E-01    .11168E-04   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.85546e-12
Minuit parameter uncertainties:
  1  1.85304e-05
  2  755.028
  3  0.0161804
  4  0.0166649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436079': 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): 102
logL (Free Index) = 9532.29871091
delta logL = 9.620180208e-07

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.853e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.033e+00  7.550e+02  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  6.291e-01  1.666e-02  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.312e+00  1.618e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/436079/cmap_HighResolution_412214401_412473601_4FGL_J0941.9+2724_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2021-08-31 22:53:48.053590', job_id='436079', GAL2='0.63', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630475628.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='9.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='667' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:53:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 436079: <4FGL_J0941.9+2724_daily_bin667> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin667> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 22:40:59 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:41:01 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:41:01 2021
Terminated at Tue Aug 31 22:53:48 2021
Results reported at Tue Aug 31 22:53:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin667 145.494 27.4136 412214401 412473601 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 :                                   717.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

