/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 67 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 = 7436
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0923.5+4125_daily_bin72
RA = 140.895, Dec = 41.4283
tmin = 257990401, tmax = 258249601
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='204151', job_status='RUN', time_executed='2021-08-31 10:37:33.557376', time_epoch_executed='1630431453.56' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204151

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204151/ft1_4FGL_J0923.5+4125_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204151/ft1_4FGL_J0923.5+4125_daily_bin72.fits outfile=/scratch/kocevski/204151/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin72.fits ra=140.895 dec=41.4283 rad=12.0 tmin=257990401.0 tmax=258249601.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 1.26
user 0.94
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.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/204151/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.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.56
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/204151/ltcube_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.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/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits
.....................!
real 10.35
user 9.62
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/204151/ltcube_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.fits outfile=/scratch/kocevski/204151/expmap_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.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/204151/ltcube_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.fits
.....................!
real 149.28
user 141.66
sys 3.13

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J0923.5+4125 @ 140.895 41.4283

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits scfile=/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits outfile=/scratch/kocevski/204151/cmap_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.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=140.895 yref=41.4283 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.68
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits scfile=/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits outfile=/scratch/kocevski/204151/cmap_HighResolution_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.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=140.895 yref=41.4283 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.71
user 0.31
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204151/Model_4FGL_J0923.5+4125_daily_bin72.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/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits.....................!
real 42.96
user 38.55
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits', '/scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits', expMap='/scratch/kocevski/204151/expmap_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.fits', expCube='/scratch/kocevski/204151/ltcube_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204151/Model_4FGL_J0923.5+4125_daily_bin72.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0923.5+4125'

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/204151/ft1_filtered_4FGL_J0923.5+4125_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/204151/ft2_4FGL_J0923.5+4125_daily_bin72.fits
Exposure map: /scratch/kocevski/204151/expmap_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.fits
Exposure cube: /scratch/kocevski/204151/ltcube_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204151/Model_4FGL_J0923.5+4125_daily_bin72.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) = 6003.78834869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2278       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3856       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2337       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2416       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4003       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8511       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6874       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .58886       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4555       1.0000         .10000E-03   10000.    
    31 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98116       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6003.690     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     3889 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.442       -.73959E-05** at limit **
   2  Prefactor     8.2279        3.4610       -.27192E-07    .22295E-03
   3  Prefactor     .10000E-03    18.953        .79038E-05** at limit **
   4  Prefactor     .10000E-03    8.5104       -.19405E-05** at limit **
   5  norm          .10000E-03    1.9614       -.33612E-06** at limit **
   6  norm          .10000E-03    1.3494       -.10174E-06** at limit **
   7  Prefactor     .10000E-03    1.1299        .11279E-07** at limit **
   8  Prefactor     .10000E-03    8.6786       -.94232E-06** at limit **
   9  Prefactor     .10000E-03    17.134       -.47406E-05** at limit **
  10  Prefactor     .10000E-03    2.5798       -.15889E-05** at limit **
  11  Prefactor     .10000E-03    8.9311        .10058E-05** at limit **
  12  Prefactor     .10000E-03    .70816       -.15202E-07** at limit **
  13  norm          1.3856        1.7538       -.11237E-06   -.10885E-03
  14  Prefactor     .10000E-03    4.7126        .17713E-06** at limit **
  15  norm          1.6508        .76298        .36862E-07   -.38553E-03
  16  Prefactor     5.2344        4.4351       -.27904E-06   -.33355E-03
  17  norm          .10000E-03    2.6085        .14478E-05** at limit **
  18  Prefactor     .10000E-03    .77135       -.11693E-06** at limit **
  19  Prefactor     9.2414        7.3564       -.22128E-08   -.45608E-05
  20  Prefactor     1.4007        2.7243       -.30785E-06   -.51903E-03
  21  Prefactor     .10000E-03    4.6555       -.34455E-07** at limit **
  22  norm          .10000E-03    4.4847       -.72450E-06** at limit **
  23  Prefactor     2.8337        19.367        .75815E-05   -.91223E-04
  24  Prefactor     4.6881        5.7688       -.22887E-06   -.19585E-03
  25  Prefactor     .10000E-03    11.440        .62955E-05** at limit **
  26  Prefactor     .10000E-03    2.9362        .12744E-06** at limit **
  27  norm          .10000E-03    5.0152        .84401E-06** at limit **
  28  Prefactor     .57416        3.4766       -.42420E-06   -.14761E-03
  29  Prefactor     .10000E-03    2.2322       -.84543E-07** at limit **
  30  Prefactor     1.4062        65.472       -.15209E-04   -.87628E-04
  31  norm          .10000E-03    4.1328        .60794E-06** at limit **
  32  Normalizat    .98121        .15547        .60376E-06    .16086E-03
  33  Prefactor     .88433        .16718       -.31168E-06    .17817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.22794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38556
  Prefactor  = 0.0001
  norm       = 1.65083
  Prefactor  = 5.23437
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.24137
  Prefactor  = 1.40071
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.83368
  Prefactor  = 4.6881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.574161
  Prefactor  = 0.0001
  Prefactor  = 1.40615
  norm       = 0.0001
  Normalizat = 0.981207
  Prefactor  = 0.884329
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.690     FROM HESSE     STATUS=OK           689 CALLS     4578 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2279        3.4568        .90051E-04   -1.5134    
   3  Prefactor     .10000E-03    18.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.3648        .21122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3511        .87899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1737        .16069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6376        .24264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .71312        .63650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3856        1.7368        .11246E-03   -1.5473    
  14  Prefactor     .10000E-03    4.7169        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6508        .81475        .33258E-04   -1.5451    
  16  Prefactor     5.2344        4.7641        .10562E-03   -1.5250    
  17  norm          .10000E-03    2.6171        .12205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3528        .13111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2414        7.3517        .13183E-03   -1.5100    
  20  Prefactor     1.4007        2.6876        .17284E-03   -1.5471    
  21  Prefactor     .10000E-03    4.6585        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.4907        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.8337        18.794        .24079E-03   -1.5371    
  24  Prefactor     4.6881        5.7504        .18587E-03   -1.5275    
  25  Prefactor     .10000E-03    11.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.9427        .12966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.0287        .16943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .57416        14.745        .26680E-02   -1.5556    
  29  Prefactor     .10000E-03    2.2616        .11304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.4062        70.519        .35687E-03   -1.5471    
  31  norm          .10000E-03    4.1492        .15389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .98121        .18083        .21957E-03   -.93663    
  33  Prefactor     .88433        .19401        .25856E-03   -.96691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20203e-10
Minuit parameter uncertainties:
  1  2.58236e-05
  2  3.45691
  3  4.46484e-06
  4  4.72984e-07
  5  8.61357e-05
  6  1.57272e-07
  7  3.79132e-07
  8  1.40484e-06
  9  1.65584e-06
  10  4.56151e-06
  11  1.36453e-06
  12  4.34002e-07
  13  1.7369
  14  2.41056e-06
  15  0.814759
  16  4.76448
  17  3.76669e-06
  18  6.06848e-06
  19  7.35241
  20  2.68786
  21  1.39647e-06
  22  2.18766e-05
  23  14.6017
  24  5.75104
  25  2.65906e-05
  26  7.24345e-07
  27  3.472e-07
  28  5.82038
  29  3.6117e-07
  30  19.94
  31  1.79917e-05
  32  0.180942
  33  0.194162
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  6.068e-06  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  8.843e-01  1.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.812e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 5.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204151/likelihoodResults_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.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) = 6003.69314209
delta logL = -0.00352345826286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6003.68961874
delta logL = -9.90366970655e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3362       1.0000          .0000       10.000    
     3 'Normalizat'    .98128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6003.690     FROM MIGRAD    STATUS=FAILED        91 CALLS      251 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10366E-03    51.235        .13283E-02** at limit **
   2  Index         2.1714        8.6375        .50000        .73679E-04
   3  Normalizat    .98121        .23029E-01    .21957E-03   -.15083E-03
   4  Prefactor     .88433        .26014E-01    .25856E-03   -.29283E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6003.690     FROM SIMPLEX   STATUS=PROGRESS     134 CALLS      385 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10355E-03    51.235        .15537E-03** at limit **
   2  Index         2.1702        8.6375        .40017E-03    .73679E-04
   3  Normalizat    .98120        .23029E-01    .21496E-05   -.15083E-03
   4  Prefactor     .88433        .26014E-01    .74062E-06   -.29283E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6003.690     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      435 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.898        .26567E-02** at limit **
   2  Index         1.9487        8.7251        .50000       -.34954E-06
   3  Normalizat    .98121        .20042E-01    .87828E-05   -.62133E-04
   4  Prefactor     .88433        .22642E-01    .10342E-04    .54961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94872
  Normalizat = 0.981206
  Prefactor  = 0.884329
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.690     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      464 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    199.05        .53133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9487        6.2092        .50000       -.65638    
   3  Normalizat    .98121        .50910E-01    .17566E-05   -.93663    
   4  Prefactor     .88433        .57486E-01    .20685E-05   -.96691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40118e-09
Minuit parameter uncertainties:
  1  5.88897e-06
  2  681.313
  3  0.050913
  4  0.0574901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204151': 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) = 6003.68961233
delta logL = 6.30598606222e-06

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  5.889e-06  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.949e+00  6.813e+02  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  8.843e-01  5.749e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.812e-01  5.091e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 140.895 41.428

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/204151/cmap_HighResolution_257990401_258249601_4FGL_J0923.5+4125_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-08-31 10:49:59.363745', job_id='204151', GAL2='0.88', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630432199.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='72' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:49:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 204151: <4FGL_J0923.5+4125_daily_bin72> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin72> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 10:35:35 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:35:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 10:35:36 2021
Terminated at Tue Aug 31 10:50:00 2021
Results reported at Tue Aug 31 10:50:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin72 140.895 41.4283 257990401 258249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

