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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin318
RA = 187.268, Dec = 2.0454
tmin = 321753601, tmax = 322012801
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='705391', job_status='RUN', time_executed='2021-09-05 18:46:44.380576', time_epoch_executed='1630892804.38' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705391/ft1_4FGL_J1229.0+0202_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705391/ft2_4FGL_J1229.0+0202_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705391/ft1_4FGL_J1229.0+0202_daily_bin318.fits outfile=/scratch/kocevski/705391/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin318.fits ra=187.268 dec=2.0454 rad=12.0 tmin=321753601.0 tmax=322012801.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.66
user 3.16
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/705391/ft2_4FGL_J1229.0+0202_daily_bin318.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/705391/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/705391/ft1_filtered_4FGL_J1229.0+0202_daily_bin318.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705391/ft1_filtered_4FGL_J1229.0+0202_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/705391/ft2_4FGL_J1229.0+0202_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/705391/ltcube_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.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/705391/ft2_4FGL_J1229.0+0202_daily_bin318.fits
.....................!
real 12.04
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705391/ft1_filtered_4FGL_J1229.0+0202_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/705391/ft2_4FGL_J1229.0+0202_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/705391/ltcube_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.fits outfile=/scratch/kocevski/705391/expmap_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.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/705391/ltcube_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.fits
.....................!
real 193.42
user 185.72
sys 5.26

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/705391/ft1_filtered_4FGL_J1229.0+0202_daily_bin318.fits scfile=/scratch/kocevski/705391/ft2_4FGL_J1229.0+0202_daily_bin318.fits outfile=/scratch/kocevski/705391/cmap_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705391/ft1_filtered_4FGL_J1229.0+0202_daily_bin318.fits scfile=/scratch/kocevski/705391/ft2_4FGL_J1229.0+0202_daily_bin318.fits outfile=/scratch/kocevski/705391/cmap_HighResolution_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14994E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .80619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0438       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3190       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.985       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.326       1.0000         .10000E-03   10000.    
    27 'norm      '    8.6104       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .90853       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.8133       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .54299       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=   6507.772     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     4342 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5023        .93405E-07** at limit **
   2  Prefactor     .10000E-03    45.642       -.11174E-05** at limit **
   3  Prefactor     .10000E-03    3.4035        .18680E-07** at limit **
   4  Prefactor     .10000E-03    38.451        .10409E-05** at limit **
   5  Prefactor     .10000E-03    2.9551        .14641E-07** at limit **
   6  Prefactor     .35663        12.354       -.94124E-06    .21885E-03
   7  Prefactor     .10000E-03    24.645       -.76114E-06** at limit **
   8  Prefactor     55.602        42.917        .14450E-05    .23524E-03
   9  Prefactor     .10000E-03    157.78       -.98095E-06** at limit **
  10  Prefactor     22.273        20.538       -.30816E-06    .14677E-04
  11  Prefactor     .10000E-03    16.738        .63698E-06** at limit **
  12  Prefactor     .10000E-03    7.5816        .46295E-06** at limit **
  13  norm          .10000E-03    .99616       -.92138E-08** at limit **
  14  norm          .10000E-03    1.7609        .15713E-06** at limit **
  15  Prefactor     .10000E-03    21.583        .19187E-06** at limit **
  16  norm          .10000E-03    15.852       -.57346E-06** at limit **
  17  Prefactor     .10000E-03    93.297        .28651E-05** at limit **
  18  norm          .80614        .59512       -.27199E-08   -.39965E-03
  19  Prefactor     .10000E-03    6.4814       -.68859E-07** at limit **
  20  Prefactor     .10000E-03    33.790        .98250E-06** at limit **
  21  Prefactor     7.0417        9.2017        .26210E-05   -.63023E-04
  22  norm          4.3191        1.9656        .50828E-07   -.10651E-03
  23  Prefactor     .10000E-03    8.8482       -.28126E-06** at limit **
  24  Prefactor     17.985        32.863       -.48096E-07   -.86851E-05
  25  Prefactor     .10000E-03    68.597       -.20292E-05** at limit **
  26  Prefactor     11.324        42.618       -.11348E-06   -.78431E-05
  27  norm          8.6001        30.751        .40946E-07   -.58394E-05
  28  Prefactor     .10000E-03    7.6411       -.56546E-06** at limit **
  29  norm          .90852        .26916        .19350E-09   -.66476E-05
  30  Prefactor     .10000E-03    28.452       -.17343E-06** at limit **
  31  Normalizat    1.8134        .22098       -.54358E-06    .22249E-04
  32  Prefactor     .54287        .16181       -.85497E-06    .50225E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.356626
  Prefactor  = 0.0001
  Prefactor  = 55.6024
  Prefactor  = 0.0001
  Prefactor  = 22.2735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.806137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.0417
  norm       = 4.3191
  Prefactor  = 0.0001
  Prefactor  = 17.9847
  Prefactor  = 0.0001
  Prefactor  = 11.3238
  norm       = 8.60012
  Prefactor  = 0.0001
  norm       = 0.908521
  Prefactor  = 0.0001
  Normalizat = 1.81341
  Prefactor  = 0.542871
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.772     FROM HESSE     STATUS=OK           651 CALLS     4993 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4099        .14535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9628        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35663        193.60        .50484E-02   -1.5589    
   7  Prefactor     .10000E-03    24.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.602        45.544        .26905E-03   -1.4215    
   9  Prefactor     .10000E-03    160.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.273        20.559        .84864E-04   -1.4764    
  11  Prefactor     .10000E-03    16.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0091        .78579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.256        .19560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    94.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .80614        .56179        .47770E-04   -1.5528    
  19  Prefactor     .10000E-03    6.5103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.0417        9.3100        .75576E-03   -1.5177    
  22  norm          4.3191        1.9601        .71884E-04   -1.5292    
  23  Prefactor     .10000E-03    8.9186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.985        32.846        .94441E-04   -1.4860    
  25  Prefactor     .10000E-03    69.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.324        42.636        .11904E-03   -1.5035    
  27  norm          8.6001        30.675        .13661E-03   -1.5121    
  28  Prefactor     .10000E-03    7.6672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .90852        .26855        .21868E-04   -1.5517    
  30  Prefactor     .10000E-03    28.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.8134        .25787        .24540E-03   -.69314    
  32  Prefactor     .54287        .18647        .31621E-03   -1.1005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19918e-09
Minuit parameter uncertainties:
  1  8.11081e-06
  2  0.000173478
  3  2.20209e-06
  4  0.000100645
  5  3.26458e-06
  6  16.6706
  7  9.16957e-05
  8  45.5721
  9  5.41725e-05
  10  20.5652
  11  6.95546e-05
  12  3.53059e-05
  13  3.68193e-07
  14  2.42795e-05
  15  3.05566e-05
  16  5.49587e-05
  17  0.000699757
  18  0.561789
  19  6.04501e-08
  20  0.000160274
  21  9.31194
  22  1.96014
  23  1.61887e-05
  24  32.8794
  25  0.0003435
  26  42.7513
  27  30.7314
  28  2.83919e-05
  29  0.268554
  30  1.5771e-05
  31  0.258063
  32  0.186682
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  8.061e-01  5.618e-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:  5.429e-01  1.867e-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.813e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 8.86e-08 +/- 6.17e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.47e-05

TS (Fixed Index): 3.33
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 2.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705391/likelihoodResults_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.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) = 6507.73421622
delta logL = 0.0376486448777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6507.72936843
delta logL = 0.0424964413642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75624       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3868       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53292       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=   6507.729     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75619        .62115        .10591E-01    .75951E-03
   2  alpha         2.3866        .61211        .41205       -.35916E-04
   3  Normalizat    1.8314        .21354        .55305E-01   -.26094E-05
   4  Prefactor     .53303        .16091        .72025E-01    .34141E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.756187
  alpha      = 2.38664
  Normalizat = 1.83135
  Prefactor  = 0.533032
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.729     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75619        .58594        .47729E-04   -1.5534    
   2  alpha         2.3866        .74522        .17003E-01   -.45360E-01
   3  Normalizat    1.8314        .25289        .24451E-03   -.68848    
   4  Prefactor     .53303        .18676        .31887E-03   -1.1048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90792e-09
Minuit parameter uncertainties:
  1  0.585947
  2  0.756749
  3  0.253074
  4  0.186975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705391': 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) = 6507.72936802
delta logL = 0.0424968468888

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  7.562e-01  5.859e-01  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.387e+00  7.567e-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:  5.330e-01  1.870e-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.831e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.39 +/- 0.76
Photon Flux (Free Index): 7.47e-08 +/- 7.10e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.47e-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/705391/cmap_HighResolution_321753601_322012801_4FGL_J1229.0+0202_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', comment='SUCCESS', photon_flux='8.86e-08', energy_flux2='2.09e-05', photon_flux_error='6.17e-08', dlogl='4.25e-02', energy_flux='2.11e-05', photon_flux2='7.47e-08', job_status='DONE', time_completed='2021-09-05 19:02:53.368498', photon_index_error2='0.76', photon_index2='2.39', ts='3.33', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='2.10e-07', energy_flux_error2='1.47e-05', EG='1.81', time_epoch_completed='1630893773.37', return_code='0', job_id='705391', GAL2='0.53', EG2='1.83', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='7.10e-08', ts2='3.41', photon_index='2.61' WHERE bin_id='318' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:02:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 705391: <4FGL_J1229.0+0202_daily_bin318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin318 187.268 2.0454 321753601 322012801 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 :                                   947.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

