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


Performing analysis on: 4FGL_J0449.1+1121_daily_bin1195
RA = 72.2823, Dec = 11.3569
tmin = 549072001, tmax = 549331201
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='764522', job_status='RUN', time_executed='2021-08-21 09:28:57.586207', time_epoch_executed='1629563337.59' WHERE source_name='4FGL J0449.1+1121' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764522

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764522/ft1_4FGL_J0449.1+1121_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764522/ft1_4FGL_J0449.1+1121_daily_bin1195.fits outfile=/scratch/kocevski/764522/ft1_filteredMKT_4FGL_J0449.1+1121_daily_bin1195.fits ra=72.2823 dec=11.3569 rad=12.0 tmin=549072001.0 tmax=549331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.85
user 2.70
sys 1.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.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/764522/ft1_filteredMKT_4FGL_J0449.1+1121_daily_bin1195.fits evtable="EVENTS" outfile="/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.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.43
user 0.33
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/764522/ltcube_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.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/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits
.....................!
real 13.84
user 12.58
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/764522/ltcube_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.fits outfile=/scratch/kocevski/764522/expmap_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.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/764522/ltcube_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.fits
.....................!
real 192.94
user 185.83
sys 6.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 156 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0449.1+1121 @ 72.2823 11.3569

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits scfile=/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits outfile=/scratch/kocevski/764522/cmap_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.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=72.2823 yref=11.3569 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.50
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits scfile=/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits outfile=/scratch/kocevski/764522/cmap_HighResolution_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.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=72.2823 yref=11.3569 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.55
user 0.38
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764522/Model_4FGL_J0449.1+1121_daily_bin1195.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
adding source S 147
Working on...
/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits................................!
real 24.26
user 21.79
sys 2.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits', '/scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits', expMap='/scratch/kocevski/764522/expmap_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.fits', expCube='/scratch/kocevski/764522/ltcube_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/764522/Model_4FGL_J0449.1+1121_daily_bin1195.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0449.1+1121'

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  2.534e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.389e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/764522/ft1_filtered_4FGL_J0449.1+1121_daily_bin1195.fits
Spacecraft file(s): /scratch/kocevski/764522/ft2_4FGL_J0449.1+1121_daily_bin1195.fits
Exposure map: /scratch/kocevski/764522/expmap_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.fits
Exposure cube: /scratch/kocevski/764522/ltcube_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/764522/Model_4FGL_J0449.1+1121_daily_bin1195.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) = 396.200513262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26839E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    193.07       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7473       1.0000         .10000E-03   10000.    
     4 'norm      '    .18563E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10353E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5022       1.0000         .10000E-03   10000.    
     7 'norm      '    .97370E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9376       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1531       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.975       1.0000         .10000E-03   10000.    
    11 'norm      '    32.881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34017E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2850       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0195       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0297       1.0000         .10000E-03   10000.    
    16 'norm      '    .89928E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .58991       1.0000         .10000E-03   10000.    
    18 'norm      '    243.41       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23342E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7041       1.0000         .10000E-03   10000.    
    21 'norm      '    .11575E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11457E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    172.51       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .43189E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .44503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   387.8305     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     2874 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.49        .90247E-06** at limit **
   2  Prefactor     196.59        252.50        .81591E-06    .75005E-05
   3  Prefactor     .10001E-03    6403.1       -.31019E-04** at limit **
   4  norm          .10000E-03    127.61       -.72198E-05** at limit **
   5  Prefactor     .10000E-03    81.937        .46504E-05** at limit **
   6  Prefactor    10000.0        9517.4        .74823E-04** at limit **
   7  norm          .10000E-03    23.102        .51604E-05** at limit **
   8  Prefactor     .10000E-03    2035.6        .30463E-04** at limit **
   9  norm          6.1613        9.0779       -.82133E-06    .25525E-04
  10  Prefactor     61.874        96.957        .62296E-06    .46660E-05
  11  norm         10000.0        990.25        .74465E-05** at limit **
  12  Prefactor     .10000E-03    261.07        .25351E-05** at limit **
  13  Prefactor     .10010E-03    1052.6       -.30157E-04** at limit **
  14  Prefactor     .10000E-03    735.80       -.25271E-04** at limit **
  15  norm          1.3481        2.6278        .28099E-05    .29222E-03
  16  norm          .10001E-03    95.343       -.18070E-05** at limit **
  17  Prefactor     .10013E-03    1702.4       -.36716E-04** at limit **
  18  norm          .10000E-03    158.64       -.50663E-05** at limit **
  19  Prefactor     .10000E-03    37.008        .61300E-05** at limit **
  20  Prefactor     .10000E-03    337.84       -.15829E-04** at limit **
  21  norm          .10000E-03    35.256        .28158E-05** at limit **
  22  norm          .10000E-03    32.252       -.14375E-04** at limit **
  23  Prefactor     175.24        142.17        .15942E-05   -.74828E-05
  24  Prefactor     .10000E-03    145.40       -.93197E-05** at limit **
  25  Normalizat    .10000E-01    .70136       -.29319E-04** at limit **
  26  Prefactor     .38625        .15844        .42034E-05   -.98835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 196.589
  Prefactor  = 0.000100007
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 10000
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.1613
  Prefactor  = 61.8739
  norm       = 10000
  Prefactor  = 0.000100002
  Prefactor  = 0.000100103
  Prefactor  = 0.000100001
  norm       = 1.34814
  norm       = 0.00010001
  Prefactor  = 0.000100134
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 175.242
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.386252
 **********
 **   18 **HESSE 
 **********

 FCN=   387.8305     FROM HESSE     STATUS=OK           514 CALLS     3388 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.33        .99730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     196.59        251.42        .72673E-03   -1.2894    
   3  Prefactor     .10001E-03    6403.0        .52143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    127.98        .10147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    81.031        .10370E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        9528.6        .54011E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.012        .90717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2030.5        .45250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.1613        9.2295        .44275E-02   -1.5211    
  10  Prefactor     61.874        95.757        .13061E-02   -1.4133    
  11  norm         10000.0        992.75        .17470E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    255.58        .91918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10010E-03    1070.4        .37152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    748.62        .50286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3481        2.7696        .95043E-02   -1.5940    
  16  norm          .10001E-03    100.06        .91351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10013E-03    191.27        .89115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    161.34        .64891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.155        .10043E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    341.34        .61929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    35.647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.292        .34013E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     175.24        146.65        .76803E-03   -1.3053    
  24  Prefactor     .10000E-03    147.16        .92368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .66309        .23401       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .38625        .17590        .29157E-01   -1.1752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68356e-10
Minuit parameter uncertainties:
  1  0.000905665
  2  252.812
  3  0.0092471
  4  0.000568134
  5  0.000673624
  6  0.00750378
  7  0.000271709
  8  0.000922525
  9  9.23158
  10  95.9965
  11  0.000685378
  12  0.00156193
  13  0.0213678
  14  0.00126304
  15  2.76988
  16  0.00199894
  17  0.010173
  18  4.97787e-05
  19  3.59904e-05
  20  0.00118417
  21  5.15313e-05
  22  0.000497534
  23  146.962
  24  0.000133125
  25  4.33143e-06
  26  0.176146
Done.

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

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.000e+04  6.854e-04  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.389e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  3.863e-01  1.761e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.000e-02  4.331e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.53
Ra Dec: 72.282 11.357
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 2.61e-04 +/- 1.78e-11
Energy Flux (Fixed Index): 7.79e-02 +/- 5.34e-09

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) = 369.864439256
delta logL = 17.9660538434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 369.850953045
delta logL = 17.9795400539

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   369.8509     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      198 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        666.15        .90722E-02** at limit **
   2  alpha         5.0000        .63957E-01    .96360E-01** at limit **
   3  Normalizat    .10000E-01    .59877        .22200    ** at limit **
   4  Prefactor     .35489        .13274        .28319E-01   -.18429E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.354892
 **********
 **   18 **HESSE 
 **********

 FCN=   369.8509     FROM HESSE     STATUS=OK            25 CALLS      223 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        666.15        .18144E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .63895E-01    .21301E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .66962        .86196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .35489        .12307        .12512E-03   -1.1918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53329e-10
Minuit parameter uncertainties:
  1  0.00157325
  2  6.92249e-08
  3  1.04158e-06
  4  0.123158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764522': 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) = 369.850944897
delta logL = 17.9795482019

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.000e+04  1.573e-03  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  5.000e+00  6.922e-08  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.389e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  3.549e-01  1.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.000e-02  1.042e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.35
Ra Dec: 72.282 11.357
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.11e-03 +/- 9.22e-10
Energy Flux (Free Index): 6.96e-01 +/- 1.24e-07

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/764522/cmap_HighResolution_549072001_549331201_4FGL_J0449.1+1121_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.61e-04', energy_flux2='6.96e-01', photon_flux_error='1.78e-11', dlogl='1.80e+01', energy_flux='7.79e-02', photon_flux2='5.11e-03', job_status='DONE', time_completed='2021-08-21 09:34:52.821840', photon_index_error2='0.00', photon_index2='5.00', ts='16.53', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', energy_flux_error2='1.24e-07', EG='0.01', time_epoch_completed='1629563692.82', return_code='0', job_id='764522', GAL2='0.35', EG2='0.01', return_code2='0', energy_flux_error='5.34e-09', photon_flux_error2='9.22e-10', ts2='52.35', photon_index='2.38' WHERE bin_id='1195' AND source_name='4FGL J0449.1+1121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 09:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 764522: <4FGL_J0449.1+1121_daily_bin1195> in cluster <slac> Done

Job <4FGL_J0449.1+1121_daily_bin1195> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 09:25:28 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 09:25:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 09:25:30 2021
Terminated at Sat Aug 21 09:34:55 2021
Results reported at Sat Aug 21 09:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0449.1+1121_daily_bin1195 72.2823 11.3569 549072001 549331201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0449.1+1121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   365.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            567 sec.

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

