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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1262
RA = 140.895, Dec = 41.4283
tmin = 566438401, tmax = 566697601
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='212604', job_status='RUN', time_executed='2021-08-31 11:01:09.026539', time_epoch_executed='1630432869.03' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212604

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212604/ft1_4FGL_J0923.5+4125_daily_bin1262.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212604/ft2_4FGL_J0923.5+4125_daily_bin1262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212604/ft1_4FGL_J0923.5+4125_daily_bin1262.fits outfile=/scratch/kocevski/212604/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1262.fits ra=140.895 dec=41.4283 rad=12.0 tmin=566438401.0 tmax=566697601.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 2.28
user 2.03
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212604/ft1_filtered_4FGL_J0923.5+4125_daily_bin1262.fits" evtable="EVENTS" scfile=/scratch/kocevski/212604/ft2_4FGL_J0923.5+4125_daily_bin1262.fits sctable="SC_DATA" outfile=/scratch/kocevski/212604/ltcube_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.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/212604/ft2_4FGL_J0923.5+4125_daily_bin1262.fits
.....................!
real 12.25
user 11.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212604/ft1_filtered_4FGL_J0923.5+4125_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/212604/ft2_4FGL_J0923.5+4125_daily_bin1262.fits sctable="SC_DATA" expcube=/scratch/kocevski/212604/ltcube_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.fits outfile=/scratch/kocevski/212604/expmap_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.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/212604/ltcube_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.fits
.....................!
real 189.88
user 185.48
sys 4.02

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 213 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/212604/ft1_filtered_4FGL_J0923.5+4125_daily_bin1262.fits scfile=/scratch/kocevski/212604/ft2_4FGL_J0923.5+4125_daily_bin1262.fits outfile=/scratch/kocevski/212604/cmap_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.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.54
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212604/ft1_filtered_4FGL_J0923.5+4125_daily_bin1262.fits scfile=/scratch/kocevski/212604/ft2_4FGL_J0923.5+4125_daily_bin1262.fits outfile=/scratch/kocevski/212604/cmap_HighResolution_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4861       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.314       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7432       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2587       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4561       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .63593       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77122       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60163       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .88728       1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.967       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4789       1.0000         .10000E-03   10000.    
    27 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .75354       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0211       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0747       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=   3119.245     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     5264 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1520       -.69302E-07** at limit **
   2  Prefactor     .10000E-03    2.4667       -.38944E-07** at limit **
   3  Prefactor     3.1316        116.07       -.69962E-06   -.11797E-05
   4  Prefactor     .10000E-03    37.700       -.50604E-06** at limit **
   5  norm          .10000E-03    15.013        .12316E-05** at limit **
   6  norm          .10000E-03    4.3137        .26027E-06** at limit **
   7  Prefactor     3.4864        5.0862        .52805E-06    .23378E-04
   8  Prefactor     .10000E-03    14.188        .48551E-06** at limit **
   9  Prefactor     10.450        400.46       -.66021E-05    .76120E-05
  10  Prefactor     8.7437        5.5883        .63609E-07   -.53435E-05
  11  Prefactor     .10000E-03    29.300        .41604E-07** at limit **
  12  Prefactor     4.2599        5.7306        .14829E-06   -.47869E-04
  13  norm          3.4564        3.2199        .35381E-07   -.25253E-05
  14  Prefactor     .10000E-03    14.365        .13480E-08** at limit **
  15  norm          .63576        .63977       -.22135E-08   -.40745E-03
  16  Prefactor     .10000E-03    3.6276        .38690E-06** at limit **
  17  norm          12.996        12.694        .15660E-06   -.14410E-04
  18  Prefactor     .10000E-03    1.8123        .81008E-08** at limit **
  19  Prefactor     .10000E-03    11.684        .30029E-06** at limit **
  20  Prefactor     .77391        16.397        .52105E-05    .11235E-03
  21  Prefactor     .52220        42.387       -.25917E-05    .14525E-03
  22  norm          .10000E-03    7.3860       -.36506E-07** at limit **
  23  Prefactor     .10000E-03    8.5754       -.33801E-08** at limit **
  24  Prefactor     .91727        13.264       -.93389E-06    .12311E-03
  25  Prefactor     45.965        46.342        .37969E-06   -.97951E-05
  26  Prefactor     3.4865        11.539        .63236E-06   -.17151E-04
  27  norm          .10000E-03    33.870       -.60102E-06** at limit **
  28  Prefactor     .10000E-03    3.4639       -.56547E-07** at limit **
  29  Prefactor     .75345        7.8736        .43619E-06   -.55984E-04
  30  Prefactor     .10000E-03    45.973       -.12767E-06** at limit **
  31  norm          .10000E-03    19.308       -.13492E-06** at limit **
  32  Normalizat    1.0211        .24671       -.88721E-06   -.44189E-05
  33  Prefactor     1.0746        .27146       -.34535E-06   -.16789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.13159
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.48637
  Prefactor  = 0.0001
  Prefactor  = 10.4498
  Prefactor  = 8.74369
  Prefactor  = 0.0001
  Prefactor  = 4.25989
  norm       = 3.4564
  Prefactor  = 0.0001
  norm       = 0.635764
  Prefactor  = 0.0001
  norm       = 12.9963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.773911
  Prefactor  = 0.522197
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.917271
  Prefactor  = 45.9645
  Prefactor  = 3.48653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.753448
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02115
  Prefactor  = 1.07465
 **********
 **   18 **HESSE 
 **********

 FCN=   3119.245     FROM HESSE     STATUS=OK           701 CALLS     5965 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1501        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4729        .85656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1316        116.09        .22898E-03   -1.5354    
   4  Prefactor     .10000E-03    37.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.3142        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4864        5.0413        .14029E-03   -1.5335    
   8  Prefactor     .10000E-03    14.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.450        388.62        .12476E-03   -1.5061    
  10  Prefactor     8.7437        5.5882        .10220E-03   -1.5116    
  11  Prefactor     .10000E-03    29.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2599        5.6730        .14383E-03   -1.5295    
  13  norm          3.4564        3.2163        .94197E-04   -1.5336    
  14  Prefactor     .10000E-03    14.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .63576        .60062        .40809E-04   -1.5549    
  16  Prefactor     .10000E-03    5.4356        .19200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.996        12.686        .11113E-03   -1.4987    
  18  Prefactor     .10000E-03    1.8320        .73270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .77391        17.130        .40808E-03   -1.5532    
  21  Prefactor     .52220        444.27        .58770E-02   -1.5563    
  22  norm          .10000E-03    7.3867        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5741        .15973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .91727        56.329        .33281E-02   -1.5516    
  25  Prefactor     45.965        46.485        .59137E-04   -1.4351    
  26  Prefactor     3.4865        11.331        .21680E-03   -1.5335    
  27  norm          .10000E-03    34.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.4711        .10147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .75345        14.415        .27554E-02   -1.5534    
  30  Prefactor     .10000E-03    46.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    19.848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0211        .28499        .23787E-03   -.92325    
  33  Prefactor     1.0746        .31695        .27402E-03   -.90281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87503e-08
Minuit parameter uncertainties:
  1  1.09456e-05
  2  1.03462e-06
  3  38.2133
  4  1.26179e-05
  5  3.62885e-06
  6  3.20486e-06
  7  5.04194
  8  1.21134e-05
  9  128.36
  10  5.58849
  11  2.6246e-05
  12  5.67371
  13  3.21644
  14  1.73401e-07
  15  0.600621
  16  3.34291e-05
  17  12.6882
  18  6.76162e-07
  19  1.8738e-05
  20  7.28396
  21  30.6909
  22  1.38314e-06
  23  9.77725e-06
  24  14.3897
  25  46.5217
  26  11.3375
  27  3.01109e-05
  28  2.24286e-06
  29  6.59254
  30  9.21215e-05
  31  3.44905e-05
  32  0.285413
  33  0.317509
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  6.762e-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:  1.075e+00  3.175e-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.021e+00  2.854e-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: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212604/likelihoodResults_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.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) = 3119.2474045
delta logL = -0.00255780801808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3119.24484672
delta logL = -2.83025656245e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3608       1.0000          .0000       10.000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3119.245     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    399.31        .73343E-03** at limit **
   2  Index         2.3666        5.5682        .50000       -.27917E-04
   3  Normalizat    1.0211        .15828        .23787E-03    .25665E-04
   4  Prefactor     1.0747        .18712        .27402E-03    .25557E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3119.245     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      415 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    399.31        .23561E-03** at limit **
   2  Index         2.3666        5.5682        .16398E-05   -.27917E-04
   3  Normalizat    1.0211        .15828        .11050E-06    .25665E-04
   4  Prefactor     1.0747        .18712        .81435E-07    .25557E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3119.245     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      449 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9708        .14669E-03** at limit **
   2  Index         2.3668        6.1829        .50000       -.27929E-04
   3  Normalizat    1.0211        .25908        .95149E-05    .22343E-04
   4  Prefactor     1.0747        .30637        .10961E-04    .23130E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.36684
  Normalizat = 1.02115
  Prefactor  = 1.07465
 **********
 **   18 **HESSE 
 **********

 FCN=   3119.245     FROM HESSE     STATUS=OK            29 CALLS      478 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8412        .29337E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3668        6.1831        .50000       -.55463    
   3  Normalizat    1.0211        .25950        .19030E-05   -.92325    
   4  Prefactor     1.0747        .30689        .21922E-05   -.90281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45589e-09
Minuit parameter uncertainties:
  1  0.000101029
  2  4.2568
  3  0.259817
  4  0.307391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212604': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3119.24484661
delta logL = 7.32138687454e-08

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.010e-04  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.367e+00  4.257e+00  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.075e+00  3.074e-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.021e+00  2.598e-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/212604/cmap_HighResolution_566438401_566697601_4FGL_J0923.5+4125_daily_bin1262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-08-31 11:13:15.806023', job_id='212604', GAL2='1.07', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630433595.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1262' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:13:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 212604: <4FGL_J0923.5+4125_daily_bin1262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1262 140.895 41.4283 566438401 566697601 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 :                                   711.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

