/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 208 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7495
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1201
RA = 140.895, Dec = 41.4283
tmin = 550627201, tmax = 550886401
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='212503', job_status='RUN', time_executed='2021-08-31 11:04:10.217081', time_epoch_executed='1630433050.22' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212503

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212503/ft1_4FGL_J0923.5+4125_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212503/ft2_4FGL_J0923.5+4125_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212503/ft1_4FGL_J0923.5+4125_daily_bin1201.fits outfile=/scratch/kocevski/212503/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1201.fits ra=140.895 dec=41.4283 rad=12.0 tmin=550627201.0 tmax=550886401.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.92
user 3.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212503/ft2_4FGL_J0923.5+4125_daily_bin1201.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/212503/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1201.fits evtable="EVENTS" outfile="/scratch/kocevski/212503/ft1_filtered_4FGL_J0923.5+4125_daily_bin1201.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212503/ft1_filtered_4FGL_J0923.5+4125_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/212503/ft2_4FGL_J0923.5+4125_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/212503/ltcube_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.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/212503/ft2_4FGL_J0923.5+4125_daily_bin1201.fits
.....................!
real 11.71
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212503/ft1_filtered_4FGL_J0923.5+4125_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/212503/ft2_4FGL_J0923.5+4125_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/212503/ltcube_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.fits outfile=/scratch/kocevski/212503/expmap_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.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/212503/ltcube_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.fits
.....................!
real 191.62
user 187.07
sys 4.19

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/212503/ft1_filtered_4FGL_J0923.5+4125_daily_bin1201.fits scfile=/scratch/kocevski/212503/ft2_4FGL_J0923.5+4125_daily_bin1201.fits outfile=/scratch/kocevski/212503/cmap_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212503/ft1_filtered_4FGL_J0923.5+4125_daily_bin1201.fits scfile=/scratch/kocevski/212503/ft2_4FGL_J0923.5+4125_daily_bin1201.fits outfile=/scratch/kocevski/212503/cmap_HighResolution_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.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.62
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5315       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    59.185       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.246       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    167.35       1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.306       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    61.057       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3910       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4829       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .16122E-06   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=   1417.880     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4642 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.485       -.15300E-05** at limit **
   2  Prefactor     4.5313        5.8296        .45309E-07   -.15224E-04
   3  Prefactor     47.353        82.150       -.86252E-06   -.32973E-04
   4  Prefactor     .10000E-03    43.854       -.36756E-06** at limit **
   5  norm          59.190        53.596        .79421E-07    .38156E-05
   6  norm          .10000E-03    78.777       -.29459E-05** at limit **
   7  Prefactor     .10000E-03    12.150        .45382E-07** at limit **
   8  Prefactor     .10001E-03    341.32        .56284E-05** at limit **
   9  Prefactor     .10003E-03    415.62       -.96689E-05** at limit **
  10  Prefactor     .10002E-03    6.3020       -.37384E-06** at limit **
  11  Prefactor     54.268        92.385        .23897E-05    .34273E-04
  12  Prefactor     .10000E-03    3.5779        .10339E-06** at limit **
  13  norm          .10000E-03    1.1341        .19356E-07** at limit **
  14  Prefactor     .10000E-03    19.621        .75167E-06** at limit **
  15  norm          .10000E-03    .85812        .24584E-07** at limit **
  16  Prefactor     .10000E-03    6.6517        .36959E-08** at limit **
  17  norm          .10000E-03    5.3754        .46800E-07** at limit **
  18  Prefactor     .10000E-03    1.8059       -.19541E-07** at limit **
  19  Prefactor     .10000E-03    43.301       -.34168E-06** at limit **
  20  Prefactor     .10000E-03    134.49        .26573E-05** at limit **
  21  Prefactor     .10000E-03    72.440       -.41008E-06** at limit **
  22  norm          2.4438        314.99        .52615E-07   -.12289E-04
  23  Prefactor     .10000E-03    42.857       -.76111E-06** at limit **
  24  Prefactor     167.37        178.68        .12625E-05    .17303E-04
  25  Prefactor     39.288        116.86       -.12729E-05   -.33731E-04
  26  Prefactor     .10000E-03    13.450       -.12583E-06** at limit **
  27  norm          61.056        71.104        .24091E-06   -.71898E-05
  28  Prefactor     .10000E-03    50.428        .36291E-05** at limit **
  29  Prefactor     4.3898        8.3555        .33397E-05   -.13868E-03
  30  Prefactor     .10000E-03    30.441        .67804E-06** at limit **
  31  norm          .10000E-03    14.312        .75708E-07** at limit **
  32  Normalizat    1.4830        .21178       -.18933E-05   -.25219E-04
  33  Prefactor     .62733E-11    .12552        .18541E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.53127
  Prefactor  = 47.3528
  Prefactor  = 0.0001
  norm       = 59.1896
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100034
  Prefactor  = 0.000100016
  Prefactor  = 54.2682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.44375
  Prefactor  = 0.0001
  Prefactor  = 167.368
  Prefactor  = 39.2882
  Prefactor  = 0.0001
  norm       = 61.0564
  Prefactor  = 0.000100005
  Prefactor  = 4.38979
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.483
  Prefactor  = 6.27332e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   1417.880     FROM HESSE     STATUS=OK           677 CALLS     5319 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5313        5.8144        .98305E-04   -1.5282    
   3  Prefactor     47.353        82.035        .58263E-04   -1.4331    
   4  Prefactor     .10000E-03    43.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          59.190        53.524        .26075E-03   -1.4168    
   6  norm          .10000E-03    79.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.267        .12812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    344.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    425.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    20.629        .17359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.268        92.489        .54460E-04   -1.4233    
  12  Prefactor     .10000E-03    3.5948        .69544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1369        .39160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.658        .16308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0164        .67928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6970        .94811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.3775        .85270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8077        .49410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    135.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    72.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4438        301.07        .25922E-03   -1.5395    
  23  Prefactor     .10000E-03    42.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     167.37        178.76        .15591E-03   -1.3113    
  25  Prefactor     39.288        114.66        .63932E-04   -1.4454    
  26  Prefactor     .10000E-03    13.555        .13486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          61.056        71.069        .51350E-04   -1.4144    
  28  Prefactor     .10000E-03    51.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.3898        8.4480        .72356E-03   -1.5289    
  30  Prefactor     .10000E-03    30.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    14.356        .13917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4830        .19298        .17106E-03   -.78257    
  33  Prefactor     .62733E-11    .14337        .73079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19532e-09
Minuit parameter uncertainties:
  1  0.000258148
  2  5.81508
  3  82.2311
  4  4.47616e-05
  5  53.567
  6  0.00101563
  7  6.71351e-06
  8  0.00400986
  9  0.00767565
  10  0.00114691
  11  92.7351
  12  3.34054e-07
  13  1.49733e-06
  14  0.000100266
  15  2.75774e-06
  16  2.78752e-06
  17  5.32032e-06
  18  4.49299e-07
  19  9.17139e-05
  20  0.00103467
  21  0.000143448
  22  54.5312
  23  0.0001242
  24  179.342
  25  115.313
  26  2.33341e-05
  27  71.1682
  28  0.000993729
  29  8.45029
  30  0.000150526
  31  1.38555e-05
  32  0.193076
  33  1.90126e-06
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.493e-07  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:  6.273e-12  1.901e-06  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.483e+00  1.931e-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: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212503/likelihoodResults_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.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) = 1417.88208103
delta logL = -0.00206876763559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1417.88001519
delta logL = -2.93635980597e-06

Fit tolerance = 1e-08

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

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

 FCN=   1417.880     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      252 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.065        .49770E-02** at limit **
   2  Index         1.8861        9.0539        .50000        .29387E-06
   3  Normalizat    1.4830        .27277E-01    .17106E-03   -.29314E-02
   4  Prefactor     .13063E-09    .39479E-02    .73077E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88615
  Normalizat = 1.48298
  Prefactor  = 1.3063e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   1417.880     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    219.26        .53324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8861        5.5703        .50000       -.67228    
   3  Normalizat    1.4830        .84871E-01    .34211E-04   -.78258    
   4  Prefactor     .13063E-09    .38203E-01    .14615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24717e-09
Minuit parameter uncertainties:
  1  0.000161809
  2  939.717
  3  0.0848788
  4  4.47072e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212503': 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) = 1417.88000839
delta logL = 3.86631654692e-06

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.618e-04  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.886e+00  9.397e+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:  1.306e-10  4.471e-06  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.483e+00  8.488e-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/212503/cmap_HighResolution_550627201_550886401_4FGL_J0923.5+4125_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-08-31 11:12:20.120436', job_id='212503', GAL2='0.00', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630433540.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='3.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1201' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:12:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 212503: <4FGL_J0923.5+4125_daily_bin1201> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1201> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 11:00:29 2021
Job was executed on host(s) <bullet0125>, 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:12:20 2021
Results reported at Tue Aug 31 11:12:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1201 140.895 41.4283 550627201 550886401 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 :                                   486.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

