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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin559
RA = 145.494, Dec = 27.4136
tmin = 384220801, tmax = 384480001
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='435857', job_status='RUN', time_executed='2021-08-31 22:41:00.717175', time_epoch_executed='1630474860.72' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435857

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435857/ft1_4FGL_J0941.9+2724_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435857/ft2_4FGL_J0941.9+2724_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435857/ft1_4FGL_J0941.9+2724_daily_bin559.fits outfile=/scratch/kocevski/435857/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin559.fits ra=145.494 dec=27.4136 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.70
user 13.32
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435857/ft1_filtered_4FGL_J0941.9+2724_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/435857/ft2_4FGL_J0941.9+2724_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/435857/ltcube_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.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/435857/ft2_4FGL_J0941.9+2724_daily_bin559.fits
.....................!
real 10.75
user 10.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435857/ft1_filtered_4FGL_J0941.9+2724_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/435857/ft2_4FGL_J0941.9+2724_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/435857/ltcube_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.fits outfile=/scratch/kocevski/435857/expmap_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.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/435857/ltcube_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.fits
.....................!
real 192.72
user 186.37
sys 5.98

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/435857/ft1_filtered_4FGL_J0941.9+2724_daily_bin559.fits scfile=/scratch/kocevski/435857/ft2_4FGL_J0941.9+2724_daily_bin559.fits outfile=/scratch/kocevski/435857/cmap_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.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.64
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435857/ft1_filtered_4FGL_J0941.9+2724_daily_bin559.fits scfile=/scratch/kocevski/435857/ft2_4FGL_J0941.9+2724_daily_bin559.fits outfile=/scratch/kocevski/435857/cmap_HighResolution_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.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.59
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.132       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.800       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1370       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.336       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9840       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9927       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.086       1.0000         .10000E-03   10000.    
    14 'norm      '    .27815E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31961E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3667       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.326       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0678       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0389       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=   8456.284     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     2636 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.132        10.868        .10296E-03    .11042E-05
   2  Prefactor     .10000E-03    3.7928        .17469E-02** at limit **
   3  norm          16.795        22.972        .97715E-04    .12333E-04
   4  Prefactor     2.1369        1.9367        .11831E-03    .38053E-04
   5  norm          2.4985        1.3068        .73632E-04    .92949E-04
   6  Prefactor     .10000E-03    8.9680        .18142E-02** at limit **
   7  Prefactor     .10000E-03    2.3402        .26941E-03** at limit **
   8  Prefactor     .10000E-03    6.8549        .18142E-02** at limit **
   9  Prefactor     15.327        28.142        .10227E-03    .12228E-04
  10  Prefactor     4.9821        77.719        .18014E-03    .21458E-05
  11  Prefactor     3.9941        5.5919        .20184E-03    .94852E-04
  12  Prefactor     .10000E-03    3.0217        .15587E-02** at limit **
  13  Prefactor     12.086        3.4087        .85268E-04    .33332E-04
  14  norm          .10002E-03    6.6365        .62279E-01** at limit **
  15  Prefactor     .10000E-03    2.5157        .14089E-02** at limit **
  16  Prefactor     .10000E-03    30.075        .17203    ** at limit **
  17  Prefactor     4.3659        4.5536        .19275E-03   -.46714E-04
  18  Prefactor     48.328        54.682        .57683E-04   -.96180E-05
  19  Normalizat    1.0678        .17888        .24322E-03   -.35525E-05
  20  Prefactor     1.0389        .18220        .25508E-03    .24691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1316
  Prefactor  = 0.0001
  norm       = 16.7952
  Prefactor  = 2.1369
  norm       = 2.49848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3273
  Prefactor  = 4.98206
  Prefactor  = 3.99409
  Prefactor  = 0.0001
  Prefactor  = 12.0863
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.36594
  Prefactor  = 48.3285
  Normalizat = 1.06781
  Prefactor  = 1.0389
 **********
 **   18 **HESSE 
 **********

 FCN=   8456.284     FROM HESSE     STATUS=OK           291 CALLS     2927 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.132        10.867        .41185E-05   -1.4930    
   2  Prefactor     .10000E-03    3.7931        .34939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.795        22.978        .39086E-05   -1.4888    
   4  Prefactor     2.1369        1.9367        .47323E-05   -1.5416    
   5  norm          2.4985        1.3068        .29453E-05   -1.5392    
   6  Prefactor     .10000E-03    8.9681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3403        .53882E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.327        28.154        .40909E-05   -1.4925    
  10  Prefactor     4.9821        77.642        .72054E-05   -1.5262    
  11  Prefactor     3.9941        5.5917        .80736E-05   -1.5308    
  12  Prefactor     .10000E-03    3.0220        .31175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.086        3.4087        .34107E-05   -1.5013    
  14  norm          .10002E-03    6.1942        .65442E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5166        .28179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.994        .17249       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3659        4.5532        .77099E-05   -1.5290    
  18  Prefactor     48.328        54.684        .11537E-04   -1.4316    
  19  Normalizat    1.0678        .17907        .97287E-05   -.90792    
  20  Prefactor     1.0389        .18241        .10203E-04   -.91444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68977e-11
Minuit parameter uncertainties:
  1  10.8689
  2  1.17501e-06
  3  22.9905
  4  1.93676
  5  1.30683
  6  2.59558e-06
  7  1.11823e-06
  8  1.40646e-06
  9  28.1781
  10  39.3959
  11  5.59244
  12  5.35671e-07
  13  3.40875
  14  0.000615781
  15  4.02295e-06
  16  0.000282055
  17  4.55356
  18  54.7404
  19  0.179174
  20  0.182514
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.406e-06  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.039e+00  1.825e-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.068e+00  1.792e-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: 4.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435857/likelihoodResults_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.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) = 8456.2842007
delta logL = -0.00069427039125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8456.28350641
delta logL = 2.66809365712e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4178       1.0000          .0000       10.000    
     3 'Normalizat'    1.0678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0389       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=   8456.284     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      249 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.484        .18142E-01** at limit **
   2  Index         2.0236        6.4557        .50000        .13415E-07
   3  Normalizat    1.0678        .61802E-02    .24322E-03   -.88251E-04
   4  Prefactor     1.0389        .64338E-02    .25508E-03   -.83254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02364
  Normalizat = 1.06781
  Prefactor  = 1.0389
 **********
 **   18 **HESSE 
 **********

 FCN=   8456.284     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    175.73        .25122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0236        8.1285        .50000       -.63761    
   3  Normalizat    1.0678        .18083E-01    .97286E-05   -.90792    
   4  Prefactor     1.0389        .18825E-01    .10203E-04   -.91444    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59134e-11
Minuit parameter uncertainties:
  1  2.21979e-05
  2  751.866
  3  0.0180834
  4  0.0188255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435857': 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) = 8456.28350552
delta logL = 9.13927578949e-07

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.220e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.024e+00  7.519e+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:  1.039e+00  1.883e-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.068e+00  1.808e-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/435857/cmap_HighResolution_384220801_384480001_4FGL_J0941.9+2724_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.31e-08', time_completed='2021-08-31 22:54:28.471477', job_id='435857', GAL2='1.04', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630475668.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='9.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='559' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:54:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 435857: <4FGL_J0941.9+2724_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin559 145.494 27.4136 384220801 384480001 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 :                                   799.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

