/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 128 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0922.6+4454_daily_bin1182
RA = 140.659, Dec = 44.9131
tmin = 545702401, tmax = 545961601
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='166304', job_status='RUN', time_executed='2021-08-31 08:43:27.495753', time_epoch_executed='1630424607.5' WHERE source_name='4FGL J0922.6+4454' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166304

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166304/ft1_4FGL_J0922.6+4454_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166304/ft1_4FGL_J0922.6+4454_daily_bin1182.fits outfile=/scratch/kocevski/166304/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin1182.fits ra=140.659 dec=44.9131 rad=12.0 tmin=545702401.0 tmax=545961601.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 4.50
user 3.84
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.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/166304/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin1182.fits evtable="EVENTS" outfile="/scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.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.84
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/166304/ltcube_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.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/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits
.....................!
real 12.22
user 11.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/166304/ltcube_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.fits outfile=/scratch/kocevski/166304/expmap_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.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/166304/ltcube_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.fits
.....................!
real 190.52
user 185.32
sys 4.48

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J0922.6+4454 @ 140.659 44.9131

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits scfile=/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits outfile=/scratch/kocevski/166304/cmap_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.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.659 yref=44.9131 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.14
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits scfile=/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits outfile=/scratch/kocevski/166304/cmap_HighResolution_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.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.659 yref=44.9131 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.40
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166304/Model_4FGL_J0922.6+4454_daily_bin1182.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/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits.....................!
real 31.39
user 19.57
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits', '/scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits', expMap='/scratch/kocevski/166304/expmap_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.fits', expCube='/scratch/kocevski/166304/ltcube_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166304/Model_4FGL_J0922.6+4454_daily_bin1182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0922.6+4454'

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.166e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  7.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/166304/ft1_filtered_4FGL_J0922.6+4454_daily_bin1182.fits
Spacecraft file(s): /scratch/kocevski/166304/ft2_4FGL_J0922.6+4454_daily_bin1182.fits
Exposure map: /scratch/kocevski/166304/expmap_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.fits
Exposure cube: /scratch/kocevski/166304/ltcube_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166304/Model_4FGL_J0922.6+4454_daily_bin1182.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1031.50865783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1027.7257508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24347       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77789E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62635E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13891E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6664       1.0000         .10000E-03   10000.    
     6 'norm      '    .82953E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .15218E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8697       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19084E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7987       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65466E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36115E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .27268E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.443       1.0000         .10000E-03   10000.    
    18 'norm      '    15.326       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    154.36       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .63703E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.840       1.0000         .10000E-03   10000.    
    23 'norm      '    .65938E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .37235E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10229E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    72.635       1.0000         .10000E-03   10000.    
    27 'norm      '    1.6918       1.0000         .10000E-03   10000.    
    28 'norm      '    .94213E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10869       1.0000         .10000E-03   10000.    
    30 'Prefactor '    101.41       1.0000         .10000E-03   10000.    
    31 'norm      '    33.716       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89805E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.6816       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1027.702     FROM MIGRAD    STATUS=CONVERGED    287 CALLS      717 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24090        14.091       -.55550E-05   -.12812E-04
   2  Prefactor     .10000E-03    38.546        .36281E-05** at limit **
   3  Prefactor     .10000E-03    65.266       -.29769E-05** at limit **
   4  Prefactor     .10000E-03    112.19       -.75722E-05** at limit **
   5  Prefactor     2.6664        1.0188         .0000         .0000    
   6  norm          .10001E-03    69.517        .10602E-04** at limit **
   7  norm          .10149E-03    30.663        .24756E-06** at limit **
   8  Prefactor     3.8697        1.0086         .0000         .0000    
   9  Prefactor     14.774        11.783        .59115E-06   -.12128E-02
  10  Prefactor     .10001E-03    598.79        .50785E-05** at limit **
  11  Prefactor     .10296E-03    827.81        .31203E-04** at limit **
  12  Prefactor     8.8024        6.1561       -.93370E-07   -.71078E-04
  13  Prefactor     .10000E-03    60.957        .87549E-06** at limit **
  14  Prefactor     15.325        12.724        .15936E-06    .10933E-02
  15  Prefactor     .10000E-03    46.568        .37172E-06** at limit **
  16  norm          .10000E-03    4.5255        .20166E-05** at limit **
  17  Prefactor     20.303        12.908       -.67017E-06   -.45788E-02
  18  norm          15.133        15.954        .17837E-06   -.28908E-02
  19  Prefactor     .10000E-03    3.2608       -.10166E-05** at limit **
  20  Prefactor     177.93        121.73        .28316E-06   -.13879E-01
  21  Prefactor     .10012E-03    92.579        .92962E-06** at limit **
  22  Prefactor     .13665E-02    403.28        .91116E-05** at limit **
  23  norm          .11682E-03    123.33        .10883E-04** at limit **
  24  Prefactor     .10000E-03    70.818        .68501E-06** at limit **
  25  Prefactor     .10020E-03    144.82        .11671E-04** at limit **
  26  Prefactor     67.569        91.728        .37489E-05    .36599E-02
  27  norm          1.6918        1.0522         .0000         .0000    
  28  norm          .10017E-03    150.24        .57859E-05** at limit **
  29  Prefactor     .10000E-03    82.463       -.36885E-05** at limit **
  30  Prefactor     100.83        97.936       -.27212E-05   -.42680E-02
  31  norm          33.734        16.793        .91069E-06   -.92818E-02
  32  Normalizat    .97898E-01    1.0917        .41930E-04   -.31894E-05
  33  Prefactor     1.6789        .69081        .78995E-05   -.25705E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.240905
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.66641
  norm       = 0.00010001
  norm       = 0.000101488
  Prefactor  = 3.86972
  Prefactor  = 14.7742
  Prefactor  = 0.000100006
  Prefactor  = 0.000102965
  Prefactor  = 8.80244
  Prefactor  = 0.0001
  Prefactor  = 15.3249
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.3031
  norm       = 15.1327
  Prefactor  = 0.0001
  Prefactor  = 177.925
  Prefactor  = 0.000100122
  Prefactor  = 0.00136654
  norm       = 0.000116822
  Prefactor  = 0.0001
  Prefactor  = 0.000100195
  Prefactor  = 67.569
  norm       = 1.69183
  norm       = 0.000100174
  Prefactor  = 0.0001
  Prefactor  = 100.832
  norm       = 33.734
  Normalizat = 0.097898
  Prefactor  = 1.67888
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1027.702     FROM HESSE     STATUS=FAILED        29 CALLS      746 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24090        6.6613        .28188E-01   -1.5610    
   2  Prefactor     .10000E-03    38.752        .92625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    65.401        .93316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    111.75        .90923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     558.90        556.14         .0000       -1.5381    
   6  norm          .10001E-03    .21192        .10602E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10149E-03    .20697        .24756E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8697        1.0086         .0000       -1.5315    
   9  Prefactor     14.774        1.0019        .59115E-06   -1.4939    
  10  Prefactor     .10001E-03    .25681        .50785E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10296E-03    .10720        .31203E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8024        1.0018       -.93370E-07   -1.5115    
  13  Prefactor     .10000E-03    .22104        .87549E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.325        1.0012        .15936E-06   -1.4925    
  15  Prefactor     .10000E-03    .21169        .37172E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .28701        .20166E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.303        .99688       -.67017E-06   -1.4806    
  18  norm          15.133        .99421        .17837E-06   -1.4930    
  19  Prefactor     .10000E-03    .20571       -.10166E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     177.93        1.0723        .28316E-06   -1.3032    
  21  Prefactor     .10012E-03    .21793        .92962E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13665E-02    .12028E-01    .91116E-05   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .11682E-03    .22078        .10883E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .28345        .68501E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10020E-03    .20585        .11671E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     67.569        .96477        .37489E-05   -1.4062    
  27  norm          1.6918        1.0522         .0000       -1.5448    
  28  norm          .10017E-03    .22485        .57859E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .22813       -.36885E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     100.83        .99720       -.27212E-05   -1.3696    
  31  norm          33.734        1.0004        .91069E-06   -1.4546    
  32  Normalizat    .97898E-01    .30586        .41930E-04   -1.3829    
  33  Prefactor     1.6789        1.0336        .78995E-05   -.72646    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.41899e-10
Minuit parameter uncertainties:
  1  2.53335
  2  7.51123e-05
  3  0.000534449
  4  0.000419535
  5  1.01876
  6  9.0663e-05
  7  0.00111002
  8  1.0086
  9  1.00192
  10  7.90105e-05
  11  0.00112751
  12  1.00184
  13  6.03205e-06
  14  1.00121
  15  3.96186e-06
  16  3.09892e-06
  17  0.996878
  18  0.994213
  19  8.19625e-07
  20  1.07235
  21  0.000325952
  22  0.00780621
  23  0.00385429
  24  4.75892e-06
  25  0.000400715
  26  0.964768
  27  1.05216
  28  0.000395105
  29  2.88714e-06
  30  0.9972
  31  1.00037
  32  0.311623
  33  1.04727
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1027.70247195

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  2.030e+01  9.969e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  7.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.679e+00  1.047e+00  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  9.790e-02  3.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 140.659 44.913
Photon Index (Fixed Index): 2.87 +/- 0.00
Photon Flux (Fixed Index): 3.39e-07 +/- 1.66e-08
Energy Flux (Fixed Index): 7.26e-05 +/- 3.56e-06

TS (Fixed Index): 1.22
Ra Dec: 140.659 44.913
Photon Flux Upper Limit: 1.16e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166304/likelihoodResults_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.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) = 1027.69060146
delta logL = 0.0118704916886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1027.67997981
delta logL = 0.0224921367865

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1027.680     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      260 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.546        26.857        .98421E-04    .51085E-04
   2  Index         3.0801        1.0672        .42661E-02    .23339E-04
   3  Normalizat    .83903E-01    1.4621        .82919E-02    .18563E-04
   4  Prefactor     1.6925        .74976        .23673E-03    .78629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.546
  Index      = 3.08011
  Normalizat = 0.0839028
  Prefactor  = 1.69249
 **********
 **   18 **HESSE 
 **********

 FCN=   1027.680     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.546        25.563        .39368E-05   -1.4894    
   2  Index         3.0801        1.0153        .17064E-03   -.39410    
   3  Normalizat    .83903E-01    1.1995        .33168E-03   -1.3986    
   4  Prefactor     1.6925        .67749        .47346E-04   -.72282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80944e-11
Minuit parameter uncertainties:
  1  25.5798
  2  1.02371
  3  0.61055
  4  0.681231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166304': 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) = 1027.67997941
delta logL = 0.0224925384773

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.655e+01  2.558e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  3.080e+00  1.024e+00  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  7.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.692e+00  6.812e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  8.390e-02  6.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 140.659 44.913
Photon Index (Free Index): 3.08 +/- 1.02
Photon Flux (Free Index): 3.78e-07 +/- 4.26e-07
Energy Flux (Free Index): 7.27e-05 +/- 7.61e-05

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/166304/cmap_HighResolution_545702401_545961601_4FGL_J0922.6+4454_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-02', comment='SUCCESS', photon_flux='3.39e-07', energy_flux2='7.27e-05', photon_flux_error='1.66e-08', dlogl='2.25e-02', energy_flux='7.26e-05', photon_flux2='3.78e-07', job_status='DONE', time_completed='2021-08-31 08:49:52.490481', photon_index_error2='1.02', photon_index2='3.08', ts='1.22', fit_tolerance='1e-08', GAL='1.68', photon_index_error='0.00', photon_flux_upper_limit='1.16e-06', energy_flux_error2='7.61e-05', EG='0.10', time_epoch_completed='1630424992.49', return_code='101', job_id='166304', GAL2='1.69', EG2='0.08', return_code2='0', energy_flux_error='3.56e-06', photon_flux_error2='4.26e-07', ts2='1.34', photon_index='2.87' WHERE bin_id='1182' AND source_name='4FGL J0922.6+4454' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 08:49:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 166304: <4FGL_J0922.6+4454_daily_bin1182> in cluster <slac> Done

Job <4FGL_J0922.6+4454_daily_bin1182> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 08:40:55 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 08:40:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 08:40:57 2021
Terminated at Tue Aug 31 08:49:53 2021
Results reported at Tue Aug 31 08:49:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0922.6+4454_daily_bin1182 140.659 44.9131 545702401 545961601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0922.6+4454 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   358.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            538 sec.

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

