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


Performing analysis on: 4FGL_J0449.1+1121_monthly_bin118
RA = 72.2823, Dec = 11.3569
tmin = 542851201, tmax = 545443201
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='90236', job_status='RUN', time_executed='2021-10-13 13:46:25.633591', time_epoch_executed='1634157985.63' WHERE source_name='4FGL J0449.1+1121' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90236

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90236/ft1_4FGL_J0449.1+1121_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90236/ft2_4FGL_J0449.1+1121_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90236/ft1_4FGL_J0449.1+1121_monthly_bin118.fits outfile=/scratch/kocevski/90236/ft1_filteredMKT_4FGL_J0449.1+1121_monthly_bin118.fits ra=72.2823 dec=11.3569 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.50
user 17.98
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90236/ft2_4FGL_J0449.1+1121_monthly_bin118.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/90236/ft1_filteredMKT_4FGL_J0449.1+1121_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/90236/ft1_filtered_4FGL_J0449.1+1121_monthly_bin118.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.58
user 0.43
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90236/ft1_filtered_4FGL_J0449.1+1121_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/90236/ft2_4FGL_J0449.1+1121_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/90236/ltcube_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.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/90236/ft2_4FGL_J0449.1+1121_monthly_bin118.fits
.....................!
real 39.76
user 39.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90236/ft1_filtered_4FGL_J0449.1+1121_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/90236/ft2_4FGL_J0449.1+1121_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/90236/ltcube_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.fits outfile=/scratch/kocevski/90236/expmap_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.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/90236/ltcube_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.fits
.....................!
real 190.52
user 186.15
sys 4.05

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/90236/ft1_filtered_4FGL_J0449.1+1121_monthly_bin118.fits scfile=/scratch/kocevski/90236/ft2_4FGL_J0449.1+1121_monthly_bin118.fits outfile=/scratch/kocevski/90236/cmap_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.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.60
user 0.45
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90236/ft1_filtered_4FGL_J0449.1+1121_monthly_bin118.fits scfile=/scratch/kocevski/90236/ft2_4FGL_J0449.1+1121_monthly_bin118.fits outfile=/scratch/kocevski/90236/cmap_HighResolution_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.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.60
user 0.45
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17804E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90109E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.640       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.438       1.0000         .10000E-03   10000.    
     7 'norm      '    16.114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58017E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5299       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13585E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .99043       1.0000         .10000E-03   10000.    
    16 'norm      '    26.225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6223       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    176.91       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6088       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    60.214       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .39772       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98633       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=   2732.369     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2360 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    53.031        .67564E-05** at limit **
   2  Prefactor     .10023E-03    148.85       -.82777E-05** at limit **
   3  Prefactor     15.986        96.393        .39012E-04    .17467E-03
   4  norm          .10000E-03    16.069       -.65962E-06** at limit **
   5  Prefactor     .10000E-03    14.811        .29800E-06** at limit **
   6  Prefactor     11.826        23.987       -.30976E-05    .14053E-02
   7  norm          16.133        7.8368        .12266E-06    .40864E-03
   8  Prefactor     .10005E-03    69.926        .29330E-06** at limit **
   9  norm          .10000E-03    2.8038       -.14155E-06** at limit **
  10  Prefactor     8.3694        13.227       -.17651E-05   -.30600E-02
  11  norm          1.5576        4.4100        .24276E-05    .27302E-04
  12  Prefactor     31.144        62.602        .32994E-04   -.27211E-03
  13  Prefactor     .10047E-03    1.9468        .92363E-07** at limit **
  14  Prefactor     .10000E-03    25.057       -.34551E-05** at limit **
  15  norm          .99366        1.1793       -.88466E-07    .11421E-04
  16  norm          26.235        11.679       -.24691E-05   -.11839E-02
  17  Prefactor     3.6243        4.7617        .10322E-06    .16931E-04
  18  norm          .10000E-03    4.7697        .58277E-06** at limit **
  19  Prefactor     .10000E-03    4.6068       -.10427E-05** at limit **
  20  Prefactor     176.90        2.9629       -.10294E-06    .20564E-02
  21  norm          5.4176        15.872        .62319E-06   -.12632E-03
  22  norm          .10000E-03    1.0026        .59148E-07** at limit **
  23  Prefactor     .10176E-03    5.8878        .26029E-05** at limit **
  24  Prefactor     60.488        10.826       -.48905E-05    .14360E-02
  25  Normalizat    .39865        .52834       -.72862E-05    .19409E-05
  26  Prefactor     .98660        .13724        .11612E-05    .11086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101554
  Prefactor  = 0.000100231
  Prefactor  = 15.9858
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8258
  norm       = 16.1325
  Prefactor  = 0.000100053
  norm       = 0.0001
  Prefactor  = 8.36937
  norm       = 1.5576
  Prefactor  = 31.144
  Prefactor  = 0.000100473
  Prefactor  = 0.0001
  norm       = 0.993664
  norm       = 26.2353
  Prefactor  = 3.62433
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 176.897
  norm       = 5.41762
  norm       = 0.0001
  Prefactor  = 0.000101764
  Prefactor  = 60.4881
  Normalizat = 0.398653
  Prefactor  = 0.986599
 **********
 **   18 **HESSE 
 **********

 FCN=   2732.369     FROM HESSE     STATUS=OK           508 CALLS     2868 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10155E-03    80.782        .91117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10023E-03    150.34        .94640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.986        97.243        .23840E-02   -1.4908    
   4  norm          .10000E-03    16.070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.826        25.417        .29614E-02   -1.5020    
   7  norm          16.133        8.0670        .24943E-02   -1.4904    
   8  Prefactor     .10005E-03    70.944        .93091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3694        19.637        .34314E-02   -1.5129    
  11  norm          1.5576        4.4885        .85356E-02   -1.5458    
  12  Prefactor     31.144        64.054        .17604E-02   -1.4591    
  13  Prefactor     .10047E-03    90.263        .10274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99366        1.2443        .12621E-01   -1.5509    
  16  norm          26.235        11.727        .19557E-02   -1.4683    
  17  Prefactor     3.6243        4.7799        .53070E-02   -1.5327    
  18  norm          .10000E-03    4.7607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     176.90        144.60        .75858E-03   -1.3040    
  21  norm          5.4176        16.013        .42407E-02   -1.5242    
  22  norm          .10000E-03    .99451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10176E-03    111.84        .10381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     60.488        71.996        .12926E-02   -1.4151    
  25  Normalizat    .39865        .63904        .17752       -1.1737    
  26  Prefactor     .98660        .15758        .30492E-01   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61874e-07
Minuit parameter uncertainties:
  1  0.0224418
  2  0.0118113
  3  79.0461
  4  1.82833e-06
  5  8.55489e-07
  6  25.4405
  7  8.06753
  8  0.00387362
  9  1.02562e-07
  10  19.6518
  11  4.4895
  12  64.1958
  13  0.0130818
  14  3.50897e-06
  15  1.24429
  16  11.7283
  17  4.78044
  18  5.103e-07
  19  1.03682e-06
  20  144.893
  21  16.0252
  22  2.95961e-08
  23  0.0281441
  24  72.0998
  25  0.651309
  26  0.157656
Done.

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

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.558e+00  4.490e+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:  9.866e-01  1.577e-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:  3.987e-01  6.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/90236/likelihoodResults_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.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) = 2732.34943214
delta logL = 0.0195594612073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2732.34798167
delta logL = 0.0210099338833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3938       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8585       1.0000          .0000       5.0000    
     3 'Normalizat'    .38323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98863       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=   2732.348     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4028        210.97        .91974E-02    .41652E-03
   2  alpha         2.8676        3.7815        .41699        .91907E-05
   3  Normalizat    .38277        .16553        .18104        .22030E-04
   4  Prefactor     .98857        .42949E-01    .30462E-01   -.19565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40276
  alpha      = 2.86762
  Normalizat = 0.382772
  Prefactor  = 0.988571
 **********
 **   18 **HESSE 
 **********

 FCN=   2732.348     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4028        4.6620        .14608E-03   -1.5471    
   2  alpha         2.8676        3.7692        .37559E-01    .14758    
   3  Normalizat    .38277        .50971        .80034E-03   -1.1820    
   4  Prefactor     .98857        .13459        .13462E-03   -.93111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58725e-12
Minuit parameter uncertainties:
  1  4.66321
  2  2.96577
  3  0.516074
  4  0.13464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90236': 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) = 2732.34796389
delta logL = 0.0210277160386

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.403e+00  4.663e+00  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  2.868e+00  2.966e+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:  9.886e-01  1.346e-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:  3.828e-01  5.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/90236/cmap_HighResolution_542851201_545443201_4FGL_J0449.1+1121_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', job_status='DONE', photon_flux_upper_limit='3.50e-07', time_completed='2021-10-13 13:57:02.585908', job_id='90236', GAL2='0.99', fit_tolerance='1e-08', EG2='0.38', EG='0.40', time_epoch_completed='1634158622.59', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.10e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='118' AND source_name='4FGL J0449.1+1121' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 13 13:57:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 90236: <4FGL_J0449.1+1121_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0449.1+1121_monthly_bin118> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Oct 13 13:45:12 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 13 13:45:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 13 13:45:14 2021
Terminated at Wed Oct 13 13:57:03 2021
Results reported at Wed Oct 13 13:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0449.1+1121_monthly_bin118 72.2823 11.3569 542851201 545443201 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 :                                   618.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             302.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            711 sec.

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

