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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin558
RA = 180.055, Dec = 2.0172
tmin = 383961601, tmax = 384220801
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='241362', job_status='RUN', time_executed='2021-09-04 19:41:06.054089', time_epoch_executed='1630809666.05' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241362/ft1_4FGL_J1200.2+0201_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241362/ft1_4FGL_J1200.2+0201_daily_bin558.fits outfile=/scratch/kocevski/241362/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin558.fits ra=180.055 dec=2.0172 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.73
user 8.34
sys 0.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.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/241362/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin558.fits evtable="EVENTS" outfile="/scratch/kocevski/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits" evtable="EVENTS" scfile=/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits sctable="SC_DATA" outfile=/scratch/kocevski/241362/ltcube_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.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/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits
.....................!
real 11.52
user 11.04
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/241362/ltcube_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.fits outfile=/scratch/kocevski/241362/expmap_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.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/241362/ltcube_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.fits
.....................!
real 190.76
user 185.26
sys 5.09

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits scfile=/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits outfile=/scratch/kocevski/241362/cmap_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.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.055 yref=2.0172 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits scfile=/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits outfile=/scratch/kocevski/241362/cmap_HighResolution_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.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.055 yref=2.0172 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/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241362/Model_4FGL_J1200.2+0201_daily_bin558.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/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits.....................!
real 47.09
user 45.17
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits', '/scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits', expMap='/scratch/kocevski/241362/expmap_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.fits', expCube='/scratch/kocevski/241362/ltcube_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241362/Model_4FGL_J1200.2+0201_daily_bin558.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/241362/ft1_filtered_4FGL_J1200.2+0201_daily_bin558.fits
Spacecraft file(s): /scratch/kocevski/241362/ft2_4FGL_J1200.2+0201_daily_bin558.fits
Exposure map: /scratch/kocevski/241362/expmap_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.fits
Exposure cube: /scratch/kocevski/241362/ltcube_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241362/Model_4FGL_J1200.2+0201_daily_bin558.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) = 4418.83970975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.011       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5977       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.129       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.012       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4693       1.0000         .10000E-03   10000.    
    20 'norm      '    .11165E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1211       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5790       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    13.497       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.2772       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.7928       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .51452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4418.826     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4083 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.994       -.27234E-06** at limit **
   2  norm          .10000E-03    22.345       -.69549E-06** at limit **
   3  Prefactor     .10000E-03    .83272       -.57227E-07** at limit **
   4  Prefactor     24.008        41.346        .60036E-06    .33162E-05
   5  norm          1.5976        12.434        .79536E-05   -.29799E-04
   6  Prefactor     .10000E-03    2.1132        .62582E-06** at limit **
   7  Prefactor     .10000E-03    11.166       -.24931E-06** at limit **
   8  Prefactor     .10000E-03    919.64        .98514E-04** at limit **
   9  Prefactor     .10000E-03    5.4640       -.16333E-06** at limit **
  10  Prefactor     .10000E-03    30.332        .51675E-06** at limit **
  11  Prefactor     7.3760        9.8908        .43870E-06   -.45104E-04
  12  Prefactor     5.1310        12.765        .10215E-06   -.18772E-04
  13  Prefactor     .10000E-03    9.0330        .18041E-06** at limit **
  14  Prefactor     .10000E-03    50.595        .20693E-05** at limit **
  15  Prefactor     .10000E-03    28.346       -.77797E-06** at limit **
  16  Prefactor     .10000E-03    30.022        .23081E-07** at limit **
  17  Prefactor     27.115        24.401        .73783E-07   -.98168E-05
  18  Prefactor     23.023        26.541       -.11515E-06   -.19736E-04
  19  Prefactor     9.4728        13.551        .18455E-06    .17854E-05
  20  norm          .10000E-03    3.3469       -.50034E-07** at limit **
  21  norm          5.1208        4.3810        .17039E-06   -.56433E-04
  22  Prefactor     .10000E-03    21.667        .31448E-06** at limit **
  23  norm          .10000E-03    23.187       -.11641E-05** at limit **
  24  Prefactor     .10000E-03    101.92       -.58840E-05** at limit **
  25  norm          1.5790        .86007        .31672E-07   -.50047E-04
  26  Prefactor     .10000E-03    7.9255       -.99554E-07** at limit **
  27  norm          13.497        3.4189        .30384E-07   -.29263E-04
  28  Prefactor     1.2761        25.123        .80900E-06   -.85106E-06
  29  Prefactor     .10000E-03    21.263        .10317E-05** at limit **
  30  Normalizat    1.7927        .26257       -.97377E-06   -.19187E-03
  31  Prefactor     .51452        .19592       -.94202E-06   -.15762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0079
  norm       = 1.5976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37599
  Prefactor  = 5.13095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1149
  Prefactor  = 23.0227
  Prefactor  = 9.47279
  norm       = 0.0001
  norm       = 5.12078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57903
  Prefactor  = 0.0001
  norm       = 13.4968
  Prefactor  = 1.27606
  Prefactor  = 0.0001
  Normalizat = 1.79273
  Prefactor  = 0.514517
 **********
 **   18 **HESSE 
 **********

 FCN=   4418.826     FROM HESSE     STATUS=OK           614 CALLS     4697 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    22.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .83645        .59231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.008        41.263        .81748E-04   -1.4728    
   5  norm          1.5976        12.443        .16775E-02   -1.5455    
   6  Prefactor     .10000E-03    2.1280        .94413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    918.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4774        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3760        9.8871        .73849E-03   -1.5165    
  12  Prefactor     5.1310        12.762        .17749E-03   -1.5255    
  13  Prefactor     .10000E-03    9.0540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.115        24.424        .76914E-04   -1.4666    
  18  Prefactor     23.023        26.541        .83500E-04   -1.4748    
  19  Prefactor     9.4728        13.300        .13023E-03   -1.5092    
  20  norm          .10000E-03    3.3804        .23289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1208        4.3777        .59821E-03   -1.5255    
  22  Prefactor     .10000E-03    21.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    23.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    101.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5790        .84938        .41649E-04   -1.5457    
  26  Prefactor     .10000E-03    7.9592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          13.497        3.4165        .58981E-04   -1.4973    
  28  Prefactor     1.2761        25.433        .39306E-03   -1.5482    
  29  Prefactor     .10000E-03    21.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.7927        .30429        .24920E-03   -.69854    
  31  Prefactor     .51452        .22400        .32764E-03   -1.1132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19638e-10
Minuit parameter uncertainties:
  1  4.76957e-05
  2  3.5543e-05
  3  3.45979e-07
  4  41.3119
  5  8.91938
  6  1.50273e-06
  7  2.38566e-06
  8  0.00118251
  9  4.2212e-06
  10  1.17263e-06
  11  9.88924
  12  12.7691
  13  2.27288e-06
  14  2.37262e-05
  15  1.08856e-05
  16  9.08028e-06
  17  24.4335
  18  26.5543
  19  13.304
  20  1.47252e-06
  21  4.37794
  22  2.78812e-06
  23  1.07627e-05
  24  0.000105435
  25  0.849389
  26  1.2786e-07
  27  3.41659
  28  11.3989
  29  8.59408e-06
  30  0.304611
  31  0.224387
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  7.376e+00  9.889e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  5.145e-01  2.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.793e+00  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241362/likelihoodResults_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.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) = 4418.79085668
delta logL = 0.0353116704955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4418.78960911
delta logL = 0.0365592394674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0871       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9032       1.0000          .0000       10.000    
     3 'Normalizat'    1.7992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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=   4418.790     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      314 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1158        12.991        .66478E-03    .41738E-04
   2  Index         1.9051        .73665        .92824E-02    .16041E-03
   3  Normalizat    1.7990        .29173        .24885E-03   -.99134E-05
   4  Prefactor     .51076        .22090        .32872E-03   -.19713E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.11583
  Index      = 1.90505
  Normalizat = 1.79896
  Prefactor  = 0.51076
 **********
 **   18 **HESSE 
 **********

 FCN=   4418.790     FROM HESSE     STATUS=OK            27 CALLS      341 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1158        12.722        .13296E-03   -1.5104    
   2  Index         1.9051        .72168        .18565E-02   -.66746    
   3  Normalizat    1.7990        .29187        .99542E-05   -.69691    
   4  Prefactor     .51076        .22102        .13149E-04   -1.1149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59825e-13
Minuit parameter uncertainties:
  1  12.7258
  2  0.725803
  3  0.292153
  4  0.221392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241362': 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) = 4418.78959937
delta logL = 0.0365689825849

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  9.116e+00  1.273e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.905e+00  7.258e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  5.108e-01  2.214e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.799e+00  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.78
Ra Dec: 180.055 2.017

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/241362/cmap_HighResolution_383961601_384220801_4FGL_J1200.2+0201_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-04 19:54:00.173570', job_id='241362', GAL2='0.51', fit_tolerance='1e-08', EG2='1.80', EG='1.79', time_epoch_completed='1630810440.17', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='3.66e-02', ts2='0.85', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='558' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:54:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 241362: <4FGL_J1200.2+0201_daily_bin558> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin558> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:55 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:40:56 2021
Terminated at Sat Sep  4 19:54:00 2021
Results reported at Sat Sep  4 19:54:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin558 180.055 2.0172 383961601 384220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

