/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 70 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_J2144.2+3132_monthly_bin118
RA = 326.065, Dec = 31.5457
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='238586', job_status='RUN', time_executed='2021-11-07 06:41:37.761826', time_epoch_executed='1636296097.76' WHERE source_name='4FGL J2144.2+3132' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238586

Creating custom pfile directory:
/scratch/kocevski/238586/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/238586/ft1_4FGL_J2144.2+3132_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/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238586/ft1_4FGL_J2144.2+3132_monthly_bin118.fits outfile=/scratch/kocevski/238586/ft1_filteredMKT_4FGL_J2144.2+3132_monthly_bin118.fits ra=326.065 dec=31.5457 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.43
user 17.83
sys 0.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_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/238586/ft1_filteredMKT_4FGL_J2144.2+3132_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_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/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/238586/ltcube_542851201_545443201_4FGL_J2144.2+3132_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/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits
.....................!
real 40.34
user 39.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/238586/ltcube_542851201_545443201_4FGL_J2144.2+3132_monthly_bin118.fits outfile=/scratch/kocevski/238586/expmap_542851201_545443201_4FGL_J2144.2+3132_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/238586/ltcube_542851201_545443201_4FGL_J2144.2+3132_monthly_bin118.fits
.....................!
real 190.14
user 185.38
sys 4.38

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 186 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2144.2+3132 @ 326.065 31.5457

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits scfile=/scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits outfile=/scratch/kocevski/238586/cmap_542851201_545443201_4FGL_J2144.2+3132_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=326.065 yref=31.5457 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.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits scfile=/scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits outfile=/scratch/kocevski/238586/cmap_HighResolution_542851201_545443201_4FGL_J2144.2+3132_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=326.065 yref=31.5457 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.62
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/238586/Model_4FGL_J2144.2+3132_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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits.....................!
real 76.69
user 75.27
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits', '/scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits', expMap='/scratch/kocevski/238586/expmap_542851201_545443201_4FGL_J2144.2+3132_monthly_bin118.fits', expCube='/scratch/kocevski/238586/ltcube_542851201_545443201_4FGL_J2144.2+3132_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/238586/Model_4FGL_J2144.2+3132_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2144.2+3132'

4FGL J2144.2+3132
   Spectrum: PowerLaw
391    Prefactor:  1.749e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.112e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.961e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/238586/ft1_filtered_4FGL_J2144.2+3132_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/238586/ft2_4FGL_J2144.2+3132_monthly_bin118.fits
Exposure map: /scratch/kocevski/238586/expmap_542851201_545443201_4FGL_J2144.2+3132_monthly_bin118.fits
Exposure cube: /scratch/kocevski/238586/ltcube_542851201_545443201_4FGL_J2144.2+3132_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/238586/Model_4FGL_J2144.2+3132_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) = 3868.51858221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    110.32       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.605       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8168       1.0000         .10000E-03   10000.    
     5 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12122E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9400       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2505       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    108.54       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2893       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .77682       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .74469       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3868.492     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1774 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    33.051       -.11868E-05** at limit **
   2  Prefactor     110.29        96.959       -.30621E-04   -.10143E-04
   3  Prefactor     32.594        51.614       -.13697E-04   -.70998E-05
   4  Prefactor     8.8187        8.9291       -.11087E-05   -.13387E-03
   5  norm          .10000E-03    11.919        .29633E-06** at limit **
   6  norm          .10000E-03    2.2019       -.73269E-07** at limit **
   7  norm          .10000E-03    23.529        .34499E-06** at limit **
   8  Prefactor     40.934        28.069        .11529E-06   -.65531E-05
   9  Prefactor     .10000E-03    86.043        .43039E-05** at limit **
  10  Prefactor     4.9394        18.620       -.33813E-05   -.34627E-04
  11  norm          .10000E-03    1.5147       -.25259E-06** at limit **
  12  Prefactor     11.647        53.016        .34545E-04    .16545E-05
  13  norm          8.2504        4.4263        .57262E-07    .75257E-03
  14  Prefactor     3.1031        78.378       -.11947E-04    .42952E-04
  15  Prefactor     108.37        275.02       -.15604E-03    .12299E-04
  16  norm          9.2911        5.8304        .30016E-05    .50759E-04
  17  Normalizat    .77696        .39201        .20785E-04    .79098E-05
  18  Prefactor     .74467        .10699       -.78315E-06    .24933E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 110.286
  Prefactor  = 32.5944
  Prefactor  = 8.81868
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 40.9337
  Prefactor  = 0.0001
  Prefactor  = 4.93942
  norm       = 0.0001
  Prefactor  = 11.6472
  norm       = 8.25044
  Prefactor  = 3.10308
  Prefactor  = 108.373
  norm       = 9.29112
  Normalizat = 0.776962
  Prefactor  = 0.744669
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.492     FROM HESSE     STATUS=OK           250 CALLS     2024 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     110.29        96.902        .19148E-03   -1.3604    
   3  Prefactor     32.594        51.671        .70174E-04   -1.4566    
   4  Prefactor     8.8187        8.8399        .13499E-03   -1.5114    
   5  norm          .10000E-03    12.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.440        .17863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.934        28.075        .62654E-04   -1.4428    
   9  Prefactor     .10000E-03    86.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9394        18.386        .18095E-03   -1.5263    
  11  norm          .10000E-03    2.2267        .14588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.647        52.911        .11747E-03   -1.5025    
  13  norm          8.2504        4.4268        .46728E-03   -1.5133    
  14  Prefactor     3.1031        77.235        .22948E-03   -1.5356    
  15  Prefactor     108.37        273.87        .19303E-03   -1.3622    
  16  norm          9.2911        5.8311        .11140E-03   -1.5098    
  17  Normalizat    .77696        .41986        .49213E-03   -1.0093    
  18  Prefactor     .74467        .11681        .14451E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99646e-10
Minuit parameter uncertainties:
  1  2.01722e-05
  2  97.0414
  3  51.7423
  4  8.84124
  5  4.9112e-05
  6  3.12354e-05
  7  2.11193e-05
  8  28.0839
  9  0.000205631
  10  18.407
  11  3.65213e-05
  12  49.7223
  13  4.42698
  14  31.0067
  15  277.171
  16  5.83144
  17  0.421624
  18  0.116852
Done.

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

Extracting fit parameters...

4FGL J2144.2+3132
   Spectrum: PowerLaw
391    Prefactor:  4.939e+00  1.841e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.112e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.961e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  7.447e-01  1.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  7.770e-01  4.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 326.065 31.546
Photon Flux Upper Limit: 2.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/238586/likelihoodResults_542851201_545443201_4FGL_J2144.2+3132_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): 102
logL (Free Index) = 3868.42999278
delta logL = 0.0619571776051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3868.33025503
delta logL = 0.161694927423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27101E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.6304       1.0000          .0000       10.000    
     3 'Normalizat'    .70674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75976       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3868.330     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      316 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26350E-02    .11060        .99680E-03    .10446E-01
   2  Index         5.6430        3.2006        .94370E-01    .12542E-03
   3  Normalizat    .70649        .75782E-01    .11594       -.23934E-03
   4  Prefactor     .75972        .21959E-01    .32395E-01   -.11641E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00263496
  Index      = 5.64296
  Normalizat = 0.706494
  Prefactor  = 0.759715
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.330     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      349 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26350E-02    .38056        .54761E-04   -1.5698    
   2  Index         5.6430        7.8212        .57769E-02    .12895    
   3  Normalizat    .70649        .27569        .51433E-03   -1.0364    
   4  Prefactor     .75972        .79037E-01    .14314E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.00935e-08
Minuit parameter uncertainties:
  1  0.0621196
  2  8.50423
  3  0.276234
  4  0.0790484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238586': 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) = 3868.33024492
delta logL = 0.16170504279

Extracting fit parameters...

4FGL J2144.2+3132
   Spectrum: PowerLaw
391    Prefactor:  2.635e-03  6.212e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  5.643e+00  8.504e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.961e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  7.597e-01  7.905e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  7.065e-01  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 326.065 31.546

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/238586/cmap_HighResolution_542851201_545443201_4FGL_J2144.2+3132_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', job_status='DONE', photon_flux_upper_limit='2.52e-07', time_completed='2021-11-07 06:52:58.160392', job_id='238586', GAL2='0.76', fit_tolerance='1e-08', EG2='0.71', EG='0.78', time_epoch_completed='1636296778.16', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.62e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='118' AND source_name='4FGL J2144.2+3132' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Nov  7 06:52:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 238586: <4FGL_J2144.2+3132_monthly_bin118> in cluster <slac> Done

Job <4FGL_J2144.2+3132_monthly_bin118> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov  7 06:40:16 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov  7 06:40:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov  7 06:40:19 2021
Terminated at Sun Nov  7 06:52:58 2021
Results reported at Sun Nov  7 06:52:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2144.2+3132_monthly_bin118 326.065 31.5457 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2144.2+3132 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             284.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

