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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin758
RA = 180.173, Dec = 12.4922
tmin = 435801601, tmax = 436060801
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='252218', job_status='RUN', time_executed='2021-09-04 20:18:16.877802', time_epoch_executed='1630811896.88' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252218/ft1_4FGL_J1200.6+1229_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252218/ft2_4FGL_J1200.6+1229_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252218/ft1_4FGL_J1200.6+1229_daily_bin758.fits outfile=/scratch/kocevski/252218/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin758.fits ra=180.173 dec=12.4922 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.59
user 5.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252218/ft1_filtered_4FGL_J1200.6+1229_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/252218/ft2_4FGL_J1200.6+1229_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/252218/ltcube_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.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/252218/ft2_4FGL_J1200.6+1229_daily_bin758.fits
.....................!
real 11.93
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252218/ft1_filtered_4FGL_J1200.6+1229_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/252218/ft2_4FGL_J1200.6+1229_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/252218/ltcube_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.fits outfile=/scratch/kocevski/252218/expmap_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.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/252218/ltcube_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.fits
.....................!
real 190.19
user 185.71
sys 4.05

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/252218/ft1_filtered_4FGL_J1200.6+1229_daily_bin758.fits scfile=/scratch/kocevski/252218/ft2_4FGL_J1200.6+1229_daily_bin758.fits outfile=/scratch/kocevski/252218/cmap_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.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.82
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252218/ft1_filtered_4FGL_J1200.6+1229_daily_bin758.fits scfile=/scratch/kocevski/252218/ft2_4FGL_J1200.6+1229_daily_bin758.fits outfile=/scratch/kocevski/252218/cmap_HighResolution_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.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.78
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.812       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8417       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5406       1.0000         .10000E-03   10000.    
    10 'Prefactor '    104.53       1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.442       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .76688E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.090       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4776       1.0000         .10000E-03   10000.    
    18 'norm      '    .13059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1704       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83489       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=   5548.491     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2592 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.816        12.168       -.32066E-08    .56782E-06
   2  Prefactor     .10000E-03    5.3909        .58957E-07** at limit **
   3  Prefactor     4.5550        71.185        .58006E-06   -.20434E-04
   4  Prefactor     .10000E-03    23.517        .47898E-06** at limit **
   5  Prefactor     35.672        76.426       -.13024E-05   -.76830E-04
   6  Prefactor     .10000E-03    4.8898        .14747E-06** at limit **
   7  Prefactor     5.8609        8.2454        .35699E-05   -.10513E-03
   8  Prefactor     7.8382        23.509        .69547E-06   -.15165E-04
   9  Prefactor     7.5428        5.7563        .12591E-06   -.93070E-04
  10  Prefactor     104.58        124.21       -.38912E-06    .30316E-04
  11  Prefactor     55.446        42.217       -.14725E-05    .18473E-04
  12  Prefactor     4.7488        4.8624       -.15968E-06   -.39219E-03
  13  Prefactor     .10000E-03    2.9604        .40780E-06** at limit **
  14  Prefactor     .10000E-03    11.875        .25815E-07** at limit **
  15  norm          .32724        2.0572       -.23194E-06    .40404E-03
  16  Prefactor     11.091        20.343        .11826E-08    .45138E-05
  17  norm          2.4776        .49303       -.57211E-08   -.49403E-03
  18  norm          .10000E-03    111.19        .53087E-06** at limit **
  19  Prefactor     .10000E-03    60.122       -.22210E-07** at limit **
  20  Prefactor     8.1689        12.912        .22533E-06   -.13752E-04
  21  Prefactor     .10000E-03    16.539        .55011E-07** at limit **
  22  Normalizat    1.1467        .21441       -.11922E-06   -.74861E-04
  23  Prefactor     .83535        .18314       -.10957E-05   -.35180E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8163
  Prefactor  = 0.0001
  Prefactor  = 4.55504
  Prefactor  = 0.0001
  Prefactor  = 35.6723
  Prefactor  = 0.0001
  Prefactor  = 5.8609
  Prefactor  = 7.83823
  Prefactor  = 7.54277
  Prefactor  = 104.581
  Prefactor  = 55.4462
  Prefactor  = 4.74877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.327235
  Prefactor  = 11.0915
  norm       = 2.4776
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.16891
  Prefactor  = 0.0001
  Normalizat = 1.14674
  Prefactor  = 0.83535
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.491     FROM HESSE     STATUS=OK           378 CALLS     2970 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.816        12.156        .11191E-03   -1.4992    
   2  Prefactor     .10000E-03    5.4024        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5550        71.809        .18789E-03   -1.5281    
   4  Prefactor     .10000E-03    24.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.672        76.652        .67019E-04   -1.4513    
   6  Prefactor     .10000E-03    4.9050        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8609        8.2108        .82958E-03   -1.5224    
   8  Prefactor     7.8382        23.326        .14319E-03   -1.5148    
   9  Prefactor     7.5428        5.7485        .14427E-03   -1.5159    
  10  Prefactor     104.58        123.47        .19665E-03   -1.3659    
  11  Prefactor     55.446        42.308        .53872E-04   -1.4217    
  12  Prefactor     4.7488        4.2697        .13395E-03   -1.5272    
  13  Prefactor     .10000E-03    8.3774        .21301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .32724        14.864        .19520E-02   -1.5594    
  16  Prefactor     11.091        20.334        .12030E-03   -1.5042    
  17  norm          2.4776        .49393        .22350E-04   -1.5393    
  18  norm          .10000E-03    112.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    60.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1689        12.915        .14026E-03   -1.5136    
  21  Prefactor     .10000E-03    16.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1467        .25135        .26331E-03   -.88265    
  23  Prefactor     .83535        .21130        .27534E-03   -.98438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41431e-09
Minuit parameter uncertainties:
  1  12.1584
  2  1.99141e-06
  3  36.2228
  4  3.89354e-05
  5  76.8651
  6  2.75932e-06
  7  8.21237
  8  23.3534
  9  5.74895
  10  123.779
  11  42.3308
  12  4.26993
  13  3.55722e-05
  14  1.03731e-05
  15  4.41137
  16  20.347
  17  0.49393
  18  0.000387967
  19  3.77768e-05
  20  12.9189
  21  6.87136e-07
  22  0.251618
  23  0.21151
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  7.838e+00  2.335e+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:  8.353e-01  2.115e-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.147e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252218/likelihoodResults_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.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) = 5548.45333103
delta logL = 0.0381024078533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5548.44762085
delta logL = 0.0438125860119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0880       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7673       1.0000          .0000       10.000    
     3 'Normalizat'    1.1380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83969       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=   5548.448     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0828        18.787        .16272E-03   -.19570E-03
   2  Index         2.7674        1.5047        .93369E-02   -.89323E-04
   3  Normalizat    1.1379        .23422        .26416E-03    .48760E-04
   4  Prefactor     .83972        .21072        .27468E-03    .18091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.0828
  Index      = 2.76742
  Normalizat = 1.13794
  Prefactor  = 0.83972
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.448     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0828        16.535        .65088E-05   -1.5215    
   2  Index         2.7674        1.3287        .37348E-03   -.46287    
   3  Normalizat    1.1379        .23437        .10567E-04   -.88543    
   4  Prefactor     .83972        .21071        .10987E-04   -.98280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15784e-10
Minuit parameter uncertainties:
  1  16.5477
  2  1.349
  3  0.234581
  4  0.210916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252218': 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) = 5548.44762078
delta logL = 0.0438126545459

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  6.083e+00  1.655e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.767e+00  1.349e+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:  8.397e-01  2.109e-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.138e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/252218/cmap_HighResolution_435801601_436060801_4FGL_J1200.6+1229_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-04 20:29:32.776696', job_id='252218', GAL2='0.84', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1630812572.78', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.38e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='758' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:29:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 252218: <4FGL_J1200.6+1229_daily_bin758> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin758> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:16:02 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:16:03 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:16:03 2021
Terminated at Sat Sep  4 20:29:33 2021
Results reported at Sat Sep  4 20:29:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin758 180.173 12.4922 435801601 436060801 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 :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

