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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1089
RA = 145.494, Dec = 27.4136
tmin = 521596801, tmax = 521856001
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='437875', job_status='RUN', time_executed='2021-08-31 22:49:39.190244', time_epoch_executed='1630475379.19' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437875/ft1_4FGL_J0941.9+2724_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437875/ft2_4FGL_J0941.9+2724_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437875/ft1_4FGL_J0941.9+2724_daily_bin1089.fits outfile=/scratch/kocevski/437875/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1089.fits ra=145.494 dec=27.4136 rad=12.0 tmin=521596801.0 tmax=521856001.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.33
user 4.12
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437875/ft2_4FGL_J0941.9+2724_daily_bin1089.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/437875/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1089.fits evtable="EVENTS" outfile="/scratch/kocevski/437875/ft1_filtered_4FGL_J0941.9+2724_daily_bin1089.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.50
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437875/ft1_filtered_4FGL_J0941.9+2724_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/437875/ft2_4FGL_J0941.9+2724_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/437875/ltcube_521596801_521856001_4FGL_J0941.9+2724_daily_bin1089.fits outfile=/scratch/kocevski/437875/expmap_521596801_521856001_4FGL_J0941.9+2724_daily_bin1089.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/437875/ltcube_521596801_521856001_4FGL_J0941.9+2724_daily_bin1089.fits
.....................!
real 192.41
user 187.90
sys 4.14

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/437875/ft1_filtered_4FGL_J0941.9+2724_daily_bin1089.fits scfile=/scratch/kocevski/437875/ft2_4FGL_J0941.9+2724_daily_bin1089.fits outfile=/scratch/kocevski/437875/cmap_521596801_521856001_4FGL_J0941.9+2724_daily_bin1089.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437875/ft1_filtered_4FGL_J0941.9+2724_daily_bin1089.fits scfile=/scratch/kocevski/437875/ft2_4FGL_J0941.9+2724_daily_bin1089.fits outfile=/scratch/kocevski/437875/cmap_HighResolution_521596801_521856001_4FGL_J0941.9+2724_daily_bin1089.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8386       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1612       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1130       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.680       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5010       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15194E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43961       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8612       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85254       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=   5095.107     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1783 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8399        9.3301        .67747E-06    .13551E-04
   2  Prefactor     .10000E-03    9.5389       -.27950E-06** at limit **
   3  norm          21.385        40.434       -.20237E-04    .14160E-04
   4  Prefactor     4.1616        3.3475       -.22431E-06   -.57015E-05
   5  norm          1.1132        1.5126        .13894E-07   -.11147E-03
   6  Prefactor     .10000E-03    25.415       -.16844E-04** at limit **
   7  Prefactor     3.7744        4.2531       -.11512E-05   -.32535E-03
   8  Prefactor     .10000E-03    8.3366        .53072E-06** at limit **
   9  Prefactor     21.673        57.304       -.12553E-04    .10271E-04
  10  Prefactor     .10000E-03    58.963       -.71031E-05** at limit **
  11  Prefactor     2.4996        5.0395       -.17442E-05   -.37779E-03
  12  Prefactor     .10000E-03    3.1927        .10958E-06** at limit **
  13  Prefactor     .10000E-03    1.7955       -.20120E-06** at limit **
  14  norm          3.9344        4.7559       -.18788E-06   -.62476E-05
  15  Prefactor     .45365        4.9235       -.11923E-05   -.42003E-03
  16  Prefactor     .10000E-03    17.638        .32212E-05** at limit **
  17  Prefactor     3.8485        6.2893       -.41145E-06    .11836E-04
  18  Prefactor     .10000E-03    31.034        .18455E-04** at limit **
  19  Normalizat    1.1789        .18292        .16141E-05    .24231E-03
  20  Prefactor     .85263        .18630        .17466E-05    .15746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.83989
  Prefactor  = 0.0001
  norm       = 21.385
  Prefactor  = 4.1616
  norm       = 1.11318
  Prefactor  = 0.0001
  Prefactor  = 3.77445
  Prefactor  = 0.0001
  Prefactor  = 21.6734
  Prefactor  = 0.0001
  Prefactor  = 2.49957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.93439
  Prefactor  = 0.453646
  Prefactor  = 0.0001
  Prefactor  = 3.84846
  Prefactor  = 0.0001
  Normalizat = 1.17892
  Prefactor  = 0.852626
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.107     FROM HESSE     STATUS=OK           297 CALLS     2080 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8399        9.3237        .14322E-03   -1.5148    
   2  Prefactor     .10000E-03    9.6011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.385        40.371        .86585E-04   -1.4783    
   4  Prefactor     4.1616        3.3490        .11331E-03   -1.5300    
   5  norm          1.1132        1.4709        .98064E-04   -1.5497    
   6  Prefactor     .10000E-03    25.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7744        4.2665        .14525E-03   -1.5319    
   8  Prefactor     .10000E-03    8.3418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.673        57.241        .86023E-04   -1.4777    
  10  Prefactor     .10000E-03    59.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4996        5.0380        .21884E-03   -1.5392    
  12  Prefactor     .10000E-03    3.2074        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3385        .18303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9344        4.7523        .16641E-03   -1.5311    
  15  Prefactor     .45365        8.0690        .23213E-02   -1.5573    
  16  Prefactor     .10000E-03    17.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8485        5.7934        .17007E-03   -1.5316    
  18  Prefactor     .10000E-03    30.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1789        .20720        .21336E-03   -.87257    
  20  Prefactor     .85263        .21270        .26012E-03   -.97817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82579e-10
Minuit parameter uncertainties:
  1  9.32546
  2  1.2278e-06
  3  40.4231
  4  3.34912
  5  1.47092
  6  7.15599e-05
  7  4.26679
  8  4.30352e-06
  9  57.3862
  10  5.66241e-05
  11  5.0389
  12  2.75431e-06
  13  2.58507e-05
  14  4.7528
  15  3.82666
  16  7.83418e-06
  17  5.79421
  18  2.7503e-05
  19  0.207342
  20  0.212903
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  4.304e-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:  8.526e-01  2.129e-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.179e+00  2.073e-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: 5.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437875/likelihoodResults_521596801_521856001_4FGL_J0941.9+2724_daily_bin1089.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): 0
logL (Free Index) = 5095.10723091
delta logL = -0.000569933468796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5095.10666096
delta logL = 1.68865881278e-08

Fit tolerance = 1e-08

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

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

 FCN=   5095.107     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.747        .90712E-02** at limit **
   2  Index         2.4158        6.1938        .50000        .88535E-05
   3  Normalizat    1.1789        .17218        .35430E-01    .28007E-05
   4  Prefactor     .85263        .18247        .44398E-01    .12127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41583
  Normalizat = 1.17892
  Prefactor  = 0.852627
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.107     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4158        6.2079        .50000       -.54315    
   3  Normalizat    1.1789        .19562        .21336E-03   -.87257    
   4  Prefactor     .85263        .20722        .26012E-03   -.97817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17141e-11
Minuit parameter uncertainties:
  1  8.7846e-06
  2  4.42842
  3  0.19574
  4  0.207414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437875': 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) = 5095.10666094
delta logL = 3.58413672075e-08

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  8.785e-06  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.416e+00  4.428e+00  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.526e-01  2.074e-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.179e+00  1.957e-01  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/437875/cmap_HighResolution_521596801_521856001_4FGL_J0941.9+2724_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-08-31 22:58:39.454444', job_id='437875', GAL2='0.85', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630475919.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1089' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:58:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 437875: <4FGL_J0941.9+2724_daily_bin1089> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1089 145.494 27.4136 521596801 521856001 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 :                                   529.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             224.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

