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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1224
RA = 140.895, Dec = 41.4283
tmin = 556588801, tmax = 556848001
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='212544', job_status='RUN', time_executed='2021-08-31 11:04:01.184205', time_epoch_executed='1630433041.18' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212544/ft1_4FGL_J0923.5+4125_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212544/ft2_4FGL_J0923.5+4125_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212544/ft1_4FGL_J0923.5+4125_daily_bin1224.fits outfile=/scratch/kocevski/212544/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1224.fits ra=140.895 dec=41.4283 rad=12.0 tmin=556588801.0 tmax=556848001.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.61
user 3.40
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212544/ft2_4FGL_J0923.5+4125_daily_bin1224.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/212544/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/212544/ft1_filtered_4FGL_J0923.5+4125_daily_bin1224.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.65
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212544/ft1_filtered_4FGL_J0923.5+4125_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/212544/ft2_4FGL_J0923.5+4125_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/212544/ltcube_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.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/212544/ft2_4FGL_J0923.5+4125_daily_bin1224.fits
.....................!
real 11.74
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212544/ft1_filtered_4FGL_J0923.5+4125_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/212544/ft2_4FGL_J0923.5+4125_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/212544/ltcube_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.fits outfile=/scratch/kocevski/212544/expmap_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.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/212544/ltcube_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.fits
.....................!
real 190.85
user 186.02
sys 4.08

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/212544/ft1_filtered_4FGL_J0923.5+4125_daily_bin1224.fits scfile=/scratch/kocevski/212544/ft2_4FGL_J0923.5+4125_daily_bin1224.fits outfile=/scratch/kocevski/212544/cmap_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.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.57
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212544/ft1_filtered_4FGL_J0923.5+4125_daily_bin1224.fits scfile=/scratch/kocevski/212544/ft2_4FGL_J0923.5+4125_daily_bin1224.fits outfile=/scratch/kocevski/212544/cmap_HighResolution_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9343       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    203.42       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .54088       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19710E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    104.85       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    96.744       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    95.519       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    139.28       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    219.27       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4030       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .63568E-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=   563.4319     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4561 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.47        .28654E-06** at limit **
   2  Prefactor     6.1035        11.815        .41198E-06   -.25624E-03
   3  Prefactor     .10000E-03    83.677       -.14016E-06** at limit **
   4  Prefactor     .10000E-03    27.857        .58679E-08** at limit **
   5  norm          .10000E-03    7.3210        .16602E-06** at limit **
   6  norm          .10000E-03    7.2221        .17622E-06** at limit **
   7  Prefactor     9.9333        10.660       -.20004E-07   -.21735E-03
   8  Prefactor     .10000E-03    46.943        .10853E-05** at limit **
   9  Prefactor     203.56        254.12        .12721E-05   -.18840E-04
  10  Prefactor     .10000E-03    11.541        .25992E-07** at limit **
  11  Prefactor     .10000E-03    114.93        .38220E-06** at limit **
  12  Prefactor     .10000E-03    7.1626        .20260E-07** at limit **
  13  norm          .10000E-03    8.2808        .10861E-07** at limit **
  14  Prefactor     .10000E-03    49.704        .64362E-07** at limit **
  15  norm          .54049        1.5195        .41520E-06   -.42265E-03
  16  Prefactor     .10000E-03    20.791       -.93881E-07** at limit **
  17  norm          .10000E-03    19.880       -.66642E-07** at limit **
  18  Prefactor     .10000E-03    8.7536        .25497E-07** at limit **
  19  Prefactor     .10002E-03    263.74       -.14746E-04** at limit **
  20  Prefactor     .10000E-03    20.591       -.97989E-06** at limit **
  21  Prefactor     104.78        95.298        .26404E-05   -.47079E-04
  22  norm          .10000E-03    52.827       -.58541E-07** at limit **
  23  Prefactor     .10000E-03    96.371       -.14522E-07** at limit **
  24  Prefactor     .10000E-03    33.228       -.19408E-05** at limit **
  25  Prefactor     96.742        180.06        .36986E-06   -.11555E-04
  26  Prefactor     .10000E-03    79.126       -.31052E-06** at limit **
  27  norm          95.525        95.814        .68875E-07   -.36755E-04
  28  Prefactor     .10000E-03    26.232       -.72329E-06** at limit **
  29  Prefactor     139.27        169.53       -.14734E-06   -.45745E-05
  30  Prefactor     .10000E-03    272.83       -.42959E-06** at limit **
  31  norm          219.29        321.14        .92136E-07   -.38577E-05
  32  Normalizat    1.4028        .36399       -.46286E-05   -.22578E-03
  33  Prefactor     .10054E-10    .55491        .19759E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.10348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.9333
  Prefactor  = 0.0001
  Prefactor  = 203.562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.540485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 104.778
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.7419
  Prefactor  = 0.0001
  norm       = 95.5252
  Prefactor  = 0.0001
  Prefactor  = 139.275
  Prefactor  = 0.000100001
  norm       = 219.292
  Normalizat = 1.4028
  Prefactor  = 1.00542e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   563.4319     FROM HESSE     STATUS=OK           673 CALLS     5234 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1035        11.827        .10197E-03   -1.5214    
   3  Prefactor     .10000E-03    83.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.922        .12242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.3243        .62747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.2201        .62316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9333        10.692        .73571E-04   -1.5078    
   8  Prefactor     .10000E-03    46.805        .15875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     203.56        253.30        .14168E-03   -1.2845    
  10  Prefactor     .10000E-03    11.561        .78790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    114.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1779        .62049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.2826        .66743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.725        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .54049        1.4330        .45147E-03   -1.5561    
  16  Prefactor     .10000E-03    20.974        .20792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.878        .10340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8088        .68530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    253.67        .40484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.636        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     104.78        96.122        .19636E-03   -1.3657    
  22  norm          .10000E-03    52.824        .16869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    96.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.047        .13308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     96.742        180.16        .40866E-04   -1.3738    
  26  Prefactor     .10000E-03    79.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          95.525        95.953        .41125E-04   -1.3750    
  28  Prefactor     .10000E-03    26.208        .11865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     139.27        169.50        .17066E-03   -1.3342    
  30  Prefactor     .10000E-03    272.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          219.29        321.23        .13657E-03   -1.2735    
  32  Normalizat    1.4028        .37597        .19743E-03   -.80548    
  33  Prefactor     .10054E-10    .77333        .99387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31902e-10
Minuit parameter uncertainties:
  1  0.000234589
  2  11.8318
  3  0.000139162
  4  4.95052e-06
  5  8.26897e-06
  6  4.96088e-06
  7  10.6939
  8  7.64962e-05
  9  254.681
  10  9.24739e-06
  11  0.000393614
  12  1.17686e-06
  13  2.74616e-06
  14  3.30131e-05
  15  1.4331
  16  9.38098e-05
  17  3.41124e-05
  18  6.10962e-06
  19  0.00446575
  20  0.000104894
  21  96.2649
  22  4.4612e-05
  23  3.16886e-05
  24  0.000217709
  25  181.194
  26  0.00021425
  27  96.1096
  28  5.38186e-05
  29  170.1
  30  0.000935214
  31  323.864
  32  0.376712
  33  5.65125e-06
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  6.110e-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:  1.005e-11  5.651e-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.403e+00  3.767e-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: 3.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212544/likelihoodResults_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.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): 0
logL (Free Index) = 563.432444228
delta logL = -0.000507688878884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 563.431953774
delta logL = -1.72352125674e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3495       1.0000          .0000       10.000    
     3 'Normalizat'    1.4027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26011E-04   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=   563.4319     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      252 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    291.01        .68644E-03** at limit **
   2  Index         2.3216        5.8275        .50000        .52965E-05
   3  Normalizat    1.4028        .78331E-01    .19743E-03    .14684E-05
   4  Prefactor     .52236E-12    .55935E-01    .99380E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100243
  Index      = 2.3216
  Normalizat = 1.40281
  Prefactor  = 5.2236e-13
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10024E-03    1037.6        .13729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3216        8.7877        .50000       -.56531    
   3  Normalizat    1.4028        .16635        .78970E-05   -.80547    
   4  Prefactor     .52236E-12    .25108        .19876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.87508e-09
Minuit parameter uncertainties:
  1  0.0323331
  2  1475.71
  3  0.166417
  4  7.27523e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212544': 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) = 563.431936506
delta logL = 3.3052060644e-08

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.002e-04  3.233e-02  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.322e+00  1.476e+03  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:  5.224e-13  7.275e-07  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.403e+00  1.664e-01  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/212544/cmap_HighResolution_556588801_556848001_4FGL_J0923.5+4125_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-02', job_status='DONE', photon_flux_upper_limit='3.83e-07', time_completed='2021-08-31 11:10:44.596085', job_id='212544', GAL2='0.00', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630433444.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='3.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1224' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 212544: <4FGL_J0923.5+4125_daily_bin1224> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1224> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 11:00:31 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:00:32 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:32 2021
Terminated at Tue Aug 31 11:10:45 2021
Results reported at Tue Aug 31 11:10:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1224 140.895 41.4283 556588801 556848001 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 :                                   398.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            614 sec.

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

