aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 77 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0243.4+7119_monthly_bin169
RA = 40.8679, Dec = 71.3249
tmin = 675043201, tmax = 677635201
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='161091', job_status='RUN', time_executed='2022-06-23 01:24:00.059217', time_epoch_executed='1655972640.06' WHERE source_name='4FGL J0243.4+7119' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161091

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161091/ft1_4FGL_J0243.4+7119_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161091/ft1_4FGL_J0243.4+7119_monthly_bin169.fits outfile=/scratch/kocevski/161091/ft1_filteredMKT_4FGL_J0243.4+7119_monthly_bin169.fits ra=40.8679 dec=71.3249 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.98
user 27.27
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.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/161091/ft1_filteredMKT_4FGL_J0243.4+7119_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.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.89
user 0.68
sys 0.20

Number of photons that the gtmktime cut: 39536

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/161091/ltcube_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.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/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits
.....................!
real 138.74
user 137.73
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/161091/ltcube_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.fits outfile=/scratch/kocevski/161091/expmap_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.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/161091/ltcube_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.fits
.....................!
real 192.86
user 187.40
sys 5.06

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 193 point sources and 3 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 J0243.4+7119 @ 40.8679 71.3249

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits scfile=/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits outfile=/scratch/kocevski/161091/cmap_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.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=40.8679 yref=71.3249 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.88
user 0.68
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits scfile=/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits outfile=/scratch/kocevski/161091/cmap_HighResolution_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.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=40.8679 yref=71.3249 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.87
user 0.69
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161091/Model_4FGL_J0243.4+7119_monthly_bin169.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits.....................!
real 5106.28
user 5091.57
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits', '/scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits', expMap='/scratch/kocevski/161091/expmap_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.fits', expCube='/scratch/kocevski/161091/ltcube_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161091/Model_4FGL_J0243.4+7119_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0243.4+7119'

4FGL J0243.4+7119
   Spectrum: LogParabola
270         norm:  2.219e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
271        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  1.458e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  2.193e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/161091/ft1_filtered_4FGL_J0243.4+7119_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/161091/ft2_4FGL_J0243.4+7119_monthly_bin169.fits
Exposure map: /scratch/kocevski/161091/expmap_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.fits
Exposure cube: /scratch/kocevski/161091/ltcube_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161091/Model_4FGL_J0243.4+7119_monthly_bin169.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) = 373148.266099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6461       1.0000         .10000E-03   10000.    
     5 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17779       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1310       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6564       1.0000         .10000E-03   10000.    
    10 'norm      '    .34636       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0660       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7530       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0375       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2099       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98625       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   373148.0     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1548 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .71198E-01     .0000    ** at limit **
   2  Prefactor     .10000E-03    1.7579         .0000    ** at limit **
   3  Prefactor     6.1539        5.5189         .0000        .40324E-02
   4  Prefactor     1.6463        .25093         .0000        .33951E-01
   5  norm          .10000E-03    .66298         .0000    ** at limit **
   6  Prefactor     .17591        .20106         .0000        .14750E-01
   7  Prefactor     .10000E-03    .62574         .0000    ** at limit **
   8  norm          4.1307        .17880         .0000        .91154E-02
   9  norm          3.6615        1.9790         .0000        .29903E-02
  10  norm          .34930        .42067         .0000        .22242E-01
  11  Prefactor     1.6346        5.2427         .0000        .24844E-01
  12  Prefactor     5.0622        1.5355         .0000        .10191    
  13  Prefactor     2.1202        .74753         .0000        .13064E-01
  14  Prefactor     .10000E-03    .36593         .0000    ** at limit **
  15  Prefactor     1.7475        1.8897         .0000        .77517E-02
  16  Prefactor     7.0437        4.9035         .0000        .44833E-02
  17  Normalizat    1.2099        .66356E-01     .0000        .13250E-02
  18  Prefactor     .98625        .91665E-02     .0000       -.40111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.15395
  Prefactor  = 1.64629
  norm       = 0.0001
  Prefactor  = 0.175912
  Prefactor  = 0.0001
  norm       = 4.13068
  norm       = 3.66153
  norm       = 0.349301
  Prefactor  = 1.6346
  Prefactor  = 5.06218
  Prefactor  = 2.12022
  Prefactor  = 0.0001
  Prefactor  = 1.7475
  Prefactor  = 7.04369
  Normalizat = 1.20991
  Prefactor  = 0.986246
 **********
 **   18 **HESSE 
 **********

 FCN=   373148.0     FROM HESSE     STATUS=OK           258 CALLS     1806 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .29427        .31382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1539        5.5700        .81340E-03   -1.5212    
   4  Prefactor     1.6463        .24920        .11419E-03   -1.5451    
   5  norm          .10000E-03    .67505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17591        .82496        .26736E-02   -1.5624    
   7  Prefactor     .10000E-03    .63281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1307        .17894        .51609E-04   -1.5301    
   9  norm          3.6615        1.9777        .21125E-03   -1.5325    
  10  norm          .34930        1.0185        .41025E-02   -1.5590    
  11  Prefactor     1.6346        5.1838        .16412E-02   -1.5452    
  12  Prefactor     5.0622        1.5337        .89321E-03   -1.5258    
  13  Prefactor     2.1202        .74313        .28328E-03   -1.5417    
  14  Prefactor     .10000E-03    .37254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7475        1.8853        .31662E-03   -1.5444    
  16  Prefactor     7.0437        4.9042        .75610E-03   -1.5177    
  17  Normalizat    1.2099        .66764E-01    .80309E-03   -.86297    
  18  Prefactor     .98625        .94760E-02    .12422E-03   -.93189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48993e-06
Minuit parameter uncertainties:
  1  1.13885e-07
  2  5.49805e-06
  3  5.57048
  4  0.249201
  5  5.79487e-07
  6  0.761695
  7  1.97999e-06
  8  0.178944
  9  1.97774
  10  1.01857
  11  5.18523
  12  1.53371
  13  0.743135
  14  4.58718e-07
  15  1.88538
  16  4.90447
  17  0.066769
  18  0.00947603
Done.

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

Extracting fit parameters...

4FGL J0243.4+7119
   Spectrum: LogParabola
270         norm:  3.662e+00  1.978e+00  1.000e-04  1.000e+04 ( 1.000e-13)
271        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  1.458e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  2.193e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.862e-01  9.476e-03  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  1.210e+00  6.677e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.36
Ra Dec: 40.868 71.325
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.18e-09 +/- 4.96e-09
Energy Flux (Fixed Index): 7.61e-06 +/- 4.11e-06

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) = 373146.968999
delta logL = 1.03082549194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 373146.966101
delta logL = 1.03372264933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1260       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9880       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98551       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   373147.0     FROM MIGRAD    STATUS=FAILED        80 CALLS      267 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1258        13.318        .28280E-03   -.31131E-03
   2  alpha         2.9880        3.7791        .20192E-01    .35389E-03
   3  Normalizat    1.1933        .85433E-01    .80745E-03   -.78666E-03
   4  Prefactor     .98551        .81114E-02    .12426E-03   -.11815E-01
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   373147.0     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      351 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1258        13.318        .68115E-04   -.31131E-03
   2  alpha         2.9880        3.7791        .95980E-03    .35389E-03
   3  Normalizat    1.1933        .85433E-01    .21305E-04   -.78666E-03
   4  Prefactor     .98551        .81114E-02    .12830E-04   -.11815E-01
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   373147.0     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      392 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1258        2.0349        .11312E-04    .11578E-03
   2  alpha         2.9880        .54641        .80768E-03    .81076E-05
   3  Normalizat    1.1933        .65388E-01    .32298E-04    .63077E-04
   4  Prefactor     .98551        .91280E-02    .24851E-04   -.12297E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12584
  alpha      = 2.98801
  Normalizat = 1.19329
  Prefactor  = 0.985513
 **********
 **   18 **HESSE 
 **********

 FCN=   373147.0     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1258        1.9534        .22624E-05   -1.5416    
   2  alpha         2.9880        .52497        .32307E-04    .19646    
   3  Normalizat    1.1933        .65226E-01    .64596E-05   -.86810    
   4  Prefactor     .98551        .91238E-02    .49702E-05   -.93214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0588e-11
Minuit parameter uncertainties:
  1  1.95345
  2  0.529069
  3  0.0652301
  4  0.00912381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161091': 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) = 373146.966101
delta logL = 1.03372266208

Extracting fit parameters...

4FGL J0243.4+7119
   Spectrum: LogParabola
270         norm:  2.126e+00  1.953e+00  1.000e-04  1.000e+04 ( 1.000e-13)
271        alpha:  2.988e+00  5.291e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  1.458e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  2.193e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.855e-01  9.124e-03  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  1.193e+00  6.523e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.46
Ra Dec: 40.868 71.325
Photon Index (Free Index): 2.99 +/- 0.53
Photon Flux (Free Index): 4.18e-08 +/- 2.32e-08
Energy Flux (Free Index): 1.10e-05 +/- 4.01e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/161091/cmap_HighResolution_675043201_677635201_4FGL_J0243.4+7119_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.18e-09', energy_flux2='1.10e-05', photon_flux_error='4.96e-09', dlogl='1.03e+00', energy_flux='7.61e-06', photon_flux2='4.18e-08', job_status='DONE', time_completed='2022-06-23 06:44:34.834261', photon_index_error2='0.53', photon_index2='2.99', ts='7.36', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.01e-06', EG='1.21', time_epoch_completed='1655991874.83', return_code='0', job_id='161091', GAL2='0.99', EG2='1.19', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='2.32e-08', ts2='9.46', photon_index='2.02' WHERE bin_id='169' AND source_name='4FGL J0243.4+7119' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:44:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 161091: <4FGL_J0243.4+7119_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0243.4+7119_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:20:28 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:22:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:22:31 2022
Terminated at Thu Jun 23 06:44:37 2022
Results reported at Thu Jun 23 06:44:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0243.4+7119_monthly_bin169 40.8679 71.3249 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0243.4+7119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   19187.00 sec.
    Max Memory :                                 966 MB
    Average Memory :                             849.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   19327 sec.
    Turnaround time :                            19449 sec.

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

