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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1209
RA = 140.895, Dec = 41.4283
tmin = 552700801, tmax = 552960001
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='212516', job_status='RUN', time_executed='2021-08-31 11:01:11.546848', time_epoch_executed='1630432871.55' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212516

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212516/ft1_4FGL_J0923.5+4125_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212516/ft1_4FGL_J0923.5+4125_daily_bin1209.fits outfile=/scratch/kocevski/212516/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1209.fits ra=140.895 dec=41.4283 rad=12.0 tmin=552700801.0 tmax=552960001.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.00
user 2.73
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.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/212516/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/212516/ft1_filtered_4FGL_J0923.5+4125_daily_bin1209.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.77
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212516/ft1_filtered_4FGL_J0923.5+4125_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/212516/ltcube_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.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/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits
.....................!
real 12.47
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212516/ft1_filtered_4FGL_J0923.5+4125_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/212516/ltcube_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.fits outfile=/scratch/kocevski/212516/expmap_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.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/212516/ltcube_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.fits
.....................!
real 193.63
user 185.39
sys 5.02

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/212516/ft1_filtered_4FGL_J0923.5+4125_daily_bin1209.fits scfile=/scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits outfile=/scratch/kocevski/212516/cmap_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212516/ft1_filtered_4FGL_J0923.5+4125_daily_bin1209.fits scfile=/scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits outfile=/scratch/kocevski/212516/cmap_HighResolution_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.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.57
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212516/ft1_filtered_4FGL_J0923.5+4125_daily_bin1209.fits', '/scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits', expMap='/scratch/kocevski/212516/expmap_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.fits', expCube='/scratch/kocevski/212516/ltcube_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212516/Model_4FGL_J0923.5+4125_daily_bin1209.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/212516/ft1_filtered_4FGL_J0923.5+4125_daily_bin1209.fits
Spacecraft file(s): /scratch/kocevski/212516/ft2_4FGL_J0923.5+4125_daily_bin1209.fits
Exposure map: /scratch/kocevski/212516/expmap_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.fits
Exposure cube: /scratch/kocevski/212516/ltcube_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212516/Model_4FGL_J0923.5+4125_daily_bin1209.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) = 957.091986885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11466       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48464E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75206E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10653E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35356E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.185       1.0000         .10000E-03   10000.    
    27 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11054E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .20522E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   953.4239     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     4581 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        11.352        .58071E-05** at limit **
   2  Prefactor    10000.0        296.02        .25184E-04** at limit **
   3  Prefactor     .74853E-01    265.67       -.31625E-04    .14764E-02
   4  Prefactor    10000.0        50.272        .12925E-04** at limit **
   5  norm         10000.0        83.531        .10657E-04** at limit **
   6  norm         10000.0        490.04        .34399E-04** at limit **
   7  Prefactor     .10007E-03    7.8135       -.10750E-04** at limit **
   8  Prefactor     .12023E-03    24.829       -.68195E-05** at limit **
   9  Prefactor     .16066E-03    43.699       -.84232E-05** at limit **
  10  Prefactor     .10000E-03    4.0813        .59984E-07** at limit **
  11  Prefactor     .10001E-03    65.991        .28137E-05** at limit **
  12  Prefactor     .10000E-03    3.4364        .54228E-07** at limit **
  13  norm          .10000E-03    2.6532       -.12312E-07** at limit **
  14  Prefactor     .10002E-03    17.560        .52115E-05** at limit **
  15  norm          .10000E-03    .87519       -.42361E-08** at limit **
  16  Prefactor     .10000E-03    2.5187       -.25457E-07** at limit **
  17  norm          .10000E-03    6.2360       -.39538E-05** at limit **
  18  Prefactor     .11578E-01    215.41        .20187E-04   -.24817E-03
  19  Prefactor     .10002E-03    6.8994        .88201E-05** at limit **
  20  Prefactor     .10000E-03    8.2232       -.17590E-05** at limit **
  21  Prefactor     .10001E-03    5.6831        .54867E-05** at limit **
  22  norm          .10000E-03    10.952        .48665E-05** at limit **
  23  Prefactor     .10002E-03    10.509       -.13968E-04** at limit **
  24  Prefactor     .10000E-03    6.5478        .41530E-05** at limit **
  25  Prefactor     .10006E-03    14.907       -.91985E-05** at limit **
  26  Prefactor     43.185        6.4245       -.15893E-05    .98144E-02
  27  norm          .10009E-03    6.8674        .10712E-04** at limit **
  28  Prefactor     .10000E-03    3.8750       -.30086E-07** at limit **
  29  Prefactor     .10000E-03    5.7796        .83111E-06** at limit **
  30  Prefactor     .10002E-03    37.531       -.63740E-05** at limit **
  31  norm          .10001E-03    32.336        .44708E-05** at limit **
  32  Normalizat    .10000E-01    .11350        .10967E-06** at limit **
  33  Prefactor     1.4552        .24655       -.74617E-06   -.14001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0748527
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.000100073
  Prefactor  = 0.000120226
  Prefactor  = 0.000160664
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0115781
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.000100001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 43.1846
  norm       = 0.000100094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  norm       = 0.000100014
  Normalizat = 0.01
  Prefactor  = 1.45518
 **********
 **   18 **HESSE 
 **********

 FCN=   953.4239     FROM HESSE     STATUS=OK           745 CALLS     5326 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6226.1        .10568E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        996.21        .95825E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .74853E-01    8353.1        .95809E-02   -1.5653    
   4  Prefactor    10000.0        6532.0        .98179E-02    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        752.78        .10277E-01    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        1054.1        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10007E-03    10.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12023E-03    1056.1        .10586E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16066E-03    897.48        .10469E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    65.874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6527        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    17.702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .80241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.2401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11578E-01    4.0632        .45525E-01   -1.5687    
  19  Prefactor     .10002E-03    14.193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    13.977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.287        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    13.357        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.5664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10006E-03    15.956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.185        23.382        .15251E-02   -1.4393    
  27  norm          .10009E-03    10.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.8726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.7508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10002E-03    37.672        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10001E-03    31.358        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .10929        .14538       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.4552        .26197        .47347E-01   -.78803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91472e-06
Minuit parameter uncertainties:
  1  0.66593
  2  0.675142
  3  52.6175
  4  3.475
  5  0.715115
  6  0.280052
  7  0.001729
  8  0.297707
  9  0.473946
  10  9.25232e-07
  11  0.00173709
  12  7.77725e-07
  13  1.75333e-07
  14  0.00121936
  15  2.65488e-08
  16  3.31551e-07
  17  8.12758e-05
  18  0.431943
  19  0.000970227
  20  3.98338e-05
  21  0.00089409
  22  0.000182174
  23  0.000997722
  24  8.7362e-05
  25  0.00195586
  26  23.3873
  27  0.00196648
  28  4.82879e-07
  29  1.63952e-05
  30  0.00179448
  31  0.0013488
  32  8.1631e-09
  33  0.262207
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.158e-02  4.319e-01  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:  1.455e+00  2.622e-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:  1.000e-02  8.163e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212516/likelihoodResults_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.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) = 953.423863803
delta logL = 1.10728726668e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 953.232287393
delta logL = 0.191587482971

Fit tolerance = 1e-08

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

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

 FCN=   953.2323     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      281 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7402        6.7993        .61631E-02   -.16401E-04
   2  Index         1.5006        .98794        .16648       -.11485E-03
   3  Normalizat    .10000E-01    .11242        .14783    ** at limit **
   4  Prefactor     1.4369        .25582        .47484E-01    .12280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7402
  Index      = 1.50062
  Normalizat = 0.01
  Prefactor  = 1.43694
 **********
 **   18 **HESSE 
 **********

 FCN=   953.2323     FROM HESSE     STATUS=OK            31 CALLS      312 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7402        5.4894        .10001E-03   -1.5377    
   2  Index         1.5006        .86598        .68396E-02   -.77522    
   3  Normalizat    .10000E-01    .11754        .61352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4369        .24467        .20985E-03   -.79321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19822e-09
Minuit parameter uncertainties:
  1  5.49045
  2  0.874696
  3  4.4544e-06
  4  0.244867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212516': 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) = 953.232282921
delta logL = 0.191591955013

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  2.740e+00  5.490e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.501e+00  8.747e-01  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:  1.437e+00  2.449e-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:  1.000e-02  4.454e-06  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/212516/cmap_HighResolution_552700801_552960001_4FGL_J0923.5+4125_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.86e-07', time_completed='2021-08-31 11:08:58.366450', job_id='212516', GAL2='1.44', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630433338.37', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='1.92e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1209' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:08:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 212516: <4FGL_J0923.5+4125_daily_bin1209> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1209> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 11:00:30 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:00:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 11:00:30 2021
Terminated at Tue Aug 31 11:08:59 2021
Results reported at Tue Aug 31 11:08:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1209 140.895 41.4283 552700801 552960001 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 :                                   444.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   508 sec.
    Turnaround time :                            509 sec.

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

