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


Performing analysis on: 4FGL_J0920.9+4441_daily_bin727
RA = 140.229, Dec = 44.699
tmin = 427766401, tmax = 428025601
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='132743', job_status='RUN', time_executed='2021-08-31 07:02:51.910571', time_epoch_executed='1630418571.91' WHERE source_name='4FGL J0920.9+4441' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132743/ft1_4FGL_J0920.9+4441_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132743/ft1_4FGL_J0920.9+4441_daily_bin727.fits outfile=/scratch/kocevski/132743/ft1_filteredMKT_4FGL_J0920.9+4441_daily_bin727.fits ra=140.229 dec=44.699 rad=12.0 tmin=427766401.0 tmax=428025601.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 5.97
user 5.13
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/132743/ft1_filtered_4FGL_J0920.9+4441_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/132743/ltcube_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.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/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits
.....................!
real 12.78
user 11.91
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132743/ft1_filtered_4FGL_J0920.9+4441_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/132743/ltcube_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.fits outfile=/scratch/kocevski/132743/expmap_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.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/132743/ltcube_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.fits
.....................!
real 191.28
user 186.08
sys 4.45

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/132743/ft1_filtered_4FGL_J0920.9+4441_daily_bin727.fits scfile=/scratch/kocevski/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits outfile=/scratch/kocevski/132743/cmap_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.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.91
user 0.35
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/132743/ft1_filtered_4FGL_J0920.9+4441_daily_bin727.fits scfile=/scratch/kocevski/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits outfile=/scratch/kocevski/132743/cmap_HighResolution_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.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 1.02
user 0.37
sys 0.48

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/132743/ft1_filtered_4FGL_J0920.9+4441_daily_bin727.fits', '/scratch/kocevski/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits', expMap='/scratch/kocevski/132743/expmap_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.fits', expCube='/scratch/kocevski/132743/ltcube_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/132743/Model_4FGL_J0920.9+4441_daily_bin727.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/132743/ft1_filtered_4FGL_J0920.9+4441_daily_bin727.fits
Spacecraft file(s): /scratch/kocevski/132743/ft2_4FGL_J0920.9+4441_daily_bin727.fits
Exposure map: /scratch/kocevski/132743/expmap_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.fits
Exposure cube: /scratch/kocevski/132743/ltcube_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/132743/Model_4FGL_J0920.9+4441_daily_bin727.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) = 3490.87765079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20648E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1207       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8870       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15201E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    87.435       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4664       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5229       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.848       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5212       1.0000         .10000E-03   10000.    
    19 'norm      '    11.072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.728       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9924       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    27.250       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.171       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6783       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.2359       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.3008       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2293       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .47813       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=   3490.867     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     4657 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2338        .82779       -.15562E-07    .26215E-03
   2  Prefactor     .10000E-03    71.873       -.98422E-06** at limit **
   3  Prefactor     8.1219        6.1234        .96700E-07    .15069E-03
   4  Prefactor     .10000E-03    18.260        .16645E-06** at limit **
   5  Prefactor     2.8904        18.434        .60242E-05    .71085E-04
   6  Prefactor     .10000E-03    3.7577        .59752E-07** at limit **
   7  norm          .10017E-03    10.789       -.25284E-05** at limit **
   8  norm          5.0956        7.9877        .11351E-06    .43989E-03
   9  Prefactor     .10000E-03    5.0685        .36621E-08** at limit **
  10  Prefactor     .10000E-03    1.4591       -.11253E-06** at limit **
  11  Prefactor     .10004E-03    34.962       -.26875E-05** at limit **
  12  Prefactor     87.395        89.927        .45924E-05    .94094E-04
  13  Prefactor     9.4663        5.9538        .13360E-07    .52886E-05
  14  Prefactor     .10000E-03    24.900       -.15156E-07** at limit **
  15  Prefactor     6.5236        4.5372       -.30191E-08    .24128E-04
  16  Prefactor     19.845        29.854       -.84732E-08    .44960E-05
  17  norm          .10000E-03    .40459        .47856E-07** at limit **
  18  Prefactor     2.5211        4.3703       -.94392E-07   -.41451E-04
  19  norm          11.072        13.578        .64850E-07    .25736E-05
  20  Prefactor     .10000E-03    2.6501        .15184E-07** at limit **
  21  Prefactor     19.729        13.921       -.26004E-07    .15279E-03
  22  Prefactor     1.9936        5.7716        .42087E-06    .17626E-03
  23  Prefactor     .10000E-03    8.6942       -.35591E-07** at limit **
  24  norm          27.253        23.454        .46109E-07   -.62822E-05
  25  Prefactor     22.177        32.783        .80853E-07   -.36606E-05
  26  Prefactor     3.6787        10.129        .18822E-06    .56136E-04
  27  Prefactor     7.2438        28.046        .47272E-06   -.54049E-05
  28  norm          .10000E-03    9.5970        .26455E-07** at limit **
  29  Prefactor     .10000E-03    6.1984        .33040E-09** at limit **
  30  Prefactor     .10000E-03    34.628       -.12179E-07** at limit **
  31  norm          2.3010        2.9369        .41733E-07    .63097E-05
  32  Normalizat    1.2292        .22793        .44096E-06    .38604E-03
  33  Prefactor     .47818        .22304       -.16083E-05    .19383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23375
  Prefactor  = 0.0001
  Prefactor  = 8.12193
  Prefactor  = 0.0001
  Prefactor  = 2.89036
  Prefactor  = 0.0001
  norm       = 0.000100173
  norm       = 5.09559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 87.3952
  Prefactor  = 9.46626
  Prefactor  = 0.0001
  Prefactor  = 6.52359
  Prefactor  = 19.8445
  norm       = 0.0001
  Prefactor  = 2.52115
  norm       = 11.0721
  Prefactor  = 0.0001
  Prefactor  = 19.7292
  Prefactor  = 1.99363
  Prefactor  = 0.0001
  norm       = 27.2532
  Prefactor  = 22.1766
  Prefactor  = 3.67869
  Prefactor  = 7.24384
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30097
  Normalizat = 1.22919
  Prefactor  = 0.478177
 **********
 **   18 **HESSE 
 **********

 FCN=   3490.867     FROM HESSE     STATUS=OK           701 CALLS     5358 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2338        .82996        .42071E-04   -1.5486    
   2  Prefactor     .10000E-03    72.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1219        6.0988        .12014E-03   -1.5138    
   4  Prefactor     .10000E-03    18.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8904        18.678        .11959E-02   -1.5368    
   6  Prefactor     .10000E-03    3.7667        .11184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10017E-03    67.191        .32129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0956        7.7690        .17811E-03   -1.5256    
   9  Prefactor     .10000E-03    5.0691        .12992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4721        .69688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    228.45        .62962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     87.395        90.354        .21483E-03   -1.3836    
  13  Prefactor     9.4663        5.9530        .11110E-03   -1.5093    
  14  Prefactor     .10000E-03    24.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5236        4.5255        .98115E-04   -1.5197    
  16  Prefactor     19.845        29.811        .89903E-04   -1.4817    
  17  norm          .10000E-03    .48449        .65179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5211        3.9367        .13353E-03   -1.5390    
  19  norm          11.072        13.558        .12040E-03   -1.5042    
  20  Prefactor     .10000E-03    2.7317        .18718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.729        13.879        .90175E-04   -1.4819    
  22  Prefactor     1.9936        5.6359        .20772E-03   -1.5426    
  23  Prefactor     .10000E-03    8.6987        .17015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          27.253        23.466        .76744E-04   -1.4663    
  25  Prefactor     22.177        32.817        .85067E-04   -1.4766    
  26  Prefactor     3.6787        9.9410        .21060E-03   -1.5324    
  27  Prefactor     7.2438        28.006        .14911E-03   -1.5170    
  28  norm          .10000E-03    9.6424        .17874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.2753        .14329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    34.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.3010        2.9220        .11060E-03   -1.5405    
  32  Normalizat    1.2292        .25059        .20873E-03   -.85705    
  33  Prefactor     .47818        .24081        .33455E-03   -1.1299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88441e-09
Minuit parameter uncertainties:
  1  0.829969
  2  0.000189745
  3  6.0993
  4  2.7453e-06
  5  14.7013
  6  6.0355e-06
  7  0.00681704
  8  7.77049
  9  1.06114e-06
  10  5.7477e-06
  11  0.00621477
  12  90.4964
  13  5.95339
  14  3.7644e-06
  15  4.52571
  16  29.8336
  17  1.84284e-06
  18  3.93707
  19  13.5614
  20  1.20259e-06
  21  13.8809
  22  5.63739
  23  4.37919e-06
  24  23.4735
  25  32.844
  26  9.94548
  27  28.0571
  28  1.52503e-07
  29  1.84441e-06
  30  4.44165e-06
  31  2.92219
  32  0.250838
  33  0.241319
Done.

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

Extracting fit parameters...

4FGL J0920.9+4441
   Spectrum: LogParabola
316         norm:  1.000e-04  1.843e-06  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.782e-01  2.413e-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.229e+00  2.508e-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: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/132743/likelihoodResults_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.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) = 3490.87624973
delta logL = -0.00963081932059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3490.86489035
delta logL = 0.00172855888786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21476E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4770       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48084       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3490.865     FROM MIGRAD    STATUS=FAILED       114 CALLS      376 TOTAL
                     EDM=   .66E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18040E-02    13.573        .20438E-03** at limit **
   2  alpha         4.5512        3.6737        .50000        .12430E-03
   3  Normalizat    1.2248        .65469E-01    .20902E-03   -.19800E-03
   4  Prefactor     .48081        .67904E-01    .33369E-03   -.93759E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3490.865     FROM SIMPLEX   STATUS=UNCHANGED    101 CALLS      477 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18040E-02    13.573        .60166E-04** at limit **
   2  alpha         4.5512        3.6737        .10909E-01    .12430E-03
   3  Normalizat    1.2248        .65469E-01    .16035E-03   -.19800E-03
   4  Prefactor     .48081        .67904E-01    .89403E-04   -.93759E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3490.865     FROM MIGRAD    STATUS=FAILED        74 CALLS      551 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18039E-02    18.242        .16350E-05** at limit **
   2  alpha         4.5512        2.6758        .50000        .12456E-03
   3  Normalizat    1.2248        .82932E-01    .83609E-05   -.18628E-03
   4  Prefactor     .48081        .86444E-01    .26695E-05   -.89006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00180389
  alpha      = 4.55121
  Normalizat = 1.22475
  Prefactor  = 0.480815
 **********
 **   18 **HESSE 
 **********

 FCN=   3490.865     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      578 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18039E-02    18.311        .74862E-07   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5512        2.7010        .50000        .96226    
   3  Normalizat    1.2248        .83078E-01    .16722E-05   -.85841    
   4  Prefactor     .48081        .87343E-01    .53391E-06   -1.1287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000121393
Minuit parameter uncertainties:
  1  0.353383
  2  126.062
  3  0.0830866
  4  0.0873675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132743': 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): 1
logL (Free Index) = 3490.86488013
delta logL = 0.00173877702764

Extracting fit parameters...

4FGL J0920.9+4441
   Spectrum: LogParabola
316         norm:  1.804e-03  3.534e-01  1.000e-04  1.000e+04 ( 1.000e-11)
317        alpha:  4.551e+00  1.261e+02  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.808e-01  8.737e-02  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.225e+00  8.309e-02  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/132743/cmap_HighResolution_427766401_428025601_4FGL_J0920.9+4441_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-08-31 07:15:51.513594', job_id='132743', GAL2='0.48', fit_tolerance='1e-08', EG2='1.22', EG='1.23', time_epoch_completed='1630419351.51', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='1.74e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='727' AND source_name='4FGL J0920.9+4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 07:15:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 132743: <4FGL_J0920.9+4441_daily_bin727> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0920.9+4441_daily_bin727 140.229 44.699 427766401 428025601 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 :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            899 sec.

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

