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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1225
RA = 140.895, Dec = 41.4283
tmin = 556848001, tmax = 557107201
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='212545', job_status='RUN', time_executed='2021-08-31 11:04:33.514812', time_epoch_executed='1630433073.51' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212545/ft1_4FGL_J0923.5+4125_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212545/ft2_4FGL_J0923.5+4125_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212545/ft1_4FGL_J0923.5+4125_daily_bin1225.fits outfile=/scratch/kocevski/212545/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1225.fits ra=140.895 dec=41.4283 rad=12.0 tmin=556848001.0 tmax=557107201.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.98
user 3.36
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212545/ft2_4FGL_J0923.5+4125_daily_bin1225.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/212545/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/212545/ft1_filtered_4FGL_J0923.5+4125_daily_bin1225.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.55
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212545/ft1_filtered_4FGL_J0923.5+4125_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/212545/ft2_4FGL_J0923.5+4125_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/212545/ltcube_556848001_557107201_4FGL_J0923.5+4125_daily_bin1225.fits outfile=/scratch/kocevski/212545/expmap_556848001_557107201_4FGL_J0923.5+4125_daily_bin1225.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/212545/ltcube_556848001_557107201_4FGL_J0923.5+4125_daily_bin1225.fits
.....................!
real 189.35
user 184.59
sys 4.04

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/212545/ft1_filtered_4FGL_J0923.5+4125_daily_bin1225.fits scfile=/scratch/kocevski/212545/ft2_4FGL_J0923.5+4125_daily_bin1225.fits outfile=/scratch/kocevski/212545/cmap_556848001_557107201_4FGL_J0923.5+4125_daily_bin1225.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.55
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .83838E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2484       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .96499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.345       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16398E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4903       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.283       1.0000         .10000E-03   10000.    
    15 'norm      '    .34419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12205E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12317E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1222       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.359       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9731       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8321       1.0000         .10000E-03   10000.    
    27 'norm      '    40.938       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .59113       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=   2386.907     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     4664 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.572        15.268       -.14649E-06   -.11199E-03
   2  Prefactor     .10000E-03    1.4438        .33718E-07** at limit **
   3  Prefactor     49.224        36.558        .11611E-05   -.29510E-04
   4  Prefactor     .10333E-03    13.004        .26065E-05** at limit **
   5  norm          .10000E-03    5.7276       -.34500E-06** at limit **
   6  norm          4.2479        6.8420        .29978E-05   -.36171E-03
   7  Prefactor     .96427        3.4382        .48283E-06   -.12600E-03
   8  Prefactor     33.346        29.866       -.54553E-06   -.19384E-04
   9  Prefactor     .10000E-03    35.963        .14401E-05** at limit **
  10  Prefactor     12.050        9.0763        .18996E-06   -.27933E-04
  11  Prefactor     .10000E-03    143.62       -.18628E-05** at limit **
  12  Prefactor     2.4906        5.1075       -.58876E-07   -.12996E-03
  13  norm          .10000E-03    2.8929        .15363E-07** at limit **
  14  Prefactor     33.296        49.733        .33703E-05    .11050E-03
  15  norm          .34267        .71355        .15158E-06    .20275E-03
  16  Prefactor     .10000E-03    4.7956       -.21065E-06** at limit **
  17  norm          .10000E-03    22.220        .20864E-05** at limit **
  18  Prefactor     4.1222        5.4393        .76250E-08   -.33650E-04
  19  Prefactor     12.361        9.4523       -.24215E-06    .38080E-04
  20  Prefactor     .10000E-03    2.7093       -.15294E-07** at limit **
  21  Prefactor     .10000E-03    8.5474       -.51743E-07** at limit **
  22  norm          .10000E-03    13.020        .11943E-05** at limit **
  23  Prefactor     .10000E-03    29.380       -.32803E-05** at limit **
  24  Prefactor     1.9724        6.5098        .72373E-06   -.64261E-04
  25  Prefactor     .10000E-03    31.219       -.28008E-05** at limit **
  26  Prefactor     8.8351        34.260        .14047E-05    .14087E-04
  27  norm          40.938        32.109        .82652E-06   -.20994E-04
  28  Prefactor     .10000E-03    21.260        .17724E-05** at limit **
  29  Prefactor     .10000E-03    14.294       -.18440E-05** at limit **
  30  Prefactor     .10000E-03    36.721        .33471E-05** at limit **
  31  norm          .10000E-03    24.848       -.75604E-06** at limit **
  32  Normalizat    1.0511        .29924       -.28348E-05   -.15545E-03
  33  Prefactor     .59137        .27755        .78925E-07   -.18291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5716
  Prefactor  = 0.0001
  Prefactor  = 49.2236
  Prefactor  = 0.000103332
  norm       = 0.0001
  norm       = 4.24795
  Prefactor  = 0.964265
  Prefactor  = 33.3459
  Prefactor  = 0.000100001
  Prefactor  = 12.0498
  Prefactor  = 0.000100004
  Prefactor  = 2.4906
  norm       = 0.0001
  Prefactor  = 33.2965
  norm       = 0.342666
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.12219
  Prefactor  = 12.3606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.97243
  Prefactor  = 0.000100002
  Prefactor  = 8.83505
  norm       = 40.938
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Normalizat = 1.05107
  Prefactor  = 0.591374
 **********
 **   18 **HESSE 
 **********

 FCN=   2386.907     FROM HESSE     STATUS=OK           693 CALLS     5357 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.572        15.262        .10150E-03   -1.4919    
   2  Prefactor     .10000E-03    1.4526        .57277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.224        35.153        .57173E-04   -1.4304    
   4  Prefactor     .10333E-03    150.29        .30241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8189        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2479        7.1906        .79894E-03   -1.5296    
   7  Prefactor     .96427        3.3658        .15398E-03   -1.5512    
   8  Prefactor     33.346        30.042        .69393E-04   -1.4552    
   9  Prefactor     .10000E-03    36.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.050        9.0832        .11540E-03   -1.5014    
  11  Prefactor     .10000E-03    144.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4906        5.0449        .13848E-03   -1.5392    
  13  norm          .10000E-03    2.8961        .81157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.296        49.908        .69458E-04   -1.4553    
  15  norm          .34267        .59007        .48707E-03   -1.5591    
  16  Prefactor     .10000E-03    6.9749        .17944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    22.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1222        5.3749        .11201E-03   -1.5302    
  19  Prefactor     12.361        9.4630        .56973E-03   -1.5005    
  20  Prefactor     .10000E-03    2.7358        .78506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5514        .13951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.103        .17274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.9724        6.4859        .21817E-03   -1.5427    
  25  Prefactor     .10000E-03    31.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.8351        34.309        .13487E-03   -1.5113    
  27  norm          40.938        32.205        .62650E-04   -1.4427    
  28  Prefactor     .10000E-03    21.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    14.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    37.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    24.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0511        .34939        .22630E-03   -.91339    
  33  Prefactor     .59137        .32497        .29822E-03   -1.0795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22352e-08
Minuit parameter uncertainties:
  1  15.2657
  2  1.35816e-06
  3  35.1679
  4  0.0448686
  5  2.6395e-05
  6  7.19208
  7  3.36649
  8  30.0553
  9  0.0003168
  10  9.08426
  11  0.00154257
  12  5.04578
  13  2.99647e-06
  14  49.9706
  15  0.590081
  16  1.83463e-05
  17  0.000158378
  18  5.37553
  19  9.46419
  20  2.41286e-06
  21  3.16882e-06
  22  0.000159312
  23  0.000622428
  24  6.48818
  25  0.000559159
  26  34.3858
  27  32.2187
  28  0.000277749
  29  0.000256679
  30  0.000746876
  31  0.000135008
  32  0.350162
  33  0.326012
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  4.122e+00  5.376e+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:  5.914e-01  3.260e-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.051e+00  3.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/212545/likelihoodResults_556848001_557107201_4FGL_J0923.5+4125_daily_bin1225.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) = 2386.26928585
delta logL = 0.637302729919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2386.12250296
delta logL = 0.7840856152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4079       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6331       1.0000          .0000       10.000    
     3 'Normalizat'    1.0762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56306       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=   2386.122     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4106        6.4479        .36839E-02    .54408E-04
   2  Index         1.6341        .44095        .13266       -.19749E-04
   3  Normalizat    1.0772        .27058        .39062E-01   -.89913E-05
   4  Prefactor     .56205        .27482        .68759E-01    .27428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.41057
  Index      = 1.63414
  Normalizat = 1.07725
  Prefactor  = 0.562049
 **********
 **   18 **HESSE 
 **********

 FCN=   2386.122     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4106        6.5328        .10869E-03   -1.5163    
   2  Index         1.6341        .47530        .55198E-02   -.73849    
   3  Normalizat    1.0772        .31262        .22347E-03   -.90486    
   4  Prefactor     .56205        .31647        .15217E-02   -1.0921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46273e-13
Minuit parameter uncertainties:
  1  6.53348
  2  0.476621
  3  0.313155
  4  0.317471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212545': 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) = 2386.12249463
delta logL = 0.784093949843

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  7.411e+00  6.533e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.634e+00  4.766e-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:  5.620e-01  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.077e+00  3.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 140.895 41.428
Photon Index (Free Index): 1.63 +/- 0.48
Photon Flux (Free Index): 4.38e-08 +/- 4.54e-08
Energy Flux (Free Index): 8.85e-05 +/- 1.13e-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/212545/cmap_HighResolution_556848001_557107201_4FGL_J0923.5+4125_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', energy_flux2='8.85e-05', dlogl='7.84e-01', photon_flux2='4.38e-08', job_status='DONE', time_completed='2021-08-31 11:14:44.794803', photon_index_error2='0.48', photon_index2='1.63', ts='0.92', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='1.13e-04', EG='1.05', time_epoch_completed='1630433684.79', return_code='0', job_id='212545', GAL2='0.56', EG2='1.08', return_code2='0', photon_flux_error2='4.54e-08', ts2='2.50', photon_index='2.36' WHERE bin_id='1225' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:14:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 212545: <4FGL_J0923.5+4125_daily_bin1225> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1225> 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) <bullet0303>, 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:14:45 2021
Results reported at Tue Aug 31 11:14:45 2021

Your job looked like:

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

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

