/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 111 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 = 7400
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1229.0+0202_daily_bin448
RA = 187.268, Dec = 2.0454
tmin = 355449601, tmax = 355708801
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='706605', job_status='RUN', time_executed='2021-09-05 18:52:33.150415', time_epoch_executed='1630893153.15' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706605/ft1_4FGL_J1229.0+0202_daily_bin448.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706605/ft1_4FGL_J1229.0+0202_daily_bin448.fits outfile=/scratch/kocevski/706605/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin448.fits ra=187.268 dec=2.0454 rad=12.0 tmin=355449601.0 tmax=355708801.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.37
user 3.13
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.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/706605/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin448.fits evtable="EVENTS" outfile="/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits" evtable="EVENTS" scfile=/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits sctable="SC_DATA" outfile=/scratch/kocevski/706605/ltcube_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.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/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits
.....................!
real 11.75
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits evtable="EVENTS" scfile=/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits sctable="SC_DATA" expcube=/scratch/kocevski/706605/ltcube_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.fits outfile=/scratch/kocevski/706605/expmap_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.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/706605/ltcube_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.fits
.....................!
real 190.78
user 184.97
sys 4.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
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1229.0+0202 @ 187.268 2.0454

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits scfile=/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits outfile=/scratch/kocevski/706605/cmap_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.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=187.268 yref=2.0454 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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits scfile=/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits outfile=/scratch/kocevski/706605/cmap_HighResolution_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.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=187.268 yref=2.0454 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits evtable="EVENTS" scfile=/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706605/Model_4FGL_J1229.0+0202_daily_bin448.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits.....................!
real 48.61
user 47.27
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits', '/scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits', expMap='/scratch/kocevski/706605/expmap_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.fits', expCube='/scratch/kocevski/706605/ltcube_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/706605/Model_4FGL_J1229.0+0202_daily_bin448.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.0+0202'

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/706605/ft1_filtered_4FGL_J1229.0+0202_daily_bin448.fits
Spacecraft file(s): /scratch/kocevski/706605/ft2_4FGL_J1229.0+0202_daily_bin448.fits
Exposure map: /scratch/kocevski/706605/expmap_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.fits
Exposure cube: /scratch/kocevski/706605/ltcube_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/706605/Model_4FGL_J1229.0+0202_daily_bin448.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) = 5461.99228421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    108.61       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0049       1.0000         .10000E-03   10000.    
    14 'norm      '    10.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1803       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.949       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.294       1.0000         .10000E-03   10000.    
    22 'norm      '    8.1069       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7051       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    86.413       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.7470       1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.544       1.0000         .10000E-03   10000.    
    29 'norm      '    .20611       1.0000         .10000E-03   10000.    
    30 'Prefactor '    19.464       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3536       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .70685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5461.925     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4388 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.534       -.84000E-07** at limit **
   2  Prefactor     .10000E-03    56.555        .17888E-04** at limit **
   3  Prefactor     .10000E-03    11.970        .43173E-06** at limit **
   4  Prefactor     108.59        80.734       -.47889E-05    .18253E-04
   5  Prefactor     .10000E-03    2.2689       -.16806E-08** at limit **
   6  Prefactor     .10000E-03    12.412       -.52370E-06** at limit **
   7  Prefactor     .10000E-03    51.674        .53671E-06** at limit **
   8  Prefactor     .10000E-03    29.341       -.51087E-05** at limit **
   9  Prefactor     .10000E-03    48.472       -.15283E-04** at limit **
  10  Prefactor     .10000E-03    9.9750       -.32708E-07** at limit **
  11  Prefactor     10.589        34.925       -.46611E-04    .13248E-04
  12  Prefactor     .10000E-03    3.6694        .17987E-08** at limit **
  13  norm          1.0043        1.7513       -.20471E-06   -.60361E-03
  14  norm          10.190        4.7771        .11730E-05   -.27656E-02
  15  Prefactor     .10000E-03    33.400        .88074E-06** at limit **
  16  norm          .10000E-03    23.816        .52246E-06** at limit **
  17  Prefactor     .10000E-03    92.254       -.11677E-04** at limit **
  18  norm          1.1803        .67967       -.10489E-06    .13094E-04
  19  Prefactor     20.949        12.036       -.32829E-06    .14682E-04
  20  Prefactor     .10000E-03    69.010        .15005E-05** at limit **
  21  Prefactor     17.292        10.898       -.27774E-06    .10478E-04
  22  norm          8.1069        2.3276       -.80344E-07    .14537E-03
  23  Prefactor     8.7048        8.4373        .18149E-06   -.21645E-04
  24  Prefactor     .10000E-03    32.150        .63616E-05** at limit **
  25  Prefactor     86.418        59.359       -.73560E-05    .11429E-04
  26  Prefactor     3.3999        504.98       -.64885E-04   -.25497E-04
  27  norm          .10000E-03    11.510       -.23458E-07** at limit **
  28  Prefactor     11.620        22.250        .63810E-05    .21386E-03
  29  norm          .20603        .24550       -.47311E-07   -.18488E-02
  30  Prefactor     19.448        34.336        .24029E-04    .27807E-05
  31  Normalizat    1.3536        .22476        .31703E-05    .73500E-04
  32  Prefactor     .70690        .17002        .92966E-06    .18154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.5891
  Prefactor  = 0.0001
  norm       = 1.00429
  norm       = 10.19
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18027
  Prefactor  = 20.9491
  Prefactor  = 0.0001
  Prefactor  = 17.2922
  norm       = 8.10686
  Prefactor  = 8.70483
  Prefactor  = 0.0001
  Prefactor  = 86.4184
  Prefactor  = 3.39992
  norm       = 0.0001
  Prefactor  = 11.6198
  norm       = 0.206029
  Prefactor  = 19.4479
  Normalizat = 1.35361
  Prefactor  = 0.706898
 **********
 **   18 **HESSE 
 **********

 FCN=   5461.925     FROM HESSE     STATUS=OK           659 CALLS     5047 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     108.59        80.717        .19296E-03   -1.3620    
   5  Prefactor     .10000E-03    2.2705        .10872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    51.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.589        34.413        .12323E-03   -1.5057    
  12  Prefactor     .10000E-03    3.6734        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0043        1.4338        .12506E-02   -1.5508    
  14  norm          10.190        4.7424        .47929E-03   -1.5069    
  15  Prefactor     .10000E-03    33.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    23.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    92.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1803        .66411        .41325E-04   -1.5491    
  19  Prefactor     20.949        12.020        .87510E-04   -1.4792    
  20  Prefactor     .10000E-03    69.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.292        10.889        .96309E-04   -1.4876    
  22  norm          8.1069        2.3272        .57291E-04   -1.5138    
  23  Prefactor     8.7048        8.4294        .13586E-03   -1.5118    
  24  Prefactor     .10000E-03    32.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     86.418        58.485        .43218E-04   -1.3846    
  26  Prefactor     3.3999        456.14        .20858E-03   -1.5339    
  27  norm          .10000E-03    11.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.620        21.096        .11791E-03   -1.5026    
  29  norm          .20603        .22899        .35531E-03   -1.5617    
  30  Prefactor     19.448        34.283        .90785E-04   -1.4826    
  31  Normalizat    1.3536        .26635        .26175E-03   -.81980    
  32  Prefactor     .70690        .19982        .27682E-03   -1.0326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50594e-09
Minuit parameter uncertainties:
  1  1.08734e-05
  2  1.65432e-05
  3  2.11888e-05
  4  80.7988
  5  6.2587e-07
  6  4.24638e-07
  7  1.95285e-05
  8  3.57972e-05
  9  0.000504698
  10  1.1993e-05
  11  34.4774
  12  2.02127e-06
  13  1.4339
  14  4.7426
  15  6.47916e-05
  16  6.3134e-06
  17  0.000100861
  18  0.664113
  19  12.0215
  20  0.000102872
  21  10.8902
  22  2.32723
  23  8.43058
  24  7.55784e-05
  25  58.524
  26  79.3853
  27  1.29069e-05
  28  21.109
  29  0.22899
  30  34.3182
  31  0.266624
  32  0.200021
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.180e+00  6.641e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.069e-01  2.000e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.354e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.85
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 7.29e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.73e-05

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) = 5461.65359665
delta logL = 0.271789873523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5461.65239704
delta logL = 0.272989487492

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5461.652     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      263 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80040        6.2618        .70882E-02    .82586E-03
   2  alpha         3.6725        3.1882        .48194        .34762E-04
   3  Normalizat    1.2838        .78071E-01    .60444E-01   -.10668E-04
   4  Prefactor     .75761        .65206E-01    .43167E-01    .18487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.800402
  alpha      = 3.67246
  Normalizat = 1.28384
  Prefactor  = 0.757613
 **********
 **   18 **HESSE 
 **********

 FCN=   5461.652     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80040        1.0608        .31724E-04   -1.5529    
   2  alpha         3.6725        1.5993        .22508E-01    .48814    
   3  Normalizat    1.2838        .26142        .26733E-03   -.84050    
   4  Prefactor     .75761        .20521        .26839E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19698e-11
Minuit parameter uncertainties:
  1  1.06084
  2  1.78859
  3  0.261691
  4  0.205421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706605': 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) = 5461.65239527
delta logL = 0.27299124941

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.004e-01  1.061e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  3.672e+00  1.789e+00  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.576e-01  2.054e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.284e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.71
Ra Dec: 187.268 2.045
Photon Index (Free Index): 3.67 +/- 1.79
Photon Flux (Free Index): 1.73e-07 +/- 8.97e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.62e-05

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/706605/cmap_HighResolution_355449601_355708801_4FGL_J1229.0+0202_daily_bin448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='2.78e-05', photon_flux_error='7.29e-08', dlogl='2.73e-01', energy_flux='3.08e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-05 19:05:12.568590', photon_index_error2='1.79', photon_index2='3.67', ts='4.85', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.35', time_epoch_completed='1630893912.57', return_code='0', job_id='706605', GAL2='0.76', EG2='1.28', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='8.97e-08', ts2='5.71', photon_index='2.61' WHERE bin_id='448' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:05:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 706605: <4FGL_J1229.0+0202_daily_bin448> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin448> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:30 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:50:32 2021
Terminated at Sun Sep  5 19:05:13 2021
Results reported at Sun Sep  5 19:05:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin448 187.268 2.0454 355449601 355708801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.0+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

