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


Performing analysis on: 4FGL_J0449.1+1121_daily_bin1372
RA = 72.2823, Dec = 11.3569
tmin = 594950401, tmax = 595209601
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='766713', job_status='RUN', time_executed='2021-08-21 09:30:43.875358', time_epoch_executed='1629563443.88' WHERE source_name='4FGL J0449.1+1121' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766713/ft1_4FGL_J0449.1+1121_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766713/ft1_4FGL_J0449.1+1121_daily_bin1372.fits outfile=/scratch/kocevski/766713/ft1_filteredMKT_4FGL_J0449.1+1121_daily_bin1372.fits ra=72.2823 dec=11.3569 rad=12.0 tmin=594950401.0 tmax=595209601.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.23
user 2.76
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/766713/ltcube_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.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/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits
.....................!
real 13.15
user 12.47
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/766713/ltcube_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.fits outfile=/scratch/kocevski/766713/expmap_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.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/766713/ltcube_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.fits
.....................!
real 193.47
user 187.56
sys 5.27

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/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits scfile=/scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits outfile=/scratch/kocevski/766713/cmap_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.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 0.77
user 0.38
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits scfile=/scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits outfile=/scratch/kocevski/766713/cmap_HighResolution_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.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 0.80
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766713/Model_4FGL_J0449.1+1121_daily_bin1372.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/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits.....................!
real 68.69
user 66.94
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits', '/scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits', expMap='/scratch/kocevski/766713/expmap_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.fits', expCube='/scratch/kocevski/766713/ltcube_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/766713/Model_4FGL_J0449.1+1121_daily_bin1372.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/766713/ft1_filtered_4FGL_J0449.1+1121_daily_bin1372.fits
Spacecraft file(s): /scratch/kocevski/766713/ft2_4FGL_J0449.1+1121_daily_bin1372.fits
Exposure map: /scratch/kocevski/766713/expmap_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.fits
Exposure cube: /scratch/kocevski/766713/ltcube_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/766713/Model_4FGL_J0449.1+1121_daily_bin1372.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) = 2633.22990404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33758E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    215.28       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10695E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.952       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2995       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8728       1.0000         .10000E-03   10000.    
    18 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11541E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    180.75       1.0000         .10000E-03   10000.    
    21 'norm      '    18.312       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10014E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0569       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=   2633.153     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2563 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    21.442       -.27030E-04** at limit **
   2  Prefactor     .18021E-03    2.0888       -.28986E-04** at limit **
   3  Prefactor     .10000E-03    39.244       -.92013E-04** at limit **
   4  norm          .10014E-03    38.035        .97771E-04** at limit **
   5  Prefactor     215.28        1.5462       -.88749E-06    .51993E-02
   6  Prefactor     .10101E-03    52.062       -.12015E-03** at limit **
   7  norm          .10001E-03    9.0117        .28520E-04** at limit **
   8  Prefactor     .10002E-03    30.486        .77728E-04** at limit **
   9  norm          16.600        1.0059        .19300E-08   -.14092E-03
  10  Prefactor     .10003E-03    8.9798        .29281E-04** at limit **
  11  norm          .10000E-03    8.6803       -.83732E-06** at limit **
  12  Prefactor     .10051E-03    7.3508       -.18503E-04** at limit **
  13  Prefactor     .10023E-03    10.335       -.11851E-04** at limit **
  14  Prefactor     32.951        1.0019       -.10953E-06    .75712E-04
  15  norm          .10000E-03    .67360        .29601E-06** at limit **
  16  norm          2.2962        1.1824       -.45762E-05   -.18872E-02
  17  Prefactor     1.8707        1.0702       -.17375E-05   -.24595E-03
  18  norm          .10000E-03    7.1010        .22039E-05** at limit **
  19  Prefactor     .10000E-03    10.049        .34321E-05** at limit **
  20  Prefactor     180.76        1.6266        .10539E-05   -.51774E-02
  21  norm          18.313        1.0009        .63186E-07    .26154E-03
  22  norm          .10000E-03    1.7888       -.86720E-06** at limit **
  23  Prefactor     .10000E-03    15.215       -.26550E-04** at limit **
  24  Prefactor     .10006E-03    9.5273       -.14228E-04** at limit **
  25  Normalizat    .10000E-01    1.0365        .15182E-04** at limit **
  26  Prefactor     1.0568        .84666E-01    .33763E-06    .19690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101251
  Prefactor  = 0.000180209
  Prefactor  = 0.000100001
  norm       = 0.000100136
  Prefactor  = 215.278
  Prefactor  = 0.000101012
  norm       = 0.000100011
  Prefactor  = 0.000100021
  norm       = 16.6
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.000100508
  Prefactor  = 0.000100227
  Prefactor  = 32.9508
  norm       = 0.0001
  norm       = 2.29623
  Prefactor  = 1.87074
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 180.757
  norm       = 18.3127
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100059
  Normalizat = 0.01
  Prefactor  = 1.05685
 **********
 **   18 **HESSE 
 **********

 FCN=   2633.153     FROM HESSE     STATUS=OK           502 CALLS     3065 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    93.562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18021E-03    726.95        .10670E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    108.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10014E-03    72.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     215.28        148.82        .68900E-03   -1.2763    
   6  Prefactor     .10101E-03    115.71        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    18.272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    75.364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.600        10.607        .24573E-02   -1.4893    
  10  Prefactor     .10003E-03    18.348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.5410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10051E-03    23.539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10023E-03    25.798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.951        29.606        .17451E-02   -1.4559    
  15  norm          .10000E-03    .56580        .17766E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2962        6.8788        .67659E-02   -1.5405    
  17  Prefactor     1.8707        10.357        .76079E-02   -1.5434    
  18  norm          .10000E-03    7.0876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     180.76        198.91        .75062E-03   -1.3011    
  21  norm          18.313        14.732        .23399E-02   -1.4852    
  22  norm          .10000E-03    1.0782        .29049E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10006E-03    25.429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .66923        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0568        .11533        .39520E-01   -.90858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.383e-06
Minuit parameter uncertainties:
  1  0.0216672
  2  0.488992
  3  0.000746743
  4  0.00626809
  5  149.081
  6  0.0216859
  7  0.000895223
  8  0.00249544
  9  10.6083
  10  0.0013697
  11  0.000115036
  12  0.00692039
  13  0.00484034
  14  29.6188
  15  1.93657e-06
  16  6.88119
  17  8.80565
  18  0.000175468
  19  1.00146e-05
  20  199.66
  21  14.7354
  22  5.01394e-05
  23  0.0002776
  24  0.00245241
  25  1.64571e-05
  26  0.115355
Done.

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

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.000e-04  1.150e-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:  1.057e+00  1.154e-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.646e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 72.282 11.357
Photon Flux Upper Limit: 4.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766713/likelihoodResults_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.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) = 2633.15357892
delta logL = -0.000553759181912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2633.15302397
delta logL = 1.19117430586e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4561       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0569       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=   2633.153     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      215 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    6.5217        .66214E-01** at limit **
   2  alpha         2.5566        3.5964        .41160       -.49577E-04
   3  Normalizat    .10000E-01    .51173        .32094    ** at limit **
   4  Prefactor     1.0568        .10292        .39524E-01   -.75117E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100111
  alpha      = 2.55656
  Normalizat = 0.01
  Prefactor  = 1.05684
 **********
 **   18 **HESSE 
 **********

 FCN=   2633.153     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    21.828        .23672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5566        3.6007        .16464        .22625E-01
   3  Normalizat    .10000E-01    .73206        .20093E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0568        .84678E-01    .13783E-03   -.90858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24287e-08
Minuit parameter uncertainties:
  1  0.0031094
  2  2.63414
  3  5.28146e-05
  4  0.0846887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766713': 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) = 2633.15302192
delta logL = 3.24170832755e-06

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.001e-04  3.109e-03  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  2.557e+00  2.634e+00  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:  1.057e+00  8.469e-02  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  5.281e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 72.282 11.357

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/766713/cmap_HighResolution_594950401_595209601_4FGL_J0449.1+1121_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-04', job_status='DONE', photon_flux_upper_limit='4.83e-07', time_completed='2021-08-21 09:39:02.918020', job_id='766713', GAL2='1.06', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629563942.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1372' AND source_name='4FGL J0449.1+1121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 09:39:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 766713: <4FGL_J0449.1+1121_daily_bin1372> in cluster <slac> Done

Job <4FGL_J0449.1+1121_daily_bin1372> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 21 09:30:25 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 09:30:27 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:30:27 2021
Terminated at Sat Aug 21 09:39:03 2021
Results reported at Sat Aug 21 09:39:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0449.1+1121_daily_bin1372 72.2823 11.3569 594950401 595209601 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 :                                   497.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             344.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            518 sec.

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

