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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1228
RA = 140.895, Dec = 41.4283
tmin = 557625601, tmax = 557884801
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='212552', job_status='RUN', time_executed='2021-08-31 11:03:05.610409', time_epoch_executed='1630432985.61' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212552

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212552/ft1_4FGL_J0923.5+4125_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212552/ft2_4FGL_J0923.5+4125_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212552/ft1_4FGL_J0923.5+4125_daily_bin1228.fits outfile=/scratch/kocevski/212552/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1228.fits ra=140.895 dec=41.4283 rad=12.0 tmin=557625601.0 tmax=557884801.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212552/ft1_filtered_4FGL_J0923.5+4125_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/212552/ft2_4FGL_J0923.5+4125_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/212552/ltcube_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.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/212552/ft2_4FGL_J0923.5+4125_daily_bin1228.fits
.....................!
real 12.26
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212552/ft1_filtered_4FGL_J0923.5+4125_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/212552/ft2_4FGL_J0923.5+4125_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/212552/ltcube_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.fits outfile=/scratch/kocevski/212552/expmap_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.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/212552/ltcube_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.fits
.....................!
real 190.46
user 185.99
sys 3.87

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/212552/ft1_filtered_4FGL_J0923.5+4125_daily_bin1228.fits scfile=/scratch/kocevski/212552/ft2_4FGL_J0923.5+4125_daily_bin1228.fits outfile=/scratch/kocevski/212552/cmap_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212552/ft1_filtered_4FGL_J0923.5+4125_daily_bin1228.fits scfile=/scratch/kocevski/212552/ft2_4FGL_J0923.5+4125_daily_bin1228.fits outfile=/scratch/kocevski/212552/cmap_HighResolution_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.928       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4465       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12279E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19446E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.032       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11998E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-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 '    5587.3       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12905E-03   1.0000         .10000E-03   10000.    
    27 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13472E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    30 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    31 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89527       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=   726.3838     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     5677 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.940        25.589       -.10259E-05   -.15804E-04
   2  Prefactor     .10000E-03    3.5485        .11891E-06** at limit **
   3  Prefactor     .10000E-03    32.440        .60915E-05** at limit **
   4  Prefactor     .10000E-03    11.632       -.24153E-07** at limit **
   5  norm          .10000E-03    3.3290       -.10871E-07** at limit **
   6  norm          5.4449        7.5022       -.14132E-05    .72646E-05
   7  Prefactor     .10000E-03    1.4270       -.23349E-07** at limit **
   8  Prefactor     .10000E-03    36.952       -.14380E-04** at limit **
   9  Prefactor     .10000E-03    56.188        .34487E-04** at limit **
  10  Prefactor     4.8148        7.3711       -.37575E-06    .18524E-03
  11  Prefactor     .10000E-03    60.781        .85994E-05** at limit **
  12  Prefactor     .10000E-03    4.8818       -.12666E-06** at limit **
  13  norm          .60367E-03    9.0132       -.34103E-05** at limit **
  14  Prefactor     35.053        40.674        .45646E-05    .18055E-05
  15  norm          .10000E-03    .47719       -.68780E-08** at limit **
  16  Prefactor     .10000E-03    2.3723       -.20824E-08** at limit **
  17  norm          5.9474        17.729       -.19493E-05   -.15670E-04
  18  Prefactor     .10000E-03    3.0462       -.23340E-07** at limit **
  19  Prefactor     .10000E-03    38.242       -.37365E-06** at limit **
  20  Prefactor     .10000E-03    94.603       -.25258E-04** at limit **
  21  Prefactor     .10000E-03    184.54        .75889E-04** at limit **
  22  norm          .10000E-03    85.636       -.40969E-04** at limit **
  23  Prefactor     .10000E-03    86.072       -.40456E-04** at limit **
  24  Prefactor     5587.7        3090.3        .83324E-04    .47583E-05
  25  Prefactor     .10000E-03    168.06        .86237E-04** at limit **
  26  Prefactor     .10000E-03    176.36        .82391E-04** at limit **
  27  norm         10000.0        6286.1        .51630E-03** at limit **
  28  Prefactor     .10000E-03    276.48       -.97983E-04** at limit **
  29  Prefactor     10000.        1170.9        .12519E-02** at limit **
  30  Prefactor    10000.0        8306.5        .91397E-03** at limit **
  31  norm         10000.0        7538.0        .65197E-03** at limit **
  32  Normalizat    .10000E-01    .13958       -.96760E-06** at limit **
  33  Prefactor     .89527        .21398       -.27337E-06    .12263E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.44488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.81484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000603672
  Prefactor  = 35.0531
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5587.72
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.895269
 **********
 **   18 **HESSE 
 **********

 FCN=   726.3838     FROM HESSE     STATUS=OK           681 CALLS     6358 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.940        25.522        .66860E-04   -1.4508    
   2  Prefactor     .10000E-03    3.5704        .49327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.519        .15000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.678        .89782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3314        .48039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4449        7.4995        .84473E-04   -1.5241    
   7  Prefactor     .10000E-03    1.4271        .31452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.959        .16014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8148        7.3847        .86893E-04   -1.5269    
  11  Prefactor     .10000E-03    60.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9331        .58154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60367E-03    43.219        .26520E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.053        40.695        .67707E-04   -1.4523    
  15  norm          .10000E-03    .47744        .18187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3725        .40554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9474        17.725        .16466E-03   -1.5220    
  18  Prefactor     .10000E-03    3.0508        .45946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.242        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    94.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    184.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    85.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    86.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5587.7        3089.9        .40279E-04    .11782    
  25  Prefactor     .10000E-03    168.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    176.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm         10000.0        6286.2        .20646E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    276.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10000.        1170.8        .18144E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor    10000.0        8306.5        .20016E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm         10000.0        7538.0        .20516E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .14918        .59013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .89527        .20746        .17626E-03   -.96307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7123e-08
Minuit parameter uncertainties:
  1  25.5299
  2  1.22181e-05
  3  8.91017e-06
  4  1.87097e-05
  5  2.47543e-06
  6  7.50079
  7  1.37899e-06
  8  0.000101689
  9  1.74661e-05
  10  7.38612
  11  0.000109436
  12  2.24792e-05
  13  0.295294
  14  40.727
  15  6.15992e-07
  16  1.83428e-06
  17  17.741
  18  4.51472e-06
  19  3.12913e-05
  20  0.000138552
  21  7.29041e-05
  22  2.01758e-06
  23  6.15664e-06
  24  3335.09
  25  4.4744e-06
  26  2.69555e-06
  27  0.000746365
  28  6.63647e-05
  29  7.56071e-06
  30  0.000391193
  31  0.000203121
  32  6.30043e-07
  33  0.207641
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  8.953e-01  2.076e-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  6.300e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/212552/likelihoodResults_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.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) = 726.385207134
delta logL = -0.0013680469184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 726.38383872
delta logL = 3.66808080798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3301       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89531       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=   726.3838     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      260 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.885        .47491E-02** at limit **
   2  Index         1.6804        7.0582        .50000       -.33225E-08
   3  Normalizat    .10000E-01    .26341E-02    .59013E-02** at limit **
   4  Prefactor     .89527        .25335E-01    .17626E-03    .33052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68042
  Normalizat = 0.01
  Prefactor  = 0.895271
 **********
 **   18 **HESSE 
 **********

 FCN=   726.3838     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    307.18        .58671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6804        8.9243        .50000       -.72604    
   3  Normalizat    .10000E-01    .21362E-01    .11803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89527        .72153E-01    .35253E-04   -.96307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.99494e-10
Minuit parameter uncertainties:
  1  0.000140769
  2  812.033
  3  8.45979e-07
  4  0.0721608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212552': 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) = 726.383832766
delta logL = 6.3204684011e-06

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.000e-02  8.460e-07  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/212552/cmap_HighResolution_557625601_557884801_4FGL_J0923.5+4125_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-02', job_status='DONE', photon_flux_upper_limit='2.21e-07', time_completed='2021-08-31 11:10:21.887327', job_id='212552', GAL2='0.90', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630433421.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1228' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:10:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 212552: <4FGL_J0923.5+4125_daily_bin1228> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1228> 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) <bullet0166>, 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:22 2021
Results reported at Tue Aug 31 11:10:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1228 140.895 41.4283 557625601 557884801 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 :                                   430.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            591 sec.

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

