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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1305
RA = 180.173, Dec = 12.4922
tmin = 577584001, tmax = 577843201
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='255388', job_status='RUN', time_executed='2021-09-04 20:27:37.506227', time_epoch_executed='1630812457.51' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255388

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255388/ft1_4FGL_J1200.6+1229_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255388/ft2_4FGL_J1200.6+1229_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255388/ft1_4FGL_J1200.6+1229_daily_bin1305.fits outfile=/scratch/kocevski/255388/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1305.fits ra=180.173 dec=12.4922 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.75
user 2.55
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255388/ft1_filtered_4FGL_J1200.6+1229_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/255388/ft2_4FGL_J1200.6+1229_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/255388/ltcube_577584001_577843201_4FGL_J1200.6+1229_daily_bin1305.fits outfile=/scratch/kocevski/255388/expmap_577584001_577843201_4FGL_J1200.6+1229_daily_bin1305.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/255388/ltcube_577584001_577843201_4FGL_J1200.6+1229_daily_bin1305.fits
.....................!
real 191.27
user 185.88
sys 4.83

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/255388/ft1_filtered_4FGL_J1200.6+1229_daily_bin1305.fits scfile=/scratch/kocevski/255388/ft2_4FGL_J1200.6+1229_daily_bin1305.fits outfile=/scratch/kocevski/255388/cmap_577584001_577843201_4FGL_J1200.6+1229_daily_bin1305.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255388/ft1_filtered_4FGL_J1200.6+1229_daily_bin1305.fits scfile=/scratch/kocevski/255388/ft2_4FGL_J1200.6+1229_daily_bin1305.fits outfile=/scratch/kocevski/255388/cmap_HighResolution_577584001_577843201_4FGL_J1200.6+1229_daily_bin1305.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.925       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24996E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5932       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.931       1.0000         .10000E-03   10000.    
    17 'norm      '    .44790       1.0000         .10000E-03   10000.    
    18 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22322E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2665       1.0000         .10000E-03   10000.    
    21 'Prefactor '    81.915       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86350       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88404       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=   2999.725     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2580 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9611        .43362E-07** at limit **
   2  Prefactor     .10000E-03    5.7809        .53691E-08** at limit **
   3  Prefactor     46.947        50.695        .97466E-06   -.14227E-04
   4  Prefactor     .10001E-03    11.761        .60656E-06** at limit **
   5  Prefactor     .10000E-03    134.52        .61773E-04** at limit **
   6  Prefactor     7.5910        16.895       -.60416E-06   -.71678E-04
   7  Prefactor     .10000E-03    10.986       -.36621E-07** at limit **
   8  Prefactor     .10000E-03    40.161        .81278E-05** at limit **
   9  Prefactor     .10000E-03    1.2269       -.56959E-07** at limit **
  10  Prefactor     .10000E-03    108.54       -.54469E-04** at limit **
  11  Prefactor     .10000E-03    56.213        .27069E-04** at limit **
  12  Prefactor     .10000E-03    2.3949        .29853E-06** at limit **
  13  Prefactor     .10000E-03    1.8089        .97569E-07** at limit **
  14  Prefactor     .10000E-03    71.845       -.32712E-05** at limit **
  15  norm          .10000E-03    4.6714       -.23738E-06** at limit **
  16  Prefactor     21.017        101.11        .10646E-03    .98513E-06
  17  norm          .44789        .30865        .10280E-06   -.44335E-03
  18  norm          .10000E-03    47.473       -.24646E-04** at limit **
  19  Prefactor     .10003E-03    542.56       -.28314E-04** at limit **
  20  Prefactor     2.2471        89.196        .87371E-05   -.31466E-04
  21  Prefactor     81.877        78.197       -.12570E-04   -.82653E-04
  22  Normalizat    .86350        .24938        .17690E-05   -.23178E-03
  23  Prefactor     .88413        .21983       -.52354E-05    .60355E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.9473
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 7.59105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 21.0166
  norm       = 0.44789
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 2.24708
  Prefactor  = 81.8773
  Normalizat = 0.863497
  Prefactor  = 0.884135
 **********
 **   18 **HESSE 
 **********

 FCN=   2999.725     FROM HESSE     STATUS=OK           362 CALLS     2942 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.0380        .15091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8021        .12860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.947        50.892        .58533E-04   -1.4337    
   4  Prefactor     .10001E-03    39.010        .35653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    134.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5910        16.875        .14553E-03   -1.5157    
   7  Prefactor     .10000E-03    10.990        .17733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2296        .59226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    108.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5061        .16523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8310        .71879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    71.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6803        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.017        100.65        .87548E-04   -1.4791    
  17  norm          .44789        .30469        .23590E-04   -1.5574    
  18  norm          .10000E-03    47.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    543.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2471        78.067        .27282E-03   -1.5408    
  21  Prefactor     81.877        73.375        .44378E-04   -1.3896    
  22  Normalizat    .86350        .28762        .25641E-03   -.97755    
  23  Prefactor     .88413        .25517        .23055E-03   -.96698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66899e-10
Minuit parameter uncertainties:
  1  1.81552e-05
  2  7.457e-06
  3  50.9393
  4  0.00116833
  5  6.97502e-05
  6  16.886
  7  8.15444e-07
  8  3.42174e-05
  9  2.59146e-06
  10  5.73144e-05
  11  5.98113e-05
  12  1.67701e-05
  13  1.08464e-05
  14  0.000924229
  15  6.41272e-05
  16  92.2377
  17  0.304689
  18  7.45184e-05
  19  0.00790507
  20  26.5266
  21  73.4565
  22  0.288134
  23  0.255512
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.422e-05  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.841e-01  2.555e-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.635e-01  2.881e-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.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255388/likelihoodResults_577584001_577843201_4FGL_J1200.6+1229_daily_bin1305.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) = 2999.72491222
delta logL = -0.000117732974104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2999.72479349
delta logL = 1.00440638562e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7566       1.0000          .0000       10.000    
     3 'Normalizat'    .86350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88413       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2999.721     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      363 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84997        47.250        .18142E-02   -.33221E-04
   2  Index         3.2588        3.6829        .51140E-02   -.39804E-05
   3  Normalizat    .85655        .28640        .25736E-03   -.11176E-03
   4  Prefactor     .88645        .25291        .23027E-03   -.14973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.849972
  Index      = 3.25879
  Normalizat = 0.856551
  Prefactor  = 0.886453
 **********
 **   18 **HESSE 
 **********

 FCN=   2999.721     FROM HESSE     STATUS=OK            27 CALLS      390 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84997        32.891        .72569E-04   -1.5524    
   2  Index         3.2588        3.2223        .20456E-03   -.35569    
   3  Normalizat    .85655        .28557        .10294E-04   -.98004    
   4  Prefactor     .88645        .25313        .46054E-04   -.96616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28683e-11
Minuit parameter uncertainties:
  1  10.5803
  2  3.5529
  3  0.286076
  4  0.253469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255388': 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) = 2999.72060345
delta logL = 0.00419104263074

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  8.500e-01  1.058e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.259e+00  3.553e+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.865e-01  2.535e-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.566e-01  2.861e-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/255388/cmap_HighResolution_577584001_577843201_4FGL_J1200.6+1229_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-04 20:36:49.213594', job_id='255388', GAL2='0.89', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630813009.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.19e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1305' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 255388: <4FGL_J1200.6+1229_daily_bin1305> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1305> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:34 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:35 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:35 2021
Terminated at Sat Sep  4 20:36:49 2021
Results reported at Sat Sep  4 20:36:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1305 180.173 12.4922 577584001 577843201 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 :                                   487.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             236.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            675 sec.

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

