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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin667
RA = 187.268, Dec = 2.0454
tmin = 412214401, tmax = 412473601
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='708268', job_status='RUN', time_executed='2021-09-05 18:59:43.318482', time_epoch_executed='1630893583.32' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708268/ft1_4FGL_J1229.0+0202_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708268/ft1_4FGL_J1229.0+0202_daily_bin667.fits outfile=/scratch/kocevski/708268/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin667.fits ra=187.268 dec=2.0454 rad=12.0 tmin=412214401.0 tmax=412473601.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.45
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.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/708268/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin667.fits evtable="EVENTS" outfile="/scratch/kocevski/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.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/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/708268/ltcube_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.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/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits
.....................!
real 11.90
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/708268/ltcube_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.fits outfile=/scratch/kocevski/708268/expmap_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.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/708268/ltcube_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.fits
.....................!
real 191.03
user 185.38
sys 5.02

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/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits scfile=/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits outfile=/scratch/kocevski/708268/cmap_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits scfile=/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits outfile=/scratch/kocevski/708268/cmap_HighResolution_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708268/Model_4FGL_J1229.0+0202_daily_bin667.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/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits.....................!
real 27.10
user 25.53
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits', '/scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits', expMap='/scratch/kocevski/708268/expmap_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.fits', expCube='/scratch/kocevski/708268/ltcube_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708268/Model_4FGL_J1229.0+0202_daily_bin667.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/708268/ft1_filtered_4FGL_J1229.0+0202_daily_bin667.fits
Spacecraft file(s): /scratch/kocevski/708268/ft2_4FGL_J1229.0+0202_daily_bin667.fits
Exposure map: /scratch/kocevski/708268/expmap_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.fits
Exposure cube: /scratch/kocevski/708268/ltcube_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708268/Model_4FGL_J1229.0+0202_daily_bin667.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) = 1955.2648445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.226       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5410       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7027       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.1972       1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.321       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    226.58       1.0000         .10000E-03   10000.    
    26 'Prefactor '    141.73       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.8230       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .87310       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77038       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=   1955.264     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     5018 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.966       -.86743E-05** at limit **
   2  Prefactor     .10000E-03    96.882        .23547E-06** at limit **
   3  Prefactor     27.225        16.129       -.55259E-06   -.16871E-04
   4  Prefactor     .10000E-03    140.29        .71681E-04** at limit **
   5  Prefactor     .10000E-03    9.7233        .29916E-06** at limit **
   6  Prefactor     .10000E-03    24.962       -.10404E-04** at limit **
   7  Prefactor     .10000E-03    41.783        .15604E-04** at limit **
   8  Prefactor     .10000E-03    82.679       -.36797E-04** at limit **
   9  Prefactor     48.081        78.000        .42516E-05    .14592E-04
  10  Prefactor     7.7293        84.223       -.71592E-04    .59553E-05
  11  Prefactor     .10000E-03    13.691        .34796E-05** at limit **
  12  Prefactor     .10000E-03    11.145       -.10107E-05** at limit **
  13  norm          .10000E-03    2.0811        .15834E-06** at limit **
  14  norm          1.5404        5.4982       -.40044E-06   -.22550E-03
  15  Prefactor     .10000E-03    21.445        .94536E-05** at limit **
  16  norm          .10000E-03    47.818       -.57991E-05** at limit **
  17  Prefactor     .10000E-03    100.80        .10644E-04** at limit **
  18  norm          1.7026        1.3973        .25696E-06    .24892E-03
  19  Prefactor     .10000E-03    10.428        .67641E-06** at limit **
  20  Prefactor     .10000E-03    30.295       -.16265E-05** at limit **
  21  Prefactor     .10000E-03    15.729       -.36882E-05** at limit **
  22  norm          9.1967        4.8047       -.34191E-06   -.27667E-04
  23  Prefactor     32.314        38.978       -.50978E-06   -.94430E-06
  24  Prefactor     .10000E-03    193.75        .24199E-04** at limit **
  25  Prefactor     226.38        461.67       -.13089E-03    .15655E-04
  26  Prefactor     141.74        100.48        .26645E-05    .10013E-04
  27  norm          .10000E-03    99.523        .74494E-05** at limit **
  28  Prefactor     .10000E-03    14.026       -.12260E-05** at limit **
  29  norm          5.8246        3.3343        .22941E-05   -.82338E-03
  30  Prefactor     .10000E-03    247.37       -.93507E-04** at limit **
  31  Normalizat    .87328        .37032       -.14202E-05    .64948E-04
  32  Prefactor     .77021        .29855        .64796E-05   -.51142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 27.2248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.0813
  Prefactor  = 7.72934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.54044
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.19675
  Prefactor  = 32.3142
  Prefactor  = 0.0001
  Prefactor  = 226.384
  Prefactor  = 141.738
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.82461
  Prefactor  = 0.0001
  Normalizat = 0.873279
  Prefactor  = 0.770212
 **********
 **   18 **HESSE 
 **********

 FCN=   1955.264     FROM HESSE     STATUS=OK           641 CALLS     5659 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    96.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.225        16.143        .76778E-04   -1.4664    
   4  Prefactor     .10000E-03    140.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7356        .13463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    82.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.081        78.468        .57830E-04   -1.4320    
  10  Prefactor     7.7293        84.637        .14371E-03   -1.5152    
  11  Prefactor     .10000E-03    13.692        .15984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.148        .14418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0821        .62299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5404        5.3911        .17333E-03   -1.5460    
  15  Prefactor     .10000E-03    21.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    47.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    100.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7026        1.3722        .41829E-04   -1.5447    
  19  Prefactor     .10000E-03    10.469        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.735        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.1967        4.8000        .63951E-04   -1.5101    
  23  Prefactor     32.314        38.985        .70482E-04   -1.4570    
  24  Prefactor     .10000E-03    194.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     226.38        464.47        .13440E-03   -1.2687    
  26  Prefactor     141.74        100.56        .33840E-04   -1.3321    
  27  norm          .10000E-03    99.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.038        .16170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.8246        3.3617        .54322E-04   -1.5225    
  30  Prefactor     .10000E-03    247.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .87328        .43988        .29797E-03   -.97406    
  32  Prefactor     .77021        .35369        .25811E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73572e-10
Minuit parameter uncertainties:
  1  0.00109795
  2  8.7461e-05
  3  16.1453
  4  4.67388e-05
  5  0.000127761
  6  4.7285e-05
  7  1.75258e-05
  8  2.39984e-05
  9  78.637
  10  51.2462
  11  2.92355e-07
  12  9.00771e-05
  13  2.24047e-05
  14  5.39282
  15  2.50957e-05
  16  2.37862e-05
  17  3.27683e-05
  18  1.37227
  19  4.38304e-05
  20  8.04122e-05
  21  2.8233e-05
  22  4.80016
  23  39.016
  24  0.000192694
  25  472.366
  26  100.679
  27  6.67254e-05
  28  5.40112e-05
  29  3.36183
  30  8.33958e-06
  31  0.4417
  32  0.354739
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.703e+00  1.372e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.702e-01  3.547e-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:  8.733e-01  4.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.87e-07 +/- 1.51e-07
Energy Flux (Fixed Index): 4.45e-05 +/- 3.58e-05

TS (Fixed Index): 3.06
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 5.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708268/likelihoodResults_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.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) = 1955.2578665
delta logL = 0.00630834515187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1955.25723917
delta logL = 0.0069356702943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6608       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5167       1.0000          .0000       5.0000    
     3 'Normalizat'    .88225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76491       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=   1955.257     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      200 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6607        1.2894        .81840E-02    .47053E-03
   2  alpha         2.5167        .71982        .30288        .39980E-04
   3  Normalizat    .88226        .35657        .67062E-01    .40292E-04
   4  Prefactor     .76490        .29123        .43259E-01   -.27854E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6607
  alpha      = 2.51673
  Normalizat = 0.882257
  Prefactor  = 0.764903
 **********
 **   18 **HESSE 
 **********

 FCN=   1955.257     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6607        1.3271        .41717E-04   -1.5450    
   2  alpha         2.5167        .80641        .12391E-01    .66927E-02
   3  Normalizat    .88226        .42452        .29668E-03   -.97086    
   4  Prefactor     .76490        .34515        .25891E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37112e-10
Minuit parameter uncertainties:
  1  1.32709
  2  0.821094
  3  0.426135
  4  0.34613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708268': 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) = 1955.25723917
delta logL = 0.00693567200642

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.661e+00  1.327e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.517e+00  8.211e-01  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.649e-01  3.461e-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:  8.823e-01  4.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.52 +/- 0.82
Photon Flux (Free Index): 1.74e-07 +/- 1.71e-07
Energy Flux (Free Index): 4.41e-05 +/- 3.37e-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/708268/cmap_HighResolution_412214401_412473601_4FGL_J1229.0+0202_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-04', comment='SUCCESS', photon_flux='1.87e-07', energy_flux2='4.41e-05', photon_flux_error='1.51e-07', dlogl='6.94e-03', energy_flux='4.45e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-05 19:08:16.378578', photon_index_error2='0.82', photon_index2='2.52', ts='3.06', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='5.06e-07', energy_flux_error2='3.37e-05', EG='0.87', time_epoch_completed='1630894096.38', return_code='0', job_id='708268', GAL2='0.76', EG2='0.88', return_code2='0', energy_flux_error='3.58e-05', photon_flux_error2='1.71e-07', ts2='3.11', photon_index='2.61' WHERE bin_id='667' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:08:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 708268: <4FGL_J1229.0+0202_daily_bin667> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin667> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:55:46 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:55:47 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:55:47 2021
Terminated at Sun Sep  5 19:08:17 2021
Results reported at Sun Sep  5 19:08:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin667 187.268 2.0454 412214401 412473601 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 :                                   512.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

