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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1088
RA = 145.494, Dec = 27.4136
tmin = 521337601, tmax = 521596801
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='437874', job_status='RUN', time_executed='2021-08-31 22:48:54.299341', time_epoch_executed='1630475334.3' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437874/ft1_4FGL_J0941.9+2724_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437874/ft2_4FGL_J0941.9+2724_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437874/ft1_4FGL_J0941.9+2724_daily_bin1088.fits outfile=/scratch/kocevski/437874/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1088.fits ra=145.494 dec=27.4136 rad=12.0 tmin=521337601.0 tmax=521596801.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 5.12
user 4.86
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437874/ft1_filtered_4FGL_J0941.9+2724_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/437874/ft2_4FGL_J0941.9+2724_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/437874/ltcube_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.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/437874/ft2_4FGL_J0941.9+2724_daily_bin1088.fits
.....................!
real 11.72
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437874/ft1_filtered_4FGL_J0941.9+2724_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/437874/ft2_4FGL_J0941.9+2724_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/437874/ltcube_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.fits outfile=/scratch/kocevski/437874/expmap_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.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/437874/ltcube_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.fits
.....................!
real 191.78
user 186.17
sys 5.21

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/437874/ft1_filtered_4FGL_J0941.9+2724_daily_bin1088.fits scfile=/scratch/kocevski/437874/ft2_4FGL_J0941.9+2724_daily_bin1088.fits outfile=/scratch/kocevski/437874/cmap_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437874/ft1_filtered_4FGL_J0941.9+2724_daily_bin1088.fits scfile=/scratch/kocevski/437874/ft2_4FGL_J0941.9+2724_daily_bin1088.fits outfile=/scratch/kocevski/437874/cmap_HighResolution_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    6.6759       1.0000         .10000E-03   10000.    
     3 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0400       1.0000         .10000E-03   10000.    
     5 'norm      '    .11546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.806       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3473       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.287       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0970       1.0000         .10000E-03   10000.    
    14 'norm      '    5.1439       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80696       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0940       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=   5728.487     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2647 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4078       -.43641E-06** at limit **
   2  Prefactor     6.6776        13.562       -.22352E-08   -.12521E-04
   3  norm          .10000E-03    19.425        .17482E-05** at limit **
   4  Prefactor     3.0400        2.4488       -.19003E-07   -.15491E-04
   5  norm          .11312        1.3749        .62193E-07   -.32661E-03
   6  Prefactor     67.800        66.513       -.51429E-05   -.52504E-04
   7  Prefactor     3.3482        3.6780       -.29275E-07   -.93273E-04
   8  Prefactor     .10000E-03    7.0312       -.29896E-08** at limit **
   9  Prefactor     .10000E-03    35.705       -.19773E-06** at limit **
  10  Prefactor     79.285        42.682       -.15383E-05   -.40497E-04
  11  Prefactor     1.4820        4.5568        .48736E-07   -.18471E-03
  12  Prefactor     .10000E-03    5.3756        .48427E-06** at limit **
  13  Prefactor     4.0972        2.5036       -.42598E-07   -.54299E-04
  14  norm          5.1438        3.7083        .34494E-06   -.11496E-02
  15  Prefactor     .10000E-03    2.1033       -.20286E-07** at limit **
  16  Prefactor     .10000E-03    15.426        .49069E-06** at limit **
  17  Prefactor     5.2536        4.1137       -.60564E-07   -.17844E-04
  18  Prefactor     .10000E-03    17.901       -.21245E-05** at limit **
  19  Normalizat    .80684        .16542        .39772E-06   -.13502E-04
  20  Prefactor     1.0941        .17423        .26199E-06   -.48582E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.67761
  norm       = 0.0001
  Prefactor  = 3.04002
  norm       = 0.113119
  Prefactor  = 67.7995
  Prefactor  = 3.34816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.2846
  Prefactor  = 1.48196
  Prefactor  = 0.0001
  Prefactor  = 4.09717
  norm       = 5.14382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25362
  Prefactor  = 0.0001
  Normalizat = 0.80684
  Prefactor  = 1.09414
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.487     FROM HESSE     STATUS=OK           295 CALLS     2942 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4302        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6776        13.542        .15530E-03   -1.5191    
   3  norm          .10000E-03    19.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0400        2.4454        .10334E-03   -1.5359    
   5  norm          .11312        3.8059        .16920E-02   -1.5641    
   6  Prefactor     67.800        67.266        .48743E-04   -1.4059    
   7  Prefactor     3.3482        3.6369        .14031E-03   -1.5342    
   8  Prefactor     .10000E-03    7.0360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     79.285        42.835        .45102E-04   -1.3925    
  11  Prefactor     1.4820        4.5690        .27220E-03   -1.5464    
  12  Prefactor     .10000E-03    5.4193        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0972        2.5012        .88644E-04   -1.5303    
  14  norm          5.1438        6.7027        .88630E-03   -1.5254    
  15  Prefactor     .10000E-03    3.5308        .20331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2536        3.9635        .12573E-03   -1.5250    
  18  Prefactor     .10000E-03    17.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80684        .18955        .24029E-03   -.99815    
  20  Prefactor     1.0941        .20070        .22874E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86852e-08
Minuit parameter uncertainties:
  1  6.04474e-06
  2  13.5481
  3  7.33691e-05
  4  2.44548
  5  1.31179
  6  67.3412
  7  3.63711
  8  4.46654e-07
  9  1.2936e-06
  10  42.8516
  11  4.57004
  12  1.71106e-06
  13  2.50123
  14  6.70371
  15  1.1485e-05
  16  1.17225e-05
  17  3.96374
  18  6.35114e-05
  19  0.189703
  20  0.200834
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  4.467e-07  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.094e+00  2.008e-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:  8.068e-01  1.897e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437874/likelihoodResults_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.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) = 5728.4877527
delta logL = -0.000675649584082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5728.4870771
delta logL = -5.51799530513e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4197       1.0000          .0000       10.000    
     3 'Normalizat'    .80689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0941       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=   5728.487     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.439        .18142E-01** at limit **
   2  Index         1.9552        8.8134        .50000        .28990E-07
   3  Normalizat    .80684        .82604E-02    .24029E-03    .53367E-04
   4  Prefactor     1.0941        .90728E-02    .22874E-03    .59641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95519
  Normalizat = 0.80684
  Prefactor  = 1.09414
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    386.87        .21033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9552        5.7794        .50000       -.65475    
   3  Normalizat    .80684        .28869E-01    .96118E-05   -.99815    
   4  Prefactor     1.0941        .31708E-01    .91496E-05   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89336e-11
Minuit parameter uncertainties:
  1  7.654e-05
  2  1372.59
  3  0.0288696
  4  0.031709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437874': 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) = 5728.48707611
delta logL = 9.35198841034e-07

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  7.654e-05  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  1.955e+00  1.373e+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:  1.094e+00  3.171e-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:  8.068e-01  2.887e-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/437874/cmap_HighResolution_521337601_521596801_4FGL_J0941.9+2724_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-08-31 22:59:22.958764', job_id='437874', GAL2='1.09', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630475962.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='9.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1088' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:59:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 437874: <4FGL_J0941.9+2724_daily_bin1088> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin1088> 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) <bullet0044>, 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:59:23 2021
Results reported at Tue Aug 31 22:59:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1088 145.494 27.4136 521337601 521596801 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 :                                   621.16 sec.
    Max Memory :                                 1107 MB
    Average Memory :                             262.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            804 sec.

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

