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


Performing analysis on: 4FGL_J1013.7+3444_monthly_bin118
RA = 153.449, Dec = 34.7384
tmin = 542851201, tmax = 545443201
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='29483', job_status='RUN', time_executed='2021-10-21 12:54:00.197617', time_epoch_executed='1634846040.2' WHERE source_name='4FGL J1013.7+3444' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29483

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29483/ft1_4FGL_J1013.7+3444_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29483/ft1_4FGL_J1013.7+3444_monthly_bin118.fits outfile=/scratch/kocevski/29483/ft1_filteredMKT_4FGL_J1013.7+3444_monthly_bin118.fits ra=153.449 dec=34.7384 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.81
user 18.28
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.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/29483/ft1_filteredMKT_4FGL_J1013.7+3444_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.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.59
user 0.42
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/29483/ltcube_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.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/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits
.....................!
real 44.05
user 43.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/29483/ltcube_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.fits outfile=/scratch/kocevski/29483/expmap_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.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/29483/ltcube_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.fits
.....................!
real 191.78
user 186.04
sys 5.30

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

Setting source of interest to:
4FGL J1013.7+3444 @ 153.449 34.7384

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits scfile=/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits outfile=/scratch/kocevski/29483/cmap_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.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=153.449 yref=34.7384 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.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits scfile=/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits outfile=/scratch/kocevski/29483/cmap_HighResolution_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.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=153.449 yref=34.7384 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.61
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29483/Model_4FGL_J1013.7+3444_monthly_bin118.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/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits.......................!
real 27.66
user 26.35
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits', '/scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits', expMap='/scratch/kocevski/29483/expmap_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.fits', expCube='/scratch/kocevski/29483/ltcube_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/29483/Model_4FGL_J1013.7+3444_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1013.7+3444'

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.162e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/29483/ft1_filtered_4FGL_J1013.7+3444_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/29483/ft2_4FGL_J1013.7+3444_monthly_bin118.fits
Exposure map: /scratch/kocevski/29483/expmap_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.fits
Exposure cube: /scratch/kocevski/29483/ltcube_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/29483/Model_4FGL_J1013.7+3444_monthly_bin118.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) = 2036.84975558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.412       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    114.47       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68029E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.346       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30365E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .60323       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.256       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .23813       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2036.583     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3300 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.415        43.840        .34971E-06    .13944E-04
   2  Prefactor     .10000E-03    11.799       -.83796E-06** at limit **
   3  norm          .10000E-03    61.368       -.10446E-05** at limit **
   4  Prefactor     .10000E-03    54.013        .26224E-06** at limit **
   5  Prefactor     114.38        144.20       -.34831E-05    .37781E-05
   6  Prefactor     .10000E-03    99.183       -.76232E-06** at limit **
   7  Prefactor     .10000E-03    3.6551        .13264E-06** at limit **
   8  Prefactor     .10000E-03    11.449        .21514E-07** at limit **
   9  Prefactor     .10000E-03    2.5512        .12538E-06** at limit **
  10  norm          .10000E-03    9.4848        .33210E-06** at limit **
  11  Prefactor     5.4091        15.221        .89053E-06    .48406E-04
  12  Prefactor     .10000E-03    1468.2       -.31023E-04** at limit **
  13  Prefactor     23.354        22.892       -.77008E-06    .58312E-04
  14  norm          .10000E-03    15.618       -.30187E-06** at limit **
  15  Prefactor     .10000E-03    116.40        .43557E-06** at limit **
  16  Prefactor     .10000E-03    26.557        .87396E-08** at limit **
  17  Prefactor     .10000E-03    24.737       -.85692E-06** at limit **
  18  Prefactor     .10000E-03    4.8792        .39908E-08** at limit **
  19  Prefactor     .10000E-03    37.803       -.41592E-07** at limit **
  20  Prefactor     .10000E-03    12.776        .46651E-07** at limit **
  21  Prefactor     .10000E-03    441.05       -.24838E-06** at limit **
  22  Prefactor     .10000E-03    24.113        .61779E-06** at limit **
  23  norm          .60321        .61106        .11913E-07    .15508E-03
  24  Prefactor     .10000E-03    22.327        .31850E-07** at limit **
  25  Prefactor     53.255        52.697       -.13927E-06    .12883E-04
  26  Normalizat    .23823        .32836       -.10364E-04   -.90118E-05
  27  Prefactor     1.5922        .36469        .30898E-05   -.10251E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.4147
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 114.379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.40906
  Prefactor  = 0.0001
  Prefactor  = 23.3537
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.603212
  Prefactor  = 0.0001
  Prefactor  = 53.2551
  Normalizat = 0.238227
  Prefactor  = 1.5922
 **********
 **   18 **HESSE 
 **********

 FCN=   2036.583     FROM HESSE     STATUS=OK           474 CALLS     3774 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.415        43.797        .81073E-04   -1.4719    
   2  Prefactor     .10000E-03    11.781        .15117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    61.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     114.38        143.18        .18801E-03   -1.3565    
   6  Prefactor     .10000E-03    99.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6738        .84318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.455        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6490        .14084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.6905        .13589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4091        15.152        .17249E-03   -1.5243    
  12  Prefactor     .10000E-03    1458.2        .18746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.354        22.647        .82902E-04   -1.4741    
  14  norm          .10000E-03    15.615        .17419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    116.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.8807        .97360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.779        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    441.23        .21385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .60321        .61365        .31677E-04   -1.5553    
  24  Prefactor     .10000E-03    22.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     53.255        53.934        .54961E-04   -1.4247    
  26  Normalizat    .23823        .32327        .44772E-03   -1.2673    
  27  Prefactor     1.5922        .35975        .20485E-03   -.74989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21591e-11
Minuit parameter uncertainties:
  1  43.8543
  2  1.25123e-05
  3  2.12957e-05
  4  7.37402e-05
  5  143.615
  6  9.40823e-05
  7  1.01754e-05
  8  1.19578e-05
  9  8.15022e-06
  10  3.69406e-05
  11  15.1625
  12  0.0014106
  13  22.6553
  14  1.43362e-05
  15  0.000198464
  16  1.8401e-05
  17  8.92755e-05
  18  6.3451e-06
  19  7.39224e-06
  20  6.78385e-06
  21  0.000184794
  22  0.000112498
  23  0.613657
  24  9.5011e-06
  25  53.9833
  26  0.325853
  27  0.360334
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  5.409e+00  1.516e+01  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.592e+00  3.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  2.382e-01  3.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 3.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29483/likelihoodResults_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.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) = 2036.53273406
delta logL = 0.0506082739012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2036.2293827
delta logL = 0.35395963006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8739       1.0000          .0000       10.000    
     3 'Normalizat'    .17372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2036.229     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      323 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49109E-03    .21633E-01    .31069E-03** at limit **
   2  Index         8.9058        9.1407        .20355        .12989E-04
   3  Normalizat    .17349        .73884E-01    .11858        .41812E-04
   4  Prefactor     1.6528        .83550E-01    .45667E-01    .27146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00049109
  Index      = 8.90583
  Normalizat = 0.173494
  Prefactor  = 1.65277
 **********
 **   18 **HESSE 
 **********

 FCN=   2036.229     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      356 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49109E-03    .46563E-01    .13429E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9058        9.0551        .89594E-03    .89653    
   3  Normalizat    .17349        .27584        .52224E-03   -1.3142    
   4  Prefactor     1.6528        .30824        .20183E-03   -.73346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14201e-10
Minuit parameter uncertainties:
  1  0.00853469
  2  9.48729
  3  0.278065
  4  0.308598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29483': 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): 102
logL (Free Index) = 2036.22937052
delta logL = 0.353971815168

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  4.911e-04  8.535e-03  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  8.906e+00  9.487e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.653e+00  3.086e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.735e-01  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 153.449 34.738
Photon Index (Free Index): 8.91 +/- 9.49
Photon Flux (Free Index): 2.00e-07 +/- 2.29e-07
Energy Flux (Free Index): 2.28e-05 +/- 2.70e-05

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/29483/cmap_HighResolution_542851201_545443201_4FGL_J1013.7+3444_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-02', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='3.54e-01', photon_flux2='2.00e-07', job_status='DONE', time_completed='2021-10-21 13:05:47.070959', photon_index_error2='9.49', photon_index2='8.91', ts='0.27', fit_tolerance='1e-08', GAL='1.59', photon_index_error='0.00', photon_flux_upper_limit='3.38e-07', energy_flux_error2='2.70e-05', EG='0.24', time_epoch_completed='1634846747.07', return_code='0', job_id='29483', GAL2='1.65', EG2='0.17', return_code2='102', photon_flux_error2='2.29e-07', ts2='1.06', photon_index='2.59' WHERE bin_id='118' AND source_name='4FGL J1013.7+3444' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 13:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 29483: <4FGL_J1013.7+3444_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1013.7+3444_monthly_bin118> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Oct 21 12:50:17 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 12:53:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 12:53:44 2021
Terminated at Thu Oct 21 13:05:47 2021
Results reported at Thu Oct 21 13:05:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_monthly_bin118 153.449 34.7384 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1013.7+3444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             255.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            930 sec.

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

