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


Performing analysis on: 4FGL_J0449.1+1121_daily_bin1375
RA = 72.2823, Dec = 11.3569
tmin = 595728001, tmax = 595987201
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='766718', job_status='RUN', time_executed='2021-08-21 09:34:52.783293', time_epoch_executed='1629563692.78' WHERE source_name='4FGL J0449.1+1121' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766718/ft1_4FGL_J0449.1+1121_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766718/ft2_4FGL_J0449.1+1121_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766718/ft1_4FGL_J0449.1+1121_daily_bin1375.fits outfile=/scratch/kocevski/766718/ft1_filteredMKT_4FGL_J0449.1+1121_daily_bin1375.fits ra=72.2823 dec=11.3569 rad=12.0 tmin=595728001.0 tmax=595987201.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 11.80
user 2.38
sys 9.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766718/ft1_filtered_4FGL_J0449.1+1121_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/766718/ft2_4FGL_J0449.1+1121_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/766718/ltcube_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.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/766718/ft2_4FGL_J0449.1+1121_daily_bin1375.fits
.....................!
real 24.23
user 13.28
sys 10.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766718/ft1_filtered_4FGL_J0449.1+1121_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/766718/ft2_4FGL_J0449.1+1121_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/766718/ltcube_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.fits outfile=/scratch/kocevski/766718/expmap_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.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/766718/ltcube_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.fits
.....................!
real 203.44
user 185.50
sys 15.99

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/766718/ft1_filtered_4FGL_J0449.1+1121_daily_bin1375.fits scfile=/scratch/kocevski/766718/ft2_4FGL_J0449.1+1121_daily_bin1375.fits outfile=/scratch/kocevski/766718/cmap_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.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 9.43
user 0.39
sys 8.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766718/ft1_filtered_4FGL_J0449.1+1121_daily_bin1375.fits scfile=/scratch/kocevski/766718/ft2_4FGL_J0449.1+1121_daily_bin1375.fits outfile=/scratch/kocevski/766718/cmap_HighResolution_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.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 9.53
user 0.41
sys 9.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    267.10       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21247E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    41.445       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3240       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6334       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    92.805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.581       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.576       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8081       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.805       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.3767       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88264       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2728.258     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3154 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     267.19        139.90       -.71975E-06    .76420E-04
   2  Prefactor     .10000E-03    391.92        .50861E-06** at limit **
   3  Prefactor     .10000E-03    331.18       -.17426E-05** at limit **
   4  norm          41.450        75.671       -.96302E-08    .46986E-05
   5  Prefactor     .10000E-03    96.884        .78399E-06** at limit **
   6  Prefactor     .10000E-03    71.158       -.24643E-06** at limit **
   7  norm          1.3201        9.9392        .87605E-06   -.37679E-04
   8  Prefactor     .10000E-03    46.265        .72005E-07** at limit **
   9  norm          3.6314        4.5610        .12348E-06    .14673E-04
  10  Prefactor     .10000E-03    8.5611        .28115E-07** at limit **
  11  norm          1.9965        6.4078        .24775E-07    .16449E-04
  12  Prefactor     .10000E-03    29.952       -.36242E-07** at limit **
  13  Prefactor     92.827        67.186        .12105E-05    .68317E-04
  14  Prefactor     14.575        24.622        .15122E-06    .26314E-04
  15  norm          .10000E-03    1.0151       -.17138E-06** at limit **
  16  norm          2.0307        4.4446        .18644E-06    .30516E-04
  17  Prefactor     .10000E-03    6.1632       -.50053E-06** at limit **
  18  norm          .10000E-03    18.982       -.11183E-06** at limit **
  19  Prefactor     .10000E-03    6.3035       -.44418E-07** at limit **
  20  Prefactor     .10000E-03    72.755       -.15822E-06** at limit **
  21  norm          12.578        16.390       -.13542E-08   -.59156E-04
  22  norm          1.8069        2.2314        .28793E-07   -.11240E-03
  23  Prefactor     20.039        111.66       -.24745E-05   -.63779E-04
  24  Prefactor     6.1090        544.87        .76720E-05   -.24873E-04
  25  Normalizat    .10000E-01    .17696       -.53291E-05** at limit **
  26  Prefactor     .88256        .94407E-01    .50001E-06   -.17141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 267.192
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 41.4502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32006
  Prefactor  = 0.0001
  norm       = 3.63139
  Prefactor  = 0.0001
  norm       = 1.99649
  Prefactor  = 0.0001
  Prefactor  = 92.8273
  Prefactor  = 14.5751
  norm       = 0.0001
  norm       = 2.03072
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5778
  norm       = 1.80694
  Prefactor  = 20.0395
  Prefactor  = 6.10899
  Normalizat = 0.01
  Prefactor  = 0.882557
 **********
 **   18 **HESSE 
 **********

 FCN=   2728.258     FROM HESSE     STATUS=OK           456 CALLS     3610 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     267.19        138.84        .12404E-03   -1.2424    
   2  Prefactor     .10000E-03    392.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    329.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          41.450        75.665        .62267E-04   -1.4419    
   5  Prefactor     .10000E-03    97.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    71.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3201        10.057        .14732E-02   -1.5478    
   8  Prefactor     .10000E-03    46.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6314        4.5318        .11930E-03   -1.5327    
  10  Prefactor     .10000E-03    8.5726        .14927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9965        6.3894        .22349E-03   -1.5425    
  12  Prefactor     .10000E-03    29.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     92.827        64.901        .41716E-04   -1.3778    
  14  Prefactor     14.575        24.577        .10489E-03   -1.4944    
  15  norm          .10000E-03    1.5003        .91555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0307        4.3430        .73933E-03   -1.5423    
  17  Prefactor     .10000E-03    22.243        .24187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3242        .12807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    72.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.578        16.471        .11295E-03   -1.4999    
  22  norm          1.8069        2.2029        .76435E-04   -1.5439    
  23  Prefactor     20.039        112.43        .90000E-04   -1.4812    
  24  Prefactor     6.1090        550.49        .15895E-03   -1.5214    
  25  Normalizat    .10000E-01    .27686        .12925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .88256        .96041E-01    .13365E-03   -.96753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13607e-09
Minuit parameter uncertainties:
  1  139.016
  2  1.91666e-05
  3  0.00234034
  4  75.8413
  5  0.000343255
  6  0.000125918
  7  7.28856
  8  3.34111e-05
  9  4.53222
  10  2.14212e-06
  11  6.39153
  12  1.28814e-05
  13  64.9507
  14  24.5941
  15  2.7428e-05
  16  4.34372
  17  0.00035254
  18  1.36464e-05
  19  1.08613e-06
  20  6.81828e-05
  21  16.4766
  22  2.20302
  23  95.208
  24  117.109
  25  4.12586e-06
  26  0.0960589
Done.

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

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.996e+00  6.392e+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

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.826e-01  9.606e-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  4.126e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/766718/likelihoodResults_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.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) = 2727.65055492
delta logL = 0.607760087018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2727.61411399
delta logL = 0.644201013878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0793       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2104       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87632       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=   2727.614     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      222 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0812        3.5696        .57785E-02   -.13124E-03
   2  alpha         1.2107        .56883        .32838       -.22752E-04
   3  Normalizat    .10000E-01    .21314        .32094    ** at limit **
   4  Prefactor     .87631        .84510E-01    .30302E-01    .14695E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.08121
  alpha      = 1.21073
  Normalizat = 0.01
  Prefactor  = 0.876312
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0812        4.4534        .10173E-03   -1.5357    
   2  alpha         1.2107        .75772        .13517E-01   -.54183    
   3  Normalizat    .10000E-01    .30101        .13201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .87631        .74802E-01    .13391E-03   -.96974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77652e-11
Minuit parameter uncertainties:
  1  4.45391
  2  0.774482
  3  2.77916e-06
  4  0.0748111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766718': 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) = 2727.61411367
delta logL = 0.644201337282

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  3.081e+00  4.454e+00  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  1.211e+00  7.745e-01  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:  8.763e-01  7.481e-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  2.779e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 72.282 11.357
Photon Index (Free Index): 1.21 +/- 0.77
Photon Flux (Free Index): 5.09e-08 +/- 6.76e-08
Energy Flux (Free Index): 9.37e-05 +/- 1.47e-04

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/766718/cmap_HighResolution_595728001_595987201_4FGL_J0449.1+1121_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-04', comment='SUCCESS', energy_flux2='9.37e-05', dlogl='6.44e-01', photon_flux2='5.09e-08', job_status='DONE', time_completed='2021-08-21 09:46:13.870043', photon_index_error2='0.77', photon_index2='1.21', ts='0.12', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.97e-07', energy_flux_error2='1.47e-04', EG='0.01', time_epoch_completed='1629564373.87', return_code='0', job_id='766718', GAL2='0.88', EG2='0.01', return_code2='0', photon_flux_error2='6.76e-08', ts2='1.43', photon_index='2.38' WHERE bin_id='1375' AND source_name='4FGL J0449.1+1121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 09:46:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 766718: <4FGL_J0449.1+1121_daily_bin1375> in cluster <slac> Done

Job <4FGL_J0449.1+1121_daily_bin1375> 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) <bullet0106>, 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:46:16 2021
Results reported at Sat Aug 21 09:46:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0449.1+1121_daily_bin1375 72.2823 11.3569 595728001 595987201 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 :                                   770.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

