/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 54 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1078
RA = 145.494, Dec = 27.4136
tmin = 518745601, tmax = 519004801
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='437862', job_status='RUN', time_executed='2021-08-31 22:47:10.216174', time_epoch_executed='1630475230.22' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437862/ft1_4FGL_J0941.9+2724_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437862/ft2_4FGL_J0941.9+2724_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437862/ft1_4FGL_J0941.9+2724_daily_bin1078.fits outfile=/scratch/kocevski/437862/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1078.fits ra=145.494 dec=27.4136 rad=12.0 tmin=518745601.0 tmax=519004801.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 4.35
user 4.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437862/ft2_4FGL_J0941.9+2724_daily_bin1078.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/437862/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1078.fits evtable="EVENTS" outfile="/scratch/kocevski/437862/ft1_filtered_4FGL_J0941.9+2724_daily_bin1078.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437862/ft1_filtered_4FGL_J0941.9+2724_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/437862/ft2_4FGL_J0941.9+2724_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/437862/ltcube_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.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/437862/ft2_4FGL_J0941.9+2724_daily_bin1078.fits
.....................!
real 11.93
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437862/ft1_filtered_4FGL_J0941.9+2724_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/437862/ft2_4FGL_J0941.9+2724_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/437862/ltcube_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.fits outfile=/scratch/kocevski/437862/expmap_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.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/437862/ltcube_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.fits
.....................!
real 191.42
user 186.45
sys 4.51

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/437862/ft1_filtered_4FGL_J0941.9+2724_daily_bin1078.fits scfile=/scratch/kocevski/437862/ft2_4FGL_J0941.9+2724_daily_bin1078.fits outfile=/scratch/kocevski/437862/cmap_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437862/ft1_filtered_4FGL_J0941.9+2724_daily_bin1078.fits scfile=/scratch/kocevski/437862/ft2_4FGL_J0941.9+2724_daily_bin1078.fits outfile=/scratch/kocevski/437862/cmap_HighResolution_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.595       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8980       1.0000         .10000E-03   10000.    
     3 'norm      '    37.081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9962       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.298       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1401       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6822.595     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2037 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.596        9.5740       -.36222E-07   -.24728E-04
   2  Prefactor     9.8985        15.574       -.25810E-07   -.37344E-04
   3  norm          37.079        30.917       -.34846E-06   -.42359E-04
   4  Prefactor     1.9961        3.0673        .10348E-06   -.18907E-03
   5  norm          3.8758        1.9566        .18163E-07   -.37852E-04
   6  Prefactor     .10000E-03    118.01        .11035E-04** at limit **
   7  Prefactor     2.7586        2.7776       -.16161E-08   -.40744E-04
   8  Prefactor     .10000E-03    15.380       -.78555E-07** at limit **
   9  Prefactor     .10000E-03    28.278        .31249E-05** at limit **
  10  Prefactor     44.298        32.094        .68690E-07   -.68131E-05
  11  Prefactor     8.4180        6.2395        .25004E-05    .73719E-03
  12  Prefactor     .10000E-03    3.5943        .20307E-05** at limit **
  13  Prefactor     .10000E-03    1.1300       -.73752E-06** at limit **
  14  norm          .10000E-03    4.2892       -.83289E-07** at limit **
  15  Prefactor     3.5698        2.1896        .67557E-06   -.38085E-02
  16  Prefactor     .10000E-03    25.040       -.29054E-05** at limit **
  17  Prefactor     .10000E-03    3.3926       -.54233E-06** at limit **
  18  Prefactor     .10000E-03    123.01       -.12418E-04** at limit **
  19  Normalizat    1.1402        .16424       -.78155E-06    .21032E-03
  20  Prefactor     .85195        .16377       -.26273E-06    .11196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5957
  Prefactor  = 9.89848
  norm       = 37.0788
  Prefactor  = 1.99605
  norm       = 3.87584
  Prefactor  = 0.000100004
  Prefactor  = 2.75859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.2983
  Prefactor  = 8.41799
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 3.5698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.14016
  Prefactor  = 0.851947
 **********
 **   18 **HESSE 
 **********

 FCN=   6822.595     FROM HESSE     STATUS=OK           289 CALLS     2326 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.596        9.5742        .12309E-03   -1.5057    
   2  Prefactor     9.8985        15.599        .12737E-03   -1.5079    
   3  norm          37.079        30.939        .65816E-04   -1.4489    
   4  Prefactor     1.9961        3.0542        .17294E-03   -1.5425    
   5  norm          3.8758        1.9546        .78844E-04   -1.5314    
   6  Prefactor     .10000E-03    119.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7586        2.7761        .13211E-03   -1.5376    
   8  Prefactor     .10000E-03    15.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.298        32.110        .60237E-04   -1.4376    
  11  Prefactor     8.4180        6.2931        .13816E-03   -1.5128    
  12  Prefactor     .10000E-03    3.6250        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6746        .16465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.3221        .16704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5698        3.9867        .81905E-03   -1.5330    
  16  Prefactor     .10000E-03    25.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4592        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    124.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1402        .19013        .22599E-03   -.88473    
  20  Prefactor     .85195        .18830        .26231E-03   -.97841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2925e-09
Minuit parameter uncertainties:
  1  9.57553
  2  15.605
  3  30.9525
  4  3.05439
  5  1.9546
  6  0.0013971
  7  2.77619
  8  1.49639e-05
  9  0.000169728
  10  32.1223
  11  6.29363
  12  4.7502e-05
  13  0.0002598
  14  1.35335e-05
  15  3.98698
  16  0.000163186
  17  4.08792e-06
  18  0.00137435
  19  0.190247
  20  0.188446
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.496e-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:  8.519e-01  1.884e-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.140e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437862/likelihoodResults_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.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) = 6822.59564704
delta logL = -0.000308958228743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6822.59533952
delta logL = -1.43593297253e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0594       1.0000          .0000       10.000    
     3 'Normalizat'    1.1401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85195       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=   6822.595     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10577E-03    3.2248        .18142E-01** at limit **
   2  Index         2.8954        8.1266        .50000        .15156E-04
   3  Normalizat    1.1402        .20638E-02    .22599E-03    .74152E-04
   4  Prefactor     .85195        .21126E-02    .26231E-03    .29992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105766
  Index      = 2.89539
  Normalizat = 1.14016
  Prefactor  = 0.851948
 **********
 **   18 **HESSE 
 **********

 FCN=   6822.595     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10577E-03    516.11        .55608E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8954        5.8142        .50000       -.43446    
   3  Normalizat    1.1402        .27118E-01    .90395E-05   -.88473    
   4  Prefactor     .85195        .27755E-01    .10492E-04   -.97841    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54871e-08
Minuit parameter uncertainties:
  1  0.110067
  2  1347.83
  3  0.0271181
  4  0.0277552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437862': 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) = 6822.59533913
delta logL = -1.05069466372e-06

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.058e-04  1.101e-01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.895e+00  1.348e+03  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:  8.519e-01  2.776e-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.140e+00  2.712e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/437862/cmap_HighResolution_518745601_519004801_4FGL_J0941.9+2724_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-08-31 22:57:57.711072', job_id='437862', GAL2='0.85', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630475877.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-1.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1078' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:57:57 PDT 2021


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

Job <4FGL_J0941.9+2724_daily_bin1078> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 22:45:57 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:45:59 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:45:59 2021
Terminated at Tue Aug 31 22:57:58 2021
Results reported at Tue Aug 31 22:57:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1078 145.494 27.4136 518745601 519004801 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

