/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 4 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0923.5+4125_daily_bin110
RA = 140.895, Dec = 41.4283
tmin = 267840001, tmax = 268099201
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='204211', job_status='RUN', time_executed='2021-08-31 10:35:59.101559', time_epoch_executed='1630431359.1' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204211

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204211/ft1_4FGL_J0923.5+4125_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204211/ft2_4FGL_J0923.5+4125_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204211/ft1_4FGL_J0923.5+4125_daily_bin110.fits outfile=/scratch/kocevski/204211/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin110.fits ra=140.895 dec=41.4283 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.46
user 1.30
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204211/ft1_filtered_4FGL_J0923.5+4125_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/204211/ft2_4FGL_J0923.5+4125_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/204211/ltcube_267840001_268099201_4FGL_J0923.5+4125_daily_bin110.fits outfile=/scratch/kocevski/204211/expmap_267840001_268099201_4FGL_J0923.5+4125_daily_bin110.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/204211/ltcube_267840001_268099201_4FGL_J0923.5+4125_daily_bin110.fits
.....................!
real 190.98
user 184.98
sys 5.16

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/204211/ft1_filtered_4FGL_J0923.5+4125_daily_bin110.fits scfile=/scratch/kocevski/204211/ft2_4FGL_J0923.5+4125_daily_bin110.fits outfile=/scratch/kocevski/204211/cmap_267840001_268099201_4FGL_J0923.5+4125_daily_bin110.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 1.06
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204211/ft1_filtered_4FGL_J0923.5+4125_daily_bin110.fits scfile=/scratch/kocevski/204211/ft2_4FGL_J0923.5+4125_daily_bin110.fits outfile=/scratch/kocevski/204211/cmap_HighResolution_267840001_268099201_4FGL_J0923.5+4125_daily_bin110.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.74
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55704E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5483       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5608       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13357E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41684E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6711       1.0000         .10000E-03   10000.    
    17 'norm      '    12.206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .67944E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.3612       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12357E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1646       1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.077       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9003       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .98317       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88976       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=   4973.266     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4599 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2461       -.62064E-06** at limit **
   2  Prefactor     3.5491        2.6768       -.10117E-06    .61502E-04
   3  Prefactor     55.232        33.354        .14044E-05    .47934E-04
   4  Prefactor     .10000E-03    21.562       -.15458E-05** at limit **
   5  norm          5.5556        5.7857       -.59232E-06    .69245E-04
   6  norm          .10000E-03    4.2285       -.18920E-08** at limit **
   7  Prefactor     .10000E-03    1.5632       -.45775E-07** at limit **
   8  Prefactor     .10000E-03    12.742        .79715E-06** at limit **
   9  Prefactor     .10000E-03    462.16       -.17347E-04** at limit **
  10  Prefactor     .10000E-03    1.5218        .71147E-07** at limit **
  11  Prefactor     31.051        30.137        .61711E-07   -.74386E-06
  12  Prefactor     .10000E-03    1.2751        .39494E-07** at limit **
  13  norm          .10000E-03    .74164        .31342E-07** at limit **
  14  Prefactor     .10000E-03    14.191       -.16635E-06** at limit **
  15  norm          1.1858        .84667        .19313E-07    .13602E-03
  16  Prefactor     5.6700        5.1559       -.18913E-07    .56999E-04
  17  norm          12.205        9.6450       -.35568E-06   -.13874E-04
  18  Prefactor     1.4636        1.5476        .28413E-08    .14913E-04
  19  Prefactor     .10000E-03    15.369       -.62043E-07** at limit **
  20  Prefactor     .10000E-03    6.6603        .58725E-06** at limit **
  21  Prefactor     .10000E-03    128.16       -.52701E-05** at limit **
  22  norm          8.3639        16.396        .63191E-07   -.14061E-04
  23  Prefactor     .10000E-03    35.585        .25628E-05** at limit **
  24  Prefactor     9.1656        9.3612       -.60139E-06   -.13103E-03
  25  Prefactor     32.065        35.965       -.13816E-05   -.16201E-04
  26  Prefactor     2.8985        9.8281       -.11461E-06    .40077E-06
  27  norm          .10000E-03    5.8048       -.61973E-07** at limit **
  28  Prefactor     .10000E-03    2.5212        .68606E-07** at limit **
  29  Prefactor     .10000E-03    2.1243        .64148E-07** at limit **
  30  Prefactor     .10000E-03    14.316        .35977E-06** at limit **
  31  norm          .10000E-03    8.5210       -.16158E-06** at limit **
  32  Normalizat    .98338        .18747        .14286E-06   -.16769E-04
  33  Prefactor     .88948        .19812       -.42303E-06    .15651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 3.54906
  Prefactor  = 55.2318
  Prefactor  = 0.0001
  norm       = 5.5556
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 31.0511
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18577
  Prefactor  = 5.66996
  norm       = 12.2046
  Prefactor  = 1.46356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.36391
  Prefactor  = 0.0001
  Prefactor  = 9.16559
  Prefactor  = 32.0653
  Prefactor  = 2.89854
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.983375
  Prefactor  = 0.889478
 **********
 **   18 **HESSE 
 **********

 FCN=   4973.266     FROM HESSE     STATUS=OK           695 CALLS     5294 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.150        .37558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5491        2.6487        .95920E-04   -1.5331    
   3  Prefactor     55.232        33.169        .53988E-04   -1.4220    
   4  Prefactor     .10000E-03    22.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5556        5.7379        .82754E-03   -1.5237    
   6  norm          .10000E-03    4.2803        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9323        .16594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    454.62        .21245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6066        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.051        30.126        .71904E-04   -1.4593    
  12  Prefactor     .10000E-03    1.2862        .77713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .74218        .59313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1858        .89791        .38596E-04   -1.5490    
  16  Prefactor     5.6700        5.5224        .10431E-03   -1.5232    
  17  norm          12.205        9.6178        .57329E-03   -1.5009    
  18  Prefactor     1.4636        1.5502        .86578E-04   -1.5466    
  19  Prefactor     .10000E-03    15.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8501        .35525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    125.60        .57578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.3639        16.374        .13864E-03   -1.5129    
  23  Prefactor     .10000E-03    36.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.1656        9.0552        .13239E-03   -1.5102    
  25  Prefactor     32.065        36.034        .70748E-04   -1.4575    
  26  Prefactor     2.8985        9.8497        .23860E-03   -1.5367    
  27  norm          .10000E-03    5.8206        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.5289        .10934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.1329        .10036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    8.6159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .98338        .21701        .22998E-03   -.93589    
  33  Prefactor     .88948        .22951        .27013E-03   -.96510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61858e-10
Minuit parameter uncertainties:
  1  0.000830542
  2  2.64874
  3  33.1799
  4  5.45362e-05
  5  5.73848
  6  6.23644e-06
  7  0.000200603
  8  8.48783e-06
  9  0.00235529
  10  1.5578e-05
  11  30.1409
  12  1.42636e-06
  13  1.8073e-07
  14  1.3045e-05
  15  0.897922
  16  5.52293
  17  9.61903
  18  1.55023
  19  1.74962e-05
  20  1.5737e-05
  21  0.000318394
  22  16.3824
  23  6.18429e-05
  24  9.05657
  25  36.0589
  26  9.85516
  27  3.88758e-06
  28  2.75266e-06
  29  1.00874e-06
  30  6.89968e-06
  31  1.0117e-05
  32  0.217209
  33  0.229756
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.464e+00  1.550e+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

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  8.895e-01  2.298e-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:  9.834e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 7.10e-06 +/- 7.52e-06

TS (Fixed Index): 3.05
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204211/likelihoodResults_267840001_268099201_4FGL_J0923.5+4125_daily_bin110.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) = 4970.82252487
delta logL = 2.44361173978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4970.79202166
delta logL = 2.47411495125

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4970.792     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      212 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47034        .49670        .10750E-01   -.40104E-03
   2  Index         .82194        .39434        .19583       -.45116E-04
   3  Normalizat    .99726        .17291        .46130E-01    .44122E-05
   4  Prefactor     .88249        .19505        .44783E-01    .38179E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.470339
  Index      = 0.821941
  Normalizat = 0.99726
  Prefactor  = 0.882493
 **********
 **   18 **HESSE 
 **********

 FCN=   4970.792     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47034        .95059        .42753E-03   -1.5571    
   2  Index         .82194        .68672        .85034E-03   -.98925    
   3  Normalizat    .99726        .19824        .22860E-03   -.93122    
   4  Prefactor     .88249        .22361        .27110E-03   -.96756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28871e-10
Minuit parameter uncertainties:
  1  0.950619
  2  0.69408
  3  0.198382
  4  0.22384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204211': 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) = 4970.79202068
delta logL = 2.47411593056

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  8.825e-01  2.238e-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:  9.973e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.99
Ra Dec: 140.895 41.428
Photon Index (Free Index): 0.82 +/- 0.69
Photon Flux (Free Index): 3.98e-09 +/- 4.34e-09
Energy Flux (Free Index): 8.51e-05 +/- 1.15e-04

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/204211/cmap_HighResolution_267840001_268099201_4FGL_J0923.5+4125_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='8.51e-05', photon_flux_error='2.16e-08', dlogl='2.47e+00', energy_flux='7.10e-06', photon_flux2='3.98e-09', job_status='DONE', time_completed='2021-08-31 10:51:04.525700', photon_index_error2='0.69', photon_index2='0.82', ts='3.05', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='1.15e-04', EG='0.98', time_epoch_completed='1630432264.53', return_code='0', job_id='204211', GAL2='0.88', EG2='1.00', return_code2='0', energy_flux_error='7.52e-06', photon_flux_error2='4.34e-09', ts2='7.99', photon_index='2.36' WHERE bin_id='110' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:51:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 204211: <4FGL_J0923.5+4125_daily_bin110> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin110> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 10:35:40 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:35:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 10:35:41 2021
Terminated at Tue Aug 31 10:51:05 2021
Results reported at Tue Aug 31 10:51:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin110 140.895 41.4283 267840001 268099201 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 :                                   897.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

