/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 5 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin185
RA = 180.055, Dec = 2.0172
tmin = 287280001, tmax = 287539201
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='239812', job_status='RUN', time_executed='2021-09-04 19:36:11.843743', time_epoch_executed='1630809371.84' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239812

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239812/ft1_4FGL_J1200.2+0201_daily_bin185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239812/ft1_4FGL_J1200.2+0201_daily_bin185.fits outfile=/scratch/kocevski/239812/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin185.fits ra=180.055 dec=2.0172 rad=12.0 tmin=287280001.0 tmax=287539201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.60
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.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/239812/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin185.fits evtable="EVENTS" outfile="/scratch/kocevski/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.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/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits" evtable="EVENTS" scfile=/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits sctable="SC_DATA" outfile=/scratch/kocevski/239812/ltcube_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.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/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits
.....................!
real 11.53
user 11.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits sctable="SC_DATA" expcube=/scratch/kocevski/239812/ltcube_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.fits outfile=/scratch/kocevski/239812/expmap_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.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/239812/ltcube_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.fits
.....................!
real 190.63
user 185.80
sys 4.50

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/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits scfile=/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits outfile=/scratch/kocevski/239812/cmap_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits scfile=/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits outfile=/scratch/kocevski/239812/cmap_HighResolution_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/239812/Model_4FGL_J1200.2+0201_daily_bin185.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/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits.....................!
real 65.84
user 63.94
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits', '/scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits', expMap='/scratch/kocevski/239812/expmap_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.fits', expCube='/scratch/kocevski/239812/ltcube_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/239812/Model_4FGL_J1200.2+0201_daily_bin185.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/239812/ft1_filtered_4FGL_J1200.2+0201_daily_bin185.fits
Spacecraft file(s): /scratch/kocevski/239812/ft2_4FGL_J1200.2+0201_daily_bin185.fits
Exposure map: /scratch/kocevski/239812/expmap_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.fits
Exposure cube: /scratch/kocevski/239812/ltcube_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/239812/Model_4FGL_J1200.2+0201_daily_bin185.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) = 6935.14056943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22673E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0153       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .88714       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12971E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    91.675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.498       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.215       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.033       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9313       1.0000         .10000E-03   10000.    
    21 'norm      '    18.111       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.931       1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.3411       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.4156       1.0000         .10000E-03   10000.    
    29 'Prefactor '    48.367       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3557       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87342       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=   6935.084     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4167 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4521        .30106E-07** at limit **
   2  norm          .10000E-03    8.8345       -.44222E-06** at limit **
   3  Prefactor     .10000E-03    1.3902        .13907E-06** at limit **
   4  Prefactor     4.0316        60.064        .18453E-05    .53930E-04
   5  norm          1.0252        5.1016        .15407E-05   -.22341E-03
   6  Prefactor     .88255        3.4844        .10391E-05   -.25389E-03
   7  Prefactor     .10000E-03    13.177       -.77111E-06** at limit **
   8  Prefactor     .10000E-03    34.042       -.24844E-05** at limit **
   9  Prefactor     .10000E-03    4.7866       -.27304E-06** at limit **
  10  Prefactor     .10000E-03    13.534       -.63442E-06** at limit **
  11  Prefactor     3.1280        5.2421        .55800E-05   -.10920E-02
  12  Prefactor     .10000E-03    10.104        .17996E-06** at limit **
  13  Prefactor     .10000E-03    14.597        .59865E-06** at limit **
  14  Prefactor     91.601        85.358       -.10328E-04   -.48069E-03
  15  Prefactor     39.467        48.051       -.48480E-05   -.33303E-03
  16  Prefactor     29.220        28.417       -.25569E-06    .24619E-04
  17  Prefactor     .10000E-03    41.567        .24589E-05** at limit **
  18  Prefactor     .10000E-03    8.0833        .17369E-06** at limit **
  19  Prefactor     21.041        20.556       -.20015E-06   -.61393E-04
  20  norm          2.9304        3.3232        .96468E-07   -.97299E-04
  21  norm          18.112        5.6704       -.52643E-07   -.21665E-03
  22  Prefactor     25.924        32.070       -.42830E-06   -.65689E-04
  23  norm          .10000E-03    25.039        .55126E-06** at limit **
  24  Prefactor     .10000E-03    94.493        .43594E-06** at limit **
  25  norm          7.3412        1.1465       -.11296E-07   -.42077E-03
  26  Prefactor     .10000E-03    3.9101       -.11661E-08** at limit **
  27  norm          .10000E-03    .98946        .15430E-06** at limit **
  28  Prefactor     7.4148        10.952        .18963E-05   -.21848E-03
  29  Prefactor     48.362        38.565       -.61699E-06   -.70443E-04
  30  Normalizat    1.3549        .23476        .19732E-06   -.15968E-03
  31  Prefactor     .87421        .17827       -.79640E-06   -.85430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03159
  norm       = 1.02517
  Prefactor  = 0.88255
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12803
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 91.6012
  Prefactor  = 39.4673
  Prefactor  = 29.2196
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 21.0408
  norm       = 2.93039
  norm       = 18.1119
  Prefactor  = 25.9243
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.34122
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.4148
  Prefactor  = 48.3616
  Normalizat = 1.35488
  Prefactor  = 0.874213
 **********
 **   18 **HESSE 
 **********

 FCN=   6935.084     FROM HESSE     STATUS=OK           616 CALLS     4783 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.103        .29343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4397        .19159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0316        57.894        .20125E-03   -1.5306    
   5  norm          1.0252        4.8937        .35086E-03   -1.5505    
   6  Prefactor     .88255        3.4300        .28562E-03   -1.5520    
   7  Prefactor     .10000E-03    13.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7961        .17788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1280        5.4153        .11462E-02   -1.5354    
  12  Prefactor     .10000E-03    10.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     91.601        90.289        .20985E-03   -1.3791    
  15  Prefactor     39.467        48.904        .63777E-04   -1.4451    
  16  Prefactor     29.220        28.440        .74123E-04   -1.4626    
  17  Prefactor     .10000E-03    41.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.041        20.474        .87336E-04   -1.4790    
  20  norm          2.9304        3.3042        .13593E-03   -1.5366    
  21  norm          18.112        5.6895        .94112E-04   -1.4857    
  22  Prefactor     25.924        32.092        .78667E-04   -1.4689    
  23  norm          .10000E-03    25.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    94.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.3412        1.1465        .31244E-04   -1.5166    
  26  Prefactor     .10000E-03    3.9186        .16080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6555        .15929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.4148        10.977        .73640E-03   -1.5163    
  29  Prefactor     48.362        38.572        .57658E-04   -1.4316    
  30  Normalizat    1.3549        .28769        .30589E-03   -.81943    
  31  Prefactor     .87421        .21782        .28768E-03   -.97048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59591e-09
Minuit parameter uncertainties:
  1  0.000194709
  2  6.27818e-05
  3  3.83998e-06
  4  30.5904
  5  4.48006
  6  3.43075
  7  0.000127373
  8  0.000562747
  9  2.53082e-05
  10  5.47584e-05
  11  5.41617
  12  0.000188662
  13  0.000229116
  14  90.4243
  15  48.9536
  16  28.4527
  17  0.000527032
  18  2.12265e-05
  19  20.4803
  20  3.30445
  21  5.68966
  22  32.1131
  23  0.000112085
  24  0.000175207
  25  1.1465
  26  3.05168e-06
  27  6.681e-06
  28  10.9797
  29  38.592
  30  0.288037
  31  0.218034
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  3.128e+00  5.416e+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:  8.742e-01  2.180e-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.355e+00  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239812/likelihoodResults_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.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) = 6935.07567006
delta logL = 0.0079965010018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6935.0732748
delta logL = 0.0103917676315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7382       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2763       1.0000          .0000       10.000    
     3 'Normalizat'    1.3518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87555       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=   6935.073     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      252 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7382        6.2800        .11298E-02   -.57351E-03
   2  Index         2.2762        1.2918        .10851E-01    .89130E-05
   3  Normalizat    1.3519        .27454        .30617E-03    .74263E-07
   4  Prefactor     .87554        .21307        .28748E-03    .39546E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73818
  Index      = 2.27625
  Normalizat = 1.35186
  Prefactor  = 0.875541
 **********
 **   18 **HESSE 
 **********

 FCN=   6935.073     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7382        5.6504        .45191E-04   -1.5377    
   2  Index         2.2762        1.1662        .43403E-03   -.57609    
   3  Normalizat    1.3519        .27465        .12247E-04   -.82031    
   4  Prefactor     .87554        .21322        .11499E-04   -.97001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11361e-10
Minuit parameter uncertainties:
  1  5.65155
  2  1.18179
  3  0.27495
  4  0.21342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239812': 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) = 6935.07327475
delta logL = 0.0103918160894

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.738e+00  5.652e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.276e+00  1.182e+00  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:  8.755e-01  2.134e-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.352e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/239812/cmap_HighResolution_287280001_287539201_4FGL_J1200.2+0201_daily_bin185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2021-09-04 19:52:28.267612', job_id='239812', GAL2='0.88', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630810348.27', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.04e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='185' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:52:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 239812: <4FGL_J1200.2+0201_daily_bin185> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin185> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:35:52 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:35:54 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:35:54 2021
Terminated at Sat Sep  4 19:52:29 2021
Results reported at Sat Sep  4 19:52:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin185 180.055 2.0172 287280001 287539201 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 :                                   973.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            997 sec.

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

