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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin976
RA = 145.45, Dec = 41.4216
tmin = 492307201, tmax = 492566401
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='428306', job_status='RUN', time_executed='2021-08-31 22:18:21.536422', time_epoch_executed='1630473501.54' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428306/ft1_4FGL_J0941.7+4125_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428306/ft1_4FGL_J0941.7+4125_daily_bin976.fits outfile=/scratch/kocevski/428306/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin976.fits ra=145.45 dec=41.4216 rad=12.0 tmin=492307201.0 tmax=492566401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.47
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.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/428306/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/428306/ltcube_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.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/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits
.....................!
real 11.77
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/428306/ltcube_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.fits outfile=/scratch/kocevski/428306/expmap_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.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/428306/ltcube_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.fits
.....................!
real 189.61
user 185.08
sys 4.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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J0941.7+4125 @ 145.45 41.4216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits scfile=/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits outfile=/scratch/kocevski/428306/cmap_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.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.45 yref=41.4216 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 1.78
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits scfile=/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits outfile=/scratch/kocevski/428306/cmap_HighResolution_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.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.45 yref=41.4216 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.95
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428306/Model_4FGL_J0941.7+4125_daily_bin976.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/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits....................!
real 40.00
user 38.42
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits', '/scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits', expMap='/scratch/kocevski/428306/expmap_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.fits', expCube='/scratch/kocevski/428306/ltcube_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428306/Model_4FGL_J0941.7+4125_daily_bin976.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.7+4125'

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.978e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/428306/ft1_filtered_4FGL_J0941.7+4125_daily_bin976.fits
Spacecraft file(s): /scratch/kocevski/428306/ft2_4FGL_J0941.7+4125_daily_bin976.fits
Exposure map: /scratch/kocevski/428306/expmap_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.fits
Exposure cube: /scratch/kocevski/428306/ltcube_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428306/Model_4FGL_J0941.7+4125_daily_bin976.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) = 4110.30767547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41954E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6048       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .46757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5117       1.0000         .10000E-03   10000.    
    10 'norm      '    12.046       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    81.405       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13322E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.182       1.0000         .10000E-03   10000.    
    24 'norm      '    4.8275       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.583       1.0000         .10000E-03   10000.    
    27 'Prefactor '    100.23       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0186       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .71923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4110.014     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     3792 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4171       -.48521E-07** at limit **
   2  Prefactor     .60949E-01    1.5414       -.56178E-07   -.20062E-03
   3  Prefactor     .10000E-03    32.933       -.14111E-04** at limit **
   4  Prefactor     8.7402        5.3747       -.13814E-06   -.74658E-04
   5  Prefactor     .10000E-03    73.018        .59042E-04** at limit **
   6  Prefactor     4.6044        5.0233        .35270E-06   -.43131E-03
   7  Prefactor     .10000E-03    17.377       -.37426E-05** at limit **
   8  norm          .46798        1.0479       -.85112E-06   -.28239E-02
   9  Prefactor     1.5075        5.9284        .30811E-05   -.26790E-03
  10  norm          12.047        9.8797        .21764E-06   -.85756E-04
  11  Prefactor     2.8588        3.4076       -.32071E-06   -.27135E-03
  12  Prefactor     .10000E-03    7.4276        .56043E-05** at limit **
  13  Prefactor     2.8671        4.0919       -.38502E-08   -.16467E-03
  14  Prefactor     .10000E-03    7.0911       -.64039E-05** at limit **
  15  norm          .10000E-03    5.4040        .14216E-05** at limit **
  16  Prefactor     .10000E-03    7.3437        .11599E-05** at limit **
  17  Prefactor     1.9243        5.6308       -.84728E-06   -.49087E-03
  18  Prefactor     .10000E-03    102.99       -.64432E-04** at limit **
  19  Prefactor     .10000E-03    5.9627        .96752E-06** at limit **
  20  norm          81.408        22.735        .19499E-06    .29260E-04
  21  Prefactor     .10000E-03    2.3947       -.19356E-10** at limit **
  22  Prefactor     .10000E-03    2.6104       -.29339E-06** at limit **
  23  Prefactor     11.196        30.356        .11784E-04    .30235E-04
  24  norm          4.8279        3.4069        .14653E-05   -.18326E-04
  25  Prefactor     .10000E-03    2.2085        .36883E-07** at limit **
  26  norm          15.583        10.943       -.45697E-06    .49190E-05
  27  Prefactor     100.23        46.321       -.13365E-05    .56894E-04
  28  Prefactor     .10000E-03    3.3054       -.66100E-07** at limit **
  29  Prefactor     .10000E-03    5.3548       -.13996E-05** at limit **
  30  Prefactor     .10000E-03    20.973        .90999E-05** at limit **
  31  Normalizat    1.0187        .20134       -.17770E-05    .25116E-03
  32  Prefactor     .71892        .22737        .78329E-06   -.31184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0609486
  Prefactor  = 0.0001
  Prefactor  = 8.74022
  Prefactor  = 0.0001
  Prefactor  = 4.60439
  Prefactor  = 0.0001
  norm       = 0.467983
  Prefactor  = 1.50747
  norm       = 12.0469
  Prefactor  = 2.85879
  Prefactor  = 0.0001
  Prefactor  = 2.86714
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.92435
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 81.408
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.1956
  norm       = 4.82795
  Prefactor  = 0.0001
  norm       = 15.5834
  Prefactor  = 100.227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01869
  Prefactor  = 0.718924
 **********
 **   18 **HESSE 
 **********

 FCN=   4110.014     FROM HESSE     STATUS=OK           657 CALLS     4449 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4192        .97337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .60949E-01    24.679        .14985E-02   -1.5659    
   3  Prefactor     .10000E-03    32.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7402        5.3774        .11242E-03   -1.5117    
   5  Prefactor     .10000E-03    73.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6044        4.9671        .12868E-03   -1.5279    
   7  Prefactor     .10000E-03    17.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .46798        .82432        .52293E-03   -1.5571    
   9  Prefactor     1.5075        4.8545        .15997E-03   -1.5462    
  10  norm          12.047        9.8823        .11542E-03   -1.5014    
  11  Prefactor     2.8588        3.3590        .11092E-03   -1.5370    
  12  Prefactor     .10000E-03    7.4912        .17059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8671        4.0535        .14552E-03   -1.5369    
  14  Prefactor     .10000E-03    7.0987        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.4047        .14556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3455        .16969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9243        5.5866        .24332E-03   -1.5431    
  18  Prefactor     .10000E-03    103.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9842        .15287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          81.408        22.780        .44516E-04   -1.3901    
  21  Prefactor     .10000E-03    2.4047        .96847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1921        .20056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.196        30.412        .11981E-03   -1.5039    
  24  norm          4.8279        3.4050        .95938E-04   -1.5268    
  25  Prefactor     .10000E-03    2.2318        .92956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.583        10.938        .10146E-03   -1.4918    
  27  Prefactor     100.23        46.098        .20078E-03   -1.3702    
  28  Prefactor     .10000E-03    3.3840        .22743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.3801        .14409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    20.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0187        .23701        .21787E-03   -.92407    
  32  Prefactor     .71892        .26760        .30573E-03   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30279e-09
Minuit parameter uncertainties:
  1  4.83578e-07
  2  2.45189
  3  7.4613e-06
  4  5.37771
  5  0.000382743
  6  4.96754
  7  8.29503e-05
  8  0.824345
  9  4.85572
  10  9.88359
  11  3.35927
  12  1.43228e-07
  13  4.05392
  14  3.06206e-06
  15  2.75755e-06
  16  4.16766e-06
  17  5.58811
  18  0.0010727
  19  7.14521e-06
  20  22.7829
  21  2.52845e-06
  22  0.000344728
  23  30.454
  24  3.40517
  25  4.63836e-06
  26  10.939
  27  46.1146
  28  4.82171e-06
  29  3.8227e-05
  30  1.00302e-05
  31  0.237258
  32  0.26808
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  2.758e-06  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  7.189e-01  2.681e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.019e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.450 41.422
Photon Flux Upper Limit: 2.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428306/likelihoodResults_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.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) = 4110.01445705
delta logL = -0.000844124400828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4110.01361282
delta logL = 1.01998921309e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8027       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+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=   4110.014     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      242 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    489.06        .14748E-01** at limit **
   2  alpha         1.3951        3.2069        .16616        .94353E-07
   3  Normalizat    1.0187        .36096E-01    .21787E-03   -.34440E-05
   4  Prefactor     .71893        .43408E-01    .30572E-03    .14168E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  alpha      = 1.39508
  Normalizat = 1.01869
  Prefactor  = 0.71893
 **********
 **   18 **HESSE 
 **********

 FCN=   4110.014     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    9.5437        .19228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3951        3.5898        .66463E-02   -.45779    
   3  Normalizat    1.0187        .21713        .87148E-05   -.92407    
   4  Prefactor     .71893        .26090        .12229E-04   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74315e-09
Minuit parameter uncertainties:
  1  0.000693622
  2  575.689
  3  0.217317
  4  0.261344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428306': 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) = 4110.01360898
delta logL = 3.94770540879e-06

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.000e-04  6.936e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        alpha:  1.395e+00  5.757e+02  0.000e+00  5.000e+00 ( 1.000e+00)
321         beta:  6.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  7.189e-01  2.613e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.019e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.450 41.422

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/428306/cmap_HighResolution_492307201_492566401_4FGL_J0941.7+4125_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-05', job_status='DONE', photon_flux_upper_limit='2.83e-08', time_completed='2021-08-31 22:31:02.708107', job_id='428306', GAL2='0.72', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630474262.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='976' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 428306: <4FGL_J0941.7+4125_daily_bin976> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin976> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 22:15:40 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:15:41 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:15:41 2021
Terminated at Tue Aug 31 22:31:03 2021
Results reported at Tue Aug 31 22:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin976 145.45 41.4216 492307201 492566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.7+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

