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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1384
RA = 180.173, Dec = 12.4922
tmin = 598060801, tmax = 598320001
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='255501', job_status='RUN', time_executed='2021-09-04 20:28:57.523343', time_epoch_executed='1630812537.52' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255501

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255501/ft1_4FGL_J1200.6+1229_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255501/ft2_4FGL_J1200.6+1229_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255501/ft1_4FGL_J1200.6+1229_daily_bin1384.fits outfile=/scratch/kocevski/255501/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1384.fits ra=180.173 dec=12.4922 rad=12.0 tmin=598060801.0 tmax=598320001.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.69
user 3.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255501/ft2_4FGL_J1200.6+1229_daily_bin1384.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/255501/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1384.fits evtable="EVENTS" outfile="/scratch/kocevski/255501/ft1_filtered_4FGL_J1200.6+1229_daily_bin1384.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.43
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255501/ft1_filtered_4FGL_J1200.6+1229_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/255501/ft2_4FGL_J1200.6+1229_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/255501/ltcube_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.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/255501/ft2_4FGL_J1200.6+1229_daily_bin1384.fits
.....................!
real 8.74
user 8.41
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255501/ft1_filtered_4FGL_J1200.6+1229_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/255501/ft2_4FGL_J1200.6+1229_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/255501/ltcube_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.fits outfile=/scratch/kocevski/255501/expmap_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.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/255501/ltcube_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.fits
.....................!
real 143.69
user 139.76
sys 3.62

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/255501/ft1_filtered_4FGL_J1200.6+1229_daily_bin1384.fits scfile=/scratch/kocevski/255501/ft2_4FGL_J1200.6+1229_daily_bin1384.fits outfile=/scratch/kocevski/255501/cmap_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.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.46
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255501/ft1_filtered_4FGL_J1200.6+1229_daily_bin1384.fits scfile=/scratch/kocevski/255501/ft2_4FGL_J1200.6+1229_daily_bin1384.fits outfile=/scratch/kocevski/255501/cmap_HighResolution_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.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.45
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3531       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3407       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4037       1.0000         .10000E-03   10000.    
     5 'Prefactor '    130.19       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6779       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.791       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6543       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    40.509       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.467       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70865       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1519       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=   5546.039     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2596 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3510        11.911        .11128E-05   -.33448E-04
   2  Prefactor     1.3417        19.878        .23794E-05   -.45369E-05
   3  Prefactor     1.7707        168.04        .50403E-06    .44451E-06
   4  Prefactor     1.4019        5.1006        .13744E-05    .16106E-04
   5  Prefactor     130.19        103.71        .19552E-07   -.92606E-05
   6  Prefactor     .10000E-03    21.513        .17713E-05** at limit **
   7  Prefactor     3.6780        3.7857       -.45130E-07    .92829E-05
   8  Prefactor     26.796        22.731        .72858E-06   -.36622E-04
   9  Prefactor     .10000E-03    .64646       -.69604E-07** at limit **
  10  Prefactor     9.5020        301.92       -.14126E-05   -.12627E-05
  11  Prefactor     .10000E-03    22.241       -.90691E-06** at limit **
  12  Prefactor     .10000E-03    1.0226       -.20463E-06** at limit **
  13  Prefactor     4.6544        2.9426        .12741E-07    .15356E-03
  14  Prefactor     .10000E-03    7.2117       -.63980E-07** at limit **
  15  norm          2.4228        2.4779       -.14902E-06   -.12336E-04
  16  Prefactor     .10000E-03    10.296       -.12513E-06** at limit **
  17  norm          .10000E-03    .12101       -.10113E-06** at limit **
  18  norm          40.493        36.736        .28352E-06    .31639E-04
  19  Prefactor     .10000E-03    71.509       -.24980E-06** at limit **
  20  Prefactor     9.6133        9.6203       -.10367E-06    .36831E-05
  21  Prefactor     49.467        27.909       -.14101E-06    .14094E-04
  22  Normalizat    .70854        .18721        .55263E-06    .10602E-03
  23  Prefactor     1.1521        .17529        .12219E-05    .61818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.35103
  Prefactor  = 1.34166
  Prefactor  = 1.77072
  Prefactor  = 1.4019
  Prefactor  = 130.192
  Prefactor  = 0.0001
  Prefactor  = 3.67796
  Prefactor  = 26.796
  Prefactor  = 0.0001
  Prefactor  = 9.50201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6544
  Prefactor  = 0.0001
  norm       = 2.42278
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 40.4935
  Prefactor  = 0.0001
  Prefactor  = 9.61332
  Prefactor  = 49.4669
  Normalizat = 0.708537
  Prefactor  = 1.15207
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.039     FROM HESSE     STATUS=OK           372 CALLS     2968 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3510        11.844        .13871E-03   -1.5130    
   2  Prefactor     1.3417        19.922        .18927E-02   -1.5476    
   3  Prefactor     1.7707        170.44        .31069E-03   -1.5442    
   4  Prefactor     1.4019        5.1017        .15643E-02   -1.5471    
   5  Prefactor     130.19        103.71        .35287E-04   -1.3421    
   6  Prefactor     .10000E-03    21.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6780        3.7918        .14341E-03   -1.5324    
   8  Prefactor     26.796        22.487        .77397E-04   -1.4672    
   9  Prefactor     .10000E-03    .64813        .58496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5020        296.72        .12975E-03   -1.5091    
  11  Prefactor     .10000E-03    22.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0458        .73550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6544        2.9418        .96083E-04   -1.5276    
  14  Prefactor     .10000E-03    7.2156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4228        2.4723        .11043E-03   -1.5397    
  16  Prefactor     .10000E-03    10.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .26649        .49532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          40.493        36.788        .62979E-04   -1.4434    
  19  Prefactor     .10000E-03    71.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.6133        9.6114        .12925E-03   -1.5088    
  21  Prefactor     49.467        27.900        .57017E-04   -1.4300    
  22  Normalizat    .70854        .21556        .27832E-03   -1.0356    
  23  Prefactor     1.1521        .20063        .21957E-03   -.87819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10287e-09
Minuit parameter uncertainties:
  1  11.8474
  2  10.3437
  3  34.8465
  4  5.10328
  5  103.856
  6  0.000161278
  7  3.79209
  8  22.4945
  9  8.55696e-07
  10  106.78
  11  8.06368e-05
  12  3.79234e-06
  13  2.94188
  14  3.08771e-06
  15  2.47238
  16  7.88476e-06
  17  3.47897e-06
  18  36.809
  19  4.70881e-05
  20  9.61295
  21  27.9073
  22  0.215818
  23  0.200763
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  2.680e+01  2.249e+01  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.152e+00  2.008e-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:  7.085e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.77e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/255501/likelihoodResults_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.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) = 5545.52099851
delta logL = 0.518265114528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5545.51456837
delta logL = 0.524695251795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.924       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1026       1.0000          .0000       10.000    
     3 'Normalizat'    .66785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1796       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=   5545.515     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      287 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.917        23.167        .12122E-03   -.45252E-03
   2  Index         3.1029        1.1732        .41678E-02   -.60124E-04
   3  Normalizat    .66787        .21012        .28586E-03    .23202E-03
   4  Prefactor     1.1796        .20399        .21733E-03    .13967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9168
  Index      = 3.10292
  Normalizat = 0.667869
  Prefactor  = 1.17964
 **********
 **   18 **HESSE 
 **********

 FCN=   5545.515     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.917        16.042        .48488E-05   -1.5047    
   2  Index         3.1029        .81589        .16671E-03   -.38917    
   3  Normalizat    .66787        .20826        .11435E-04   -1.0518    
   4  Prefactor     1.1796        .20241        .86931E-05   -.86960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88787e-10
Minuit parameter uncertainties:
  1  16.0479
  2  0.820184
  3  0.208504
  4  0.202541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255501': 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) = 5545.51456826
delta logL = 0.52469537

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.092e+01  1.605e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.103e+00  8.202e-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.180e+00  2.025e-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:  6.679e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 180.173 12.492
Photon Index (Free Index): 3.10 +/- 0.82
Photon Flux (Free Index): 8.56e-08 +/- 5.22e-08
Energy Flux (Free Index): 1.63e-05 +/- 9.58e-06

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/255501/cmap_HighResolution_598060801_598320001_4FGL_J1200.6+1229_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.77e-08', energy_flux2='1.63e-05', photon_flux_error='4.84e-08', dlogl='5.25e-01', energy_flux='1.92e-05', photon_flux2='8.56e-08', job_status='DONE', time_completed='2021-09-04 20:39:06.684009', photon_index_error2='0.82', photon_index2='3.10', ts='3.82', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='9.58e-06', EG='0.71', time_epoch_completed='1630813146.68', return_code='0', job_id='255501', GAL2='1.18', EG2='0.67', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='5.22e-08', ts2='4.97', photon_index='2.39' WHERE bin_id='1384' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:39:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 255501: <4FGL_J1200.6+1229_daily_bin1384> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1384> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:43 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:44 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:44 2021
Terminated at Sat Sep  4 20:39:07 2021
Results reported at Sat Sep  4 20:39:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1384 180.173 12.4922 598060801 598320001 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 :                                   523.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

