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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1406
RA = 180.173, Dec = 12.4922
tmin = 603763201, tmax = 604022401
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='255534', job_status='RUN', time_executed='2021-09-04 20:28:48.230440', time_epoch_executed='1630812528.23' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255534/ft1_4FGL_J1200.6+1229_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255534/ft1_4FGL_J1200.6+1229_daily_bin1406.fits outfile=/scratch/kocevski/255534/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1406.fits ra=180.173 dec=12.4922 rad=12.0 tmin=603763201.0 tmax=604022401.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 4.24
user 3.98
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.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/255534/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.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.55
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/255534/ltcube_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.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/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits
.....................!
real 12.52
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/255534/ltcube_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.fits outfile=/scratch/kocevski/255534/expmap_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.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/255534/ltcube_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.fits
.....................!
real 190.41
user 185.65
sys 4.36

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits scfile=/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits outfile=/scratch/kocevski/255534/cmap_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.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=180.173 yref=12.4922 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits scfile=/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits outfile=/scratch/kocevski/255534/cmap_HighResolution_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.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=180.173 yref=12.4922 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255534/Model_4FGL_J1200.6+1229_daily_bin1406.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/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits......................!
real 42.67
user 41.34
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits', '/scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits', expMap='/scratch/kocevski/255534/expmap_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.fits', expCube='/scratch/kocevski/255534/ltcube_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255534/Model_4FGL_J1200.6+1229_daily_bin1406.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/255534/ft1_filtered_4FGL_J1200.6+1229_daily_bin1406.fits
Spacecraft file(s): /scratch/kocevski/255534/ft2_4FGL_J1200.6+1229_daily_bin1406.fits
Exposure map: /scratch/kocevski/255534/expmap_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.fits
Exposure cube: /scratch/kocevski/255534/ltcube_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255534/Model_4FGL_J1200.6+1229_daily_bin1406.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) = 4122.50767282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    52.394       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.462       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8509       1.0000         .10000E-03   10000.    
     5 'Prefactor '    114.90       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.084       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.927       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49198E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16534E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0391       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.856       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85180       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4122.479     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2567 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          52.404        24.119        .31326E-06    .31271E-04
   2  Prefactor     10.466        19.260        .48090E-06   -.52570E-05
   3  Prefactor     .10000E-03    25.123        .25064E-06** at limit **
   4  Prefactor     7.8519        10.152        .20736E-06   -.11197E-04
   5  Prefactor     114.93        146.01        .10122E-05    .24201E-04
   6  Prefactor     25.071        18.802       -.46305E-06    .21942E-04
   7  Prefactor     11.928        10.411        .10382E-06   -.32387E-05
   8  Prefactor     .10000E-03    60.107        .76058E-07** at limit **
   9  Prefactor     .10000E-03    2.2614        .43441E-07** at limit **
  10  Prefactor     .10006E-03    1120.8       -.96777E-05** at limit **
  11  Prefactor     .10000E-03    32.707       -.21907E-06** at limit **
  12  Prefactor     .10000E-03    1.4329        .28979E-07** at limit **
  13  Prefactor     .10000E-03    2.5812        .16712E-06** at limit **
  14  Prefactor     .10000E-03    10.974        .22782E-08** at limit **
  15  norm          .10000E-03    2.8442        .13003E-08** at limit **
  16  Prefactor     .10000E-03    41.203       -.17333E-06** at limit **
  17  norm          .10000E-03    .10519        .28813E-07** at limit **
  18  norm          .10000E-03    14.619       -.12681E-07** at limit **
  19  Prefactor     .10032E-03    645.21       -.14131E-04** at limit **
  20  Prefactor     4.0397        13.258        .11279E-04   -.90684E-04
  21  Prefactor     21.847        36.761       -.61662E-05   -.91324E-04
  22  Normalizat    .85165        .23799       -.71703E-06   -.62904E-04
  23  Prefactor     1.1586        .21248       -.14292E-05   -.14626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 52.4037
  Prefactor  = 10.4665
  Prefactor  = 0.0001
  Prefactor  = 7.85191
  Prefactor  = 114.925
  Prefactor  = 25.0713
  Prefactor  = 11.9278
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100317
  Prefactor  = 4.03971
  Prefactor  = 21.8474
  Normalizat = 0.851653
  Prefactor  = 1.15864
 **********
 **   18 **HESSE 
 **********

 FCN=   4122.479     FROM HESSE     STATUS=OK           370 CALLS     2937 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          52.404        24.123        .55409E-04   -1.4259    
   2  Prefactor     10.466        19.377        .12387E-03   -1.5061    
   3  Prefactor     .10000E-03    25.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8519        10.151        .14311E-03   -1.5147    
   5  Prefactor     114.93        146.10        .18766E-03   -1.3560    
   6  Prefactor     25.071        18.785        .79983E-04   -1.4706    
   7  Prefactor     11.928        10.410        .11600E-03   -1.5017    
   8  Prefactor     .10000E-03    61.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2839        .94270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    1140.7        .21165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4442        .74986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7812        .19862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9549        .21132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .12446        .40512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10032E-03    662.80        .20392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0397        13.290        .10032E-02   -1.5306    
  21  Prefactor     21.847        36.885        .85678E-04   -1.4773    
  22  Normalizat    .85165        .28211        .29269E-03   -.98180    
  23  Prefactor     1.1586        .25284        .23678E-03   -.87614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83005e-10
Minuit parameter uncertainties:
  1  24.1278
  2  19.3885
  3  9.07902e-05
  4  10.1534
  5  146.565
  6  18.7895
  7  10.4112
  8  0.000457009
  9  4.49874e-06
  10  0.017147
  11  0.000201448
  12  3.17066e-06
  13  5.80319e-05
  14  5.67545e-06
  15  1.04674e-05
  16  0.000131371
  17  7.88344e-07
  18  7.16397e-07
  19  0.0293067
  20  13.3001
  21  36.9234
  22  0.282598
  23  0.253102
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  4.570e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.159e+00  2.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  8.517e-01  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255534/likelihoodResults_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.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): 102
logL (Free Index) = 4122.47911581
delta logL = -7.79787378633e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4122.4790378
delta logL = 2.78887455352e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3333       1.0000          .0000       10.000    
     3 'Normalizat'    .85166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4122.479     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6684.0        .90712E-02** at limit **
   2  Index         2.3015        5.9441        .50000        .53336E-05
   3  Normalizat    .85165        .47851E-01    .66162E-01   -.51700E-04
   4  Prefactor     1.1586        .44591E-01    .53555E-01   -.56014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30152
  Normalizat = 0.851653
  Prefactor  = 1.15864
 **********
 **   18 **HESSE 
 **********

 FCN=   4122.479     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8205.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3015        7.6650        .50000       -.57008    
   3  Normalizat    .85165        .80847E-01    .29269E-03   -.98180    
   4  Prefactor     1.1586        .75514E-01    .23678E-03   -.87614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34352e-09
Minuit parameter uncertainties:
  1  0.00332787
  2  48.163
  3  0.0808586
  4  0.0755213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255534': 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): 102
logL (Free Index) = 4122.47903775
delta logL = 7.810194802e-08

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.328e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.302e+00  4.816e+01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.159e+00  7.552e-02  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  8.517e-01  8.086e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

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/255534/cmap_HighResolution_603763201_604022401_4FGL_J1200.6+1229_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-04 20:39:37.365718', job_id='255534', GAL2='1.16', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630813177.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='7.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1406' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:39:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 255534: <4FGL_J1200.6+1229_daily_bin1406> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1406> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:45 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:25:47 2021
Terminated at Sat Sep  4 20:39:39 2021
Results reported at Sat Sep  4 20:39:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1406 180.173 12.4922 603763201 604022401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            834 sec.

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

