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


Performing analysis on: 4FGL_J0920.9+4441_daily_bin1280
RA = 140.229, Dec = 44.699
tmin = 571104001, tmax = 571363201
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='135776', job_status='RUN', time_executed='2021-08-31 07:11:07.647522', time_epoch_executed='1630419067.65' WHERE source_name='4FGL J0920.9+4441' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135776/ft1_4FGL_J0920.9+4441_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135776/ft2_4FGL_J0920.9+4441_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135776/ft1_4FGL_J0920.9+4441_daily_bin1280.fits outfile=/scratch/kocevski/135776/ft1_filteredMKT_4FGL_J0920.9+4441_daily_bin1280.fits ra=140.229 dec=44.699 rad=12.0 tmin=571104001.0 tmax=571363201.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.10
user 2.79
sys 1.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135776/ft2_4FGL_J0920.9+4441_daily_bin1280.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/135776/ft1_filteredMKT_4FGL_J0920.9+4441_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/135776/ft1_filtered_4FGL_J0920.9+4441_daily_bin1280.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 1.70
user 0.34
sys 1.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135776/ft1_filtered_4FGL_J0920.9+4441_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/135776/ft2_4FGL_J0920.9+4441_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/135776/ltcube_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.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/135776/ft2_4FGL_J0920.9+4441_daily_bin1280.fits
.....................!
real 14.04
user 12.32
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135776/ft1_filtered_4FGL_J0920.9+4441_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/135776/ft2_4FGL_J0920.9+4441_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/135776/ltcube_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.fits outfile=/scratch/kocevski/135776/expmap_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.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/135776/ltcube_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.fits
.....................!
real 192.60
user 185.46
sys 6.68

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/135776/ft1_filtered_4FGL_J0920.9+4441_daily_bin1280.fits scfile=/scratch/kocevski/135776/ft2_4FGL_J0920.9+4441_daily_bin1280.fits outfile=/scratch/kocevski/135776/cmap_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.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 1.69
user 0.37
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135776/ft1_filtered_4FGL_J0920.9+4441_daily_bin1280.fits scfile=/scratch/kocevski/135776/ft2_4FGL_J0920.9+4441_daily_bin1280.fits outfile=/scratch/kocevski/135776/cmap_HighResolution_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.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.65
user 0.36
sys 1.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25296E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31079       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81050E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32348E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .21466       1.0000         .10000E-03   10000.    
     8 'norm      '    .42815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .93180E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37422E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9593       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52042       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2823       1.0000         .10000E-03   10000.    
    17 'norm      '    2740.7       1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.910       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4703       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2478       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7228       1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.201       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4591       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9809       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8311       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2178       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.1816       1.0000         .10000E-03   10000.    
    28 'norm      '    2.8203       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .56119E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.7077       1.0000         .10000E-03   10000.    
    31 'norm      '    .14545E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .24933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   75.68021     FROM MIGRAD    STATUS=CONVERGED    516 CALLS      867 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3952       -.68637E-07** at limit **
   2  Prefactor     .10000E-03    37.264        .12956E-05** at limit **
   3  Prefactor     .10000E-03    11.893        .28605E-06** at limit **
   4  Prefactor     .10000E-03    105.04       -.11824E-06** at limit **
   5  Prefactor     .10000E-03    45.019       -.30387E-07** at limit **
   6  Prefactor     .10000E-03    15.096       -.65035E-07** at limit **
   7  norm          .10000E-03    151.20       -.53504E-05** at limit **
   8  norm          27.387        39.791       -.79387E-05   -.12782E-03
   9  Prefactor     .10000E-03    31.783        .49672E-06** at limit **
  10  Prefactor     .10000E-03    60.123        .10630E-06** at limit **
  11  Prefactor     .10000E-03    210.56        .14541E-05** at limit **
  12  Prefactor     .10000E-03    869.35        .13731E-04** at limit **
  13  Prefactor     1.9002        1.0396         .0000         .0000    
  14  Prefactor     19.979        86.034        .55481E-05   -.15672E-02
  15  Prefactor     .10018E-03    1217.5        .25063E-04** at limit **
  16  Prefactor     1581.8        2874.6       -.55542E-04   -.77903E-02
  17  norm          1.3001        9386.3        .23437E-04    .34069E-02
  18  Prefactor     9982.9        9341.9       -.31104E-03   -.48761E-02
  19  norm          9256.0        9256.6       -.32416E-03    .70842E-02
  20  Prefactor    10000.0        9594.0       -.22701E-03    .14554E-03
  21  Prefactor     .10676E-03    2109.9        .28738E-04** at limit **
  22  Prefactor     .44236E-03    981.82        .40454E-04** at limit **
  23  Prefactor    10000.0        9998.9        .23932E-03    .21217E-03
  24  norm          74.359        151.61       -.98474E-05   -.35452E-03
  25  Prefactor     2165.3        6065.0       -.72345E-04   -.41223E-02
  26  Prefactor     .10010E-03    2095.1        .78281E-05** at limit **
  27  Prefactor     36.471        162.86        .80823E-05   -.11549E-02
  28  norm          .10000E-03    462.17        .12053E-05** at limit **
  29  Prefactor     .10000E-03    94.349       -.57153E-06** at limit **
  30  Prefactor     .10000E-03    397.59       -.26940E-06** at limit **
  31  norm          .10000E-03    10.849        .37583E-06** at limit **
  32  Normalizat    .10000E-01    .12594       -.14875E-06** at limit **
  33  Prefactor     .26749        .25243       -.75685E-06   -.11380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 27.3875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9002
  Prefactor  = 19.9791
  Prefactor  = 0.000100178
  Prefactor  = 1581.8
  norm       = 1.30009
  Prefactor  = 9982.85
  norm       = 9256
  Prefactor  = 10000
  Prefactor  = 0.000106764
  Prefactor  = 0.000442364
  Prefactor  = 9999.99
  norm       = 74.3586
  Prefactor  = 2165.32
  Prefactor  = 0.000100097
  Prefactor  = 36.4707
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.267493
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   75.68021     FROM HESSE     STATUS=FAILED        57 CALLS      924 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4061        .45757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.321        .91488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.888        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    104.71        .10472E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.153        .94205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.258        .10679E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    159.46        .10044E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          27.387        37.499        .10974E-01   -1.4661    
   9  Prefactor     .10000E-03    31.545        .94787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    59.356        .10490E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    199.68        .92085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    859.97        .60741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     570.65        568.61         .0000       -1.5432    
  14  Prefactor     19.979        1.8362        .55481E-05   -1.6602    
  15  Prefactor     .10018E-03    .32227        .25063E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1581.8        13.559       -.55542E-04   -.75274    
  17  norm          1.3001        .25560E-01    .23437E-04   -1.5480    
  18  Prefactor     9982.9        .48633       -.31104E-03    1.4880    
  19  norm          9256.0        14.241       -.32416E-03    2.1233    
  20  Prefactor    10000.0        .78920E-01   -.22701E-03    1.5718    
  21  Prefactor     .10676E-03    .37421E-01    .28738E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .44236E-03    .28280E-02    .40454E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        .46211E-01    .23932E-03    1.5729    
  24  norm          74.359        6.3247       -.98474E-05   -1.3981    
  25  Prefactor     2165.3        24.887       -.72345E-04   -.60278    
  26  Prefactor     .10010E-03    .60157E-01    .78281E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     36.471        2.2557        .80823E-05   -1.6917    
  28  norm          .10000E-03    .91647E-01    .12053E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .22655       -.57153E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .16175       -.26940E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    .20571        .37583E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25505       -.14875E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .26749        .56883       -.75685E-06   -1.2422    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.98943e-09
Minuit parameter uncertainties:
  1  1.16045e-06
  2  0.000276416
  3  3.14718e-05
  4  2.02201e-05
  5  1.8719e-06
  6  1.08592e-05
  7  0.001527
  8  37.531
  9  0.000191337
  10  6.83002e-07
  11  0.000590415
  12  8.23708e-05
  13  1.03966
  14  1.83625
  15  0.00047949
  16  13.5595
  17  0.0255602
  18  0.486334
  19  14.2413
  20  0.028256
  21  0.0010062
  22  0.00196793
  23  0.0457334
  24  6.32477
  25  24.8872
  26  0.000152411
  27  2.25572
  28  1.35465e-05
  29  7.83039e-06
  30  3.00734e-06
  31  5.45688e-06
  32  2.1051e-07
  33  0.581326
Done.

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

Extracting fit parameters...

4FGL J0920.9+4441
   Spectrum: LogParabola
316         norm:  1.300e+00  2.556e-02  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:  2.675e-01  5.813e-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.000e-02  2.105e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.229 44.699
Photon Flux Upper Limit: 3.15e-04 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135776/likelihoodResults_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.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) = 75.6802123138
delta logL = 1.12393266249e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 75.6802121744
delta logL = 2.51794560313e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3001       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2678       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26750       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   75.44181     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      222 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.183        43.061        .76860E-05    .15385E-04
   2  alpha         5.0000        4.9718       -.10529E-03** at limit **
   3  Normalizat    .10000E-01    .12512       -.36345E-05** at limit **
   4  Prefactor     .26356        .23797        .72861E-05   -.16261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.1829
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.263565
 **********
 **   18 **HESSE 
 **********

 FCN=   75.44181     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.183        60.093        .96893E-02   -1.4704    
   2  alpha         5.0000        4.7952        .41378        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .12443        .32094E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .26356        .23557        .36303E-01   -1.2447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65298e-11
Minuit parameter uncertainties:
  1  60.2376
  2  7.11293e-05
  3  9.814e-07
  4  0.236426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135776': 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) = 75.4418086771
delta logL = 0.23840374911

Extracting fit parameters...

4FGL J0920.9+4441
   Spectrum: LogParabola
316         norm:  2.518e+01  6.024e+01  1.000e-04  1.000e+04 ( 1.000e-11)
317        alpha:  5.000e+00  7.113e-05  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:  2.636e-01  2.364e-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.000e-02  9.814e-07  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/135776/cmap_HighResolution_571104001_571363201_4FGL_J0920.9+4441_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-01', job_status='DONE', photon_flux_upper_limit='3.15e-04', time_completed='2021-08-31 07:17:04.929161', job_id='135776', GAL2='0.26', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630419424.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.27', dlogl='2.38e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1280' AND source_name='4FGL J0920.9+4441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 07:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 135776: <4FGL_J0920.9+4441_daily_bin1280> in cluster <slac> Done

Job <4FGL_J0920.9+4441_daily_bin1280> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 07:10:35 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 07:10:36 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:10:36 2021
Terminated at Tue Aug 31 07:17:08 2021
Results reported at Tue Aug 31 07:17:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0920.9+4441_daily_bin1280 140.229 44.699 571104001 571363201 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 :                                   366.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             400.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   389 sec.
    Turnaround time :                            393 sec.

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

