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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1329
RA = 180.173, Dec = 12.4922
tmin = 583804801, tmax = 584064001
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='255422', job_status='RUN', time_executed='2021-09-04 20:28:58.292996', time_epoch_executed='1630812538.29' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255422

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255422/ft1_4FGL_J1200.6+1229_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255422/ft1_4FGL_J1200.6+1229_daily_bin1329.fits outfile=/scratch/kocevski/255422/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1329.fits ra=180.173 dec=12.4922 rad=12.0 tmin=583804801.0 tmax=584064001.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.60
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.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/255422/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1329.fits evtable="EVENTS" outfile="/scratch/kocevski/255422/ft1_filtered_4FGL_J1200.6+1229_daily_bin1329.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255422/ft1_filtered_4FGL_J1200.6+1229_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/255422/ltcube_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.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/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits
.....................!
real 11.76
user 11.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255422/ft1_filtered_4FGL_J1200.6+1229_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/255422/ltcube_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.fits outfile=/scratch/kocevski/255422/expmap_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.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/255422/ltcube_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.fits
.....................!
real 190.96
user 185.00
sys 4.78

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/255422/ft1_filtered_4FGL_J1200.6+1229_daily_bin1329.fits scfile=/scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits outfile=/scratch/kocevski/255422/cmap_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255422/ft1_filtered_4FGL_J1200.6+1229_daily_bin1329.fits scfile=/scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits outfile=/scratch/kocevski/255422/cmap_HighResolution_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255422/ft1_filtered_4FGL_J1200.6+1229_daily_bin1329.fits', '/scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits', expMap='/scratch/kocevski/255422/expmap_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.fits', expCube='/scratch/kocevski/255422/ltcube_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255422/Model_4FGL_J1200.6+1229_daily_bin1329.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/255422/ft1_filtered_4FGL_J1200.6+1229_daily_bin1329.fits
Spacecraft file(s): /scratch/kocevski/255422/ft2_4FGL_J1200.6+1229_daily_bin1329.fits
Exposure map: /scratch/kocevski/255422/expmap_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.fits
Exposure cube: /scratch/kocevski/255422/ltcube_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255422/Model_4FGL_J1200.6+1229_daily_bin1329.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) = 5487.3420541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23859E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0315       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12123E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12975E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23454E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.394       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7128       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3133       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99969       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=   5487.337     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2565 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6411        11.765       -.52120E-06   -.98477E-04
   2  Prefactor     .10067E-03    6.3143        .21083E-05** at limit **
   3  Prefactor     .10000E-03    50.692        .33905E-05** at limit **
   4  Prefactor     3.0333        10.758       -.10570E-05   -.19925E-03
   5  Prefactor     .10000E-03    32.069       -.10190E-04** at limit **
   6  Prefactor     .10000E-03    6.0924        .99904E-07** at limit **
   7  Prefactor     .10000E-03    10.036        .24815E-06** at limit **
   8  Prefactor     .10000E-03    45.850       -.16889E-04** at limit **
   9  Prefactor     2.3782        2.8107       -.21021E-06   -.30375E-03
  10  Prefactor     .10000E-03    176.48       -.68788E-05** at limit **
  11  Prefactor     .10000E-03    12.042       -.85049E-07** at limit **
  12  Prefactor     .10000E-03    .78707        .32188E-07** at limit **
  13  Prefactor     .10000E-03    1.5388       -.46476E-07** at limit **
  14  Prefactor     10.390        23.621        .15843E-05   -.72741E-05
  15  norm          2.7146        3.5695       -.11898E-07   -.45489E-03
  16  Prefactor     .10000E-03    16.263        .62477E-05** at limit **
  17  norm          .10000E-03    .98262E-01   -.59494E-07** at limit **
  18  norm          .10000E-03    17.393       -.77506E-05** at limit **
  19  Prefactor     28.414        79.642       -.52909E-04   -.14657E-05
  20  Prefactor     5.6172        5.7855        .20841E-05    .18170E-04
  21  Prefactor     .10000E-03    27.683        .10744E-04** at limit **
  22  Normalizat    1.3131        .19875       -.52782E-06    .50786E-04
  23  Prefactor     .99968        .18592        .12599E-05   -.41105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.64113
  Prefactor  = 0.000100673
  Prefactor  = 0.0001
  Prefactor  = 3.03329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.37818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3903
  norm       = 2.71455
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.4143
  Prefactor  = 5.61721
  Prefactor  = 0.0001
  Normalizat = 1.3131
  Prefactor  = 0.999679
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.337     FROM HESSE     STATUS=OK           368 CALLS     2933 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6411        11.759        .16918E-03   -1.5233    
   2  Prefactor     .10067E-03    52.340        .35828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0333        10.752        .23306E-03   -1.5360    
   5  Prefactor     .10000E-03    32.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1336        .17855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3782        2.7946        .13016E-03   -1.5400    
  10  Prefactor     .10000E-03    176.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .79146        .64133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.5250        .17594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.390        23.567        .12428E-03   -1.5063    
  15  norm          2.7146        3.5525        .15053E-03   -1.5378    
  16  Prefactor     .10000E-03    16.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .12701        .45036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.414        79.700        .75110E-04   -1.4641    
  20  Prefactor     5.6172        5.7877        .16951E-03   -1.5234    
  21  Prefactor     .10000E-03    27.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3131        .23110        .24052E-03   -.83176    
  23  Prefactor     .99968        .21831        .25792E-03   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27913e-08
Minuit parameter uncertainties:
  1  11.7636
  2  0.0118813
  3  1.49067e-05
  4  10.7587
  5  6.74432e-08
  6  3.29218e-06
  7  9.03714e-06
  8  0.00039578
  9  2.79478
  10  0.00030924
  11  8.7115e-07
  12  1.94471e-07
  13  3.20328e-06
  14  23.5885
  15  3.55275
  16  4.35405e-05
  17  3.57724e-07
  18  1.03723e-05
  19  80.0009
  20  5.78824
  21  0.00014152
  22  0.231286
  23  0.218505
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.958e-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:  9.997e-01  2.185e-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:  1.313e+00  2.313e-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: 8.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255422/likelihoodResults_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.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) = 5487.33687521
delta logL = -0.000101037658169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5487.33677441
delta logL = -2.4042219593e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3284       1.0000          .0000       10.000    
     3 'Normalizat'    1.3132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99966       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5487.337     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      291 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    181.97        .36285E-03** at limit **
   2  Index         2.3921        5.1516        .50000       -.15077E-04
   3  Normalizat    1.3131        .22646        .24052E-03   -.75627E-06
   4  Prefactor     .99968        .21647        .25792E-03   -.43637E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.3921
  Normalizat = 1.3131
  Prefactor  = 0.99968
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.337     FROM HESSE     STATUS=OK            29 CALLS      320 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    48.620        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3921        6.1960        .50000       -.54870    
   3  Normalizat    1.3131        .22669        .96209E-05   -.83176    
   4  Prefactor     .99968        .21669        .10317E-04   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90846e-10
Minuit parameter uncertainties:
  1  0.00149393
  2  4.33738
  3  0.226858
  4  0.216882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255422': 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) = 5487.33677415
delta logL = 1.63654476637e-08

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.494e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.392e+00  4.337e+00  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:  9.997e-01  2.169e-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:  1.313e+00  2.269e-01  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/255422/cmap_HighResolution_583804801_584064001_4FGL_J1200.6+1229_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.58e-08', time_completed='2021-09-04 20:41:25.748142', job_id='255422', GAL2='1.00', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630813285.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1329' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 255422: <4FGL_J1200.6+1229_daily_bin1329> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1329> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:37 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:38 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:38 2021
Terminated at Sat Sep  4 20:41:26 2021
Results reported at Sat Sep  4 20:41:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1329 180.173 12.4922 583804801 584064001 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 :                                   661.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            949 sec.

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

