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


Performing analysis on: 4FGL_J0920.9+4441_daily_bin75
RA = 140.229, Dec = 44.699
tmin = 258768001, tmax = 259027201
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='128479', job_status='RUN', time_executed='2021-08-31 06:47:59.114517', time_epoch_executed='1630417679.11' WHERE source_name='4FGL J0920.9+4441' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128479

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128479/ft1_4FGL_J0920.9+4441_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128479/ft1_4FGL_J0920.9+4441_daily_bin75.fits outfile=/scratch/kocevski/128479/ft1_filteredMKT_4FGL_J0920.9+4441_daily_bin75.fits ra=140.229 dec=44.699 rad=12.0 tmin=258768001.0 tmax=259027201.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.56
user 0.94
sys 0.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.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/128479/ft1_filteredMKT_4FGL_J0920.9+4441_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.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.32
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/128479/ltcube_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.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/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits
.....................!
real 8.93
user 8.21
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/128479/ltcube_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.fits outfile=/scratch/kocevski/128479/expmap_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.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/128479/ltcube_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.fits
.....................!
real 191.24
user 185.53
sys 5.32

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

Setting source of interest to:
4FGL J0920.9+4441 @ 140.229 44.699

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits scfile=/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits outfile=/scratch/kocevski/128479/cmap_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.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.229 yref=44.699 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.93
user 0.36
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits scfile=/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits outfile=/scratch/kocevski/128479/cmap_HighResolution_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.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.229 yref=44.699 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.91
user 0.36
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128479/Model_4FGL_J0920.9+4441_daily_bin75.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/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits.....................!
real 39.00
user 37.22
sys 1.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits', '/scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits', expMap='/scratch/kocevski/128479/expmap_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.fits', expCube='/scratch/kocevski/128479/ltcube_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/128479/Model_4FGL_J0920.9+4441_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0920.9+4441'

4FGL J0920.9+4441
   Spectrum: LogParabola
316         norm:  1.124e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
317        alpha:  2.267e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  1.363e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  8.119e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/128479/ft1_filtered_4FGL_J0920.9+4441_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/128479/ft2_4FGL_J0920.9+4441_daily_bin75.fits
Exposure map: /scratch/kocevski/128479/expmap_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.fits
Exposure cube: /scratch/kocevski/128479/ltcube_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/128479/Model_4FGL_J0920.9+4441_daily_bin75.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) = 3513.59504713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8386       1.0000         .10000E-03   10000.    
     7 'norm      '    23.808       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7897       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3449       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.769       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11557E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .14751E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.696       1.0000         .10000E-03   10000.    
    19 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0755       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86356E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39775E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.354       1.0000         .10000E-03   10000.    
    28 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.9240       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .84964       1.0000         .10000E-03   10000.    
    31 'norm      '    4.6435       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4854       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .47738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3513.583     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     4627 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5915        1.0461        .14924E-07    .11627E-03
   2  Prefactor     .10000E-03    13.108       -.25226E-08** at limit **
   3  Prefactor     5.8221        4.1528       -.10561E-07   -.67338E-05
   4  Prefactor     52.196        31.274       -.99547E-06   -.20642E-03
   5  Prefactor     .10000E-03    6.8754       -.31905E-06** at limit **
   6  Prefactor     8.8387        8.5348        .56884E-06   -.12790E-03
   7  norm          23.806        12.739        .30599E-06    .50170E-04
   8  norm          2.7891        9.2655       -.65664E-06    .79418E-04
   9  Prefactor     .10000E-03    9.8383        .24407E-06** at limit **
  10  Prefactor     .10001E-03    9.0694        .59716E-05** at limit **
  11  Prefactor     6.1083        54.600       -.52597E-06   -.97542E-05
  12  Prefactor     .10000E-03    45.109        .21878E-06** at limit **
  13  Prefactor     1.3434        5.9615       -.13937E-05    .55339E-04
  14  Prefactor     42.800        56.149       -.14042E-05   -.53633E-04
  15  Prefactor     .10000E-03    3.5877        .29525E-07** at limit **
  16  Prefactor     .10000E-03    16.962       -.90184E-06** at limit **
  17  norm          .10000E-03    .85331       -.54106E-06** at limit **
  18  Prefactor     11.685        6.0024       -.60126E-06   -.18937E-02
  19  norm          .10000E-03    4.1236       -.19429E-07** at limit **
  20  Prefactor     2.0734        3.1115       -.62769E-07   -.67854E-04
  21  Prefactor     .10000E-03    14.194       -.38480E-05** at limit **
  22  Prefactor     .10000E-03    2.0219        .40092E-07** at limit **
  23  Prefactor     .10000E-03    118.99       -.25339E-05** at limit **
  24  norm          .10000E-03    8.5458       -.71420E-07** at limit **
  25  Prefactor     .10000E-03    16.628        .16716E-06** at limit **
  26  Prefactor     .10000E-03    5.8349        .30097E-06** at limit **
  27  Prefactor     54.395        46.020       -.47008E-06   -.68964E-04
  28  norm          .10000E-03    13.848        .14582E-05** at limit **
  29  Prefactor     3.9376        10.120        .20639E-07    .12472E-03
  30  Prefactor     .99954        203.09        .25511E-04   -.12752E-03
  31  norm          4.6436        4.2346        .70491E-07    .22554E-04
  32  Normalizat    1.4855        .26295       -.10830E-05   -.37950E-03
  33  Prefactor     .47725        .24396        .15852E-05    .44448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.59152
  Prefactor  = 0.0001
  Prefactor  = 5.82209
  Prefactor  = 52.1957
  Prefactor  = 0.0001
  Prefactor  = 8.83871
  norm       = 23.8057
  norm       = 2.78907
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 6.10828
  Prefactor  = 0.0001
  Prefactor  = 1.34342
  Prefactor  = 42.7998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 11.6852
  norm       = 0.0001
  Prefactor  = 2.07337
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.3954
  norm       = 0.0001
  Prefactor  = 3.93763
  Prefactor  = 0.999542
  norm       = 4.64357
  Normalizat = 1.48553
  Prefactor  = 0.477252
 **********
 **   18 **HESSE 
 **********

 FCN=   3513.583     FROM HESSE     STATUS=OK           693 CALLS     5320 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5915        1.0455        .25347E-04   -1.5386    
   2  Prefactor     .10000E-03    13.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8221        4.1502        .98800E-04   -1.5225    
   4  Prefactor     52.196        31.443        .27747E-03   -1.4262    
   5  Prefactor     .10000E-03    6.8912        .15172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8387        8.5423        .67411E-03   -1.5113    
   7  norm          23.806        12.504        .82094E-04   -1.4732    
   8  norm          2.7891        9.1796        .24361E-03   -1.5374    
   9  Prefactor     .10000E-03    9.8500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    12.654        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1083        54.323        .16260E-03   -1.5214    
  12  Prefactor     .10000E-03    45.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3434        5.7916        .27226E-03   -1.5476    
  14  Prefactor     42.800        56.156        .61299E-04   -1.4399    
  15  Prefactor     .10000E-03    3.7064        .21863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.8843        .77551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.685        5.3614        .84565E-04   -1.5024    
  19  norm          .10000E-03    4.1287        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0734        3.0828        .12108E-03   -1.5420    
  21  Prefactor     .10000E-03    83.176        .36802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0327        .82299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    123.58        .42532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.5486        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.8579        .13980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     54.395        46.119        .54406E-04   -1.4232    
  28  norm          .10000E-03    13.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.9376        10.222        .20366E-03   -1.5311    
  30  Prefactor     .99954        597.80        .83477E-02   -1.5508    
  31  norm          4.6436        4.2368        .11255E-03   -1.5277    
  32  Normalizat    1.4855        .29641        .22101E-03   -.78186    
  33  Prefactor     .47725        .26934        .37713E-03   -1.1303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77013e-09
Minuit parameter uncertainties:
  1  1.04551
  2  2.81953e-05
  3  4.15036
  4  31.4529
  5  7.13939e-06
  6  8.54345
  7  12.5053
  8  9.18424
  9  2.97015e-05
  10  0.000519591
  11  36.4759
  12  9.9083e-05
  13  5.57946
  14  56.225
  15  5.32047e-05
  16  0.000105475
  17  0.000295021
  18  5.36161
  19  1.38323e-05
  20  3.08308
  21  0.00119714
  22  2.02547e-06
  23  0.000983814
  24  3.26663e-06
  25  4.3046e-05
  26  1.62252e-05
  27  46.1489
  28  0.000155921
  29  10.2263
  30  49.3896
  31  4.23704
  32  0.296754
  33  0.270066
Done.

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

Extracting fit parameters...

4FGL J0920.9+4441
   Spectrum: LogParabola
316         norm:  1.000e-04  2.950e-04  1.000e-04  1.000e+04 ( 1.000e-11)
317        alpha:  2.267e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  1.363e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  8.119e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  4.773e-01  2.701e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  1.486e+00  2.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.229 44.699
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128479/likelihoodResults_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3513.58388036
delta logL = -0.000783890117418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3513.56655079
delta logL = 0.0165456822238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70527E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0187       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+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=   3513.567     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      475 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70525E-01    1.5824        .56401E-03    .17669E-02
   2  alpha         3.0191        4.0011        .45104E-01    .18139E-04
   3  Normalizat    1.4758        .26086        .22147E-03   -.93527E-04
   4  Prefactor     .48121        .26129        .37548E-03   -.50503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0705251
  alpha      = 3.01906
  Normalizat = 1.47576
  Prefactor  = 0.481215
 **********
 **   18 **HESSE 
 **********

 FCN=   3513.567     FROM HESSE     STATUS=OK            27 CALLS      502 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70525E-01    .69525        .22560E-04   -1.5655    
   2  alpha         3.0191        3.7363        .18042E-02    .20915    
   3  Normalizat    1.4758        .26098        .44295E-04   -.78462    
   4  Prefactor     .48121        .26150        .15019E-04   -1.1285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16632e-10
Minuit parameter uncertainties:
  1  0.442557
  2  2.70495
  3  0.261216
  4  0.262156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128479': 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) = 3513.56655076
delta logL = 0.0165457076291

Extracting fit parameters...

4FGL J0920.9+4441
   Spectrum: LogParabola
316         norm:  7.053e-02  4.426e-01  1.000e-04  1.000e+04 ( 1.000e-11)
317        alpha:  3.019e+00  2.705e+00  0.000e+00  5.000e+00 ( 1.000e+00)
318         beta:  1.363e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  8.119e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  4.812e-01  2.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  1.476e+00  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 140.229 44.699

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/128479/cmap_HighResolution_258768001_259027201_4FGL_J0920.9+4441_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-08-31 07:00:37.029220', job_id='128479', GAL2='0.48', fit_tolerance='1e-08', EG2='1.48', EG='1.49', time_epoch_completed='1630418437.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='1.65e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='75' AND source_name='4FGL J0920.9+4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 07:00:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 128479: <4FGL_J0920.9+4441_daily_bin75> in cluster <slac> Done

Job <4FGL_J0920.9+4441_daily_bin75> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 06:46:50 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:46:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 06:46:51 2021
Terminated at Tue Aug 31 07:00:37 2021
Results reported at Tue Aug 31 07:00:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0920.9+4441_daily_bin75 140.229 44.699 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0920.9+4441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.21 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             317.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

