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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin755
RA = 183.001, Dec = -23.4494
tmin = 435024001, tmax = 435283201
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='407089', job_status='RUN', time_executed='2021-09-05 03:54:57.228661', time_epoch_executed='1630839297.23' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407089/ft1_4FGL_J1212.0-2326_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407089/ft1_4FGL_J1212.0-2326_daily_bin755.fits outfile=/scratch/kocevski/407089/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin755.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.02
user 4.79
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.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/407089/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/407089/ltcube_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.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/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits
.....................!
real 11.98
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/407089/ltcube_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.fits outfile=/scratch/kocevski/407089/expmap_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.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/407089/ltcube_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.fits
.....................!
real 189.58
user 185.05
sys 4.16

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits scfile=/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits outfile=/scratch/kocevski/407089/cmap_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.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=183.001 yref=-23.4494 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits scfile=/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits outfile=/scratch/kocevski/407089/cmap_HighResolution_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.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=183.001 yref=-23.4494 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407089/Model_4FGL_J1212.0-2326_daily_bin755.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/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits.....................!
real 58.98
user 57.62
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits', '/scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits', expMap='/scratch/kocevski/407089/expmap_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.fits', expCube='/scratch/kocevski/407089/ltcube_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/407089/Model_4FGL_J1212.0-2326_daily_bin755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/407089/ft1_filtered_4FGL_J1212.0-2326_daily_bin755.fits
Spacecraft file(s): /scratch/kocevski/407089/ft2_4FGL_J1212.0-2326_daily_bin755.fits
Exposure map: /scratch/kocevski/407089/expmap_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.fits
Exposure cube: /scratch/kocevski/407089/ltcube_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/407089/Model_4FGL_J1212.0-2326_daily_bin755.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) = 6811.73594138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.8982       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.422       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6020       1.0000         .10000E-03   10000.    
     9 'norm      '    .10508E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.310       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11304E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7705       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3263       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.4089       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2335       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97120       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6811.640     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2748 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7339        9.3519        .25794E-08    .14453E-04
   2  Prefactor     .10000E-03    41.548       -.64211E-05** at limit **
   3  norm          3.8980        1.5921        .62379E-07    .29418E-03
   4  Prefactor     42.422        42.332        .20169E-06    .13125E-05
   5  Prefactor     3.7088        4.7436        .25316E-05    .28987E-03
   6  Prefactor     .10000E-03    11.196        .91450E-07** at limit **
   7  norm          8.8611        12.581        .36277E-07    .50355E-05
   8  Prefactor     6.6009        13.170        .14858E-05    .45736E-04
   9  norm          .10000E-03    2.4839        .63378E-07** at limit **
  10  Prefactor     .10000E-03    2.2818        .16048E-07** at limit **
  11  Prefactor     20.310        32.940       -.31159E-06    .84548E-05
  12  Prefactor     .10094E-03    25.911       -.36066E-05** at limit **
  13  Prefactor     .10000E-03    20.112       -.20832E-06** at limit **
  14  Prefactor     41.185        40.275        .12689E-06    .33466E-04
  15  Prefactor     .10000E-03    8.5718       -.45818E-07** at limit **
  16  Prefactor     .10000E-03    7.1957       -.28124E-07** at limit **
  17  Prefactor     9.1977        2.9525        .24272E-07    .16232E-04
  18  Prefactor     4.7713        9.7944        .19451E-06   -.23823E-05
  19  norm          1.3264        .93346        .22046E-07   -.10024E-04
  20  Prefactor     .10000E-03    38.940        .61496E-05** at limit **
  21  norm          5.4096        5.8831        .90832E-06   -.19051E-04
  22  Prefactor     3.2340        4.1892       -.21524E-06   -.57876E-04
  23  Normalizat    .97132        .22382       -.12541E-05    .11443E-03
  24  Prefactor     .98734        .11348       -.12012E-06    .15706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.73389
  Prefactor  = 0.0001
  norm       = 3.89796
  Prefactor  = 42.4223
  Prefactor  = 3.70877
  Prefactor  = 0.0001
  norm       = 8.86105
  Prefactor  = 6.60089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3103
  Prefactor  = 0.000100936
  Prefactor  = 0.0001
  Prefactor  = 41.1851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.1977
  Prefactor  = 4.77132
  norm       = 1.32639
  Prefactor  = 0.0001
  norm       = 5.40963
  Prefactor  = 3.23395
  Normalizat = 0.971321
  Prefactor  = 0.98734
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.640     FROM HESSE     STATUS=OK           407 CALLS     3155 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7339        9.3547        .12844E-03   -1.5084    
   2  Prefactor     .10000E-03    41.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8980        1.5939        .64327E-04   -1.5313    
   4  Prefactor     42.422        42.345        .61549E-04   -1.4404    
   5  Prefactor     3.7088        4.7544        .97487E-03   -1.5323    
   6  Prefactor     .10000E-03    11.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8611        12.580        .13465E-03   -1.5113    
   8  Prefactor     6.6009        13.109        .78090E-03   -1.5194    
   9  norm          .10000E-03    2.5110        .12646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3035        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.310        32.916        .88874E-04   -1.4806    
  12  Prefactor     .10094E-03    26.012        .10788       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.185        40.226        .62460E-04   -1.4424    
  15  Prefactor     .10000E-03    8.5864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.1977        2.9464        .78019E-04   -1.5101    
  18  Prefactor     4.7713        9.7838        .18421E-03   -1.5271    
  19  norm          1.3264        .92572        .63961E-04   -1.5478    
  20  Prefactor     .10000E-03    38.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.4096        5.8701        .86393E-03   -1.5243    
  22  Prefactor     3.2340        4.1716        .17850E-03   -1.5348    
  23  Normalizat    .97132        .26380        .34128E-03   -.93997    
  24  Prefactor     .98734        .13488        .17657E-03   -.93153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17994e-10
Minuit parameter uncertainties:
  1  9.3561
  2  2.20585e-05
  3  1.59391
  4  42.3748
  5  4.75488
  6  4.37419e-07
  7  12.5833
  8  13.1145
  9  5.29063e-07
  10  4.06669e-06
  11  32.945
  12  0.00987339
  13  8.86749e-07
  14  40.2523
  15  2.50997e-06
  16  8.33708e-07
  17  2.94643
  18  9.78711
  19  0.925731
  20  4.33072e-05
  21  5.87077
  22  4.17202
  23  0.26415
  24  0.13493
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.867e-07  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.873e-01  1.349e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.713e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407089/likelihoodResults_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.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) = 6811.64061824
delta logL = -0.000236719391069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6811.64038143
delta logL = 8.70304575074e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6811.640     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.0552        .90712E-02** at limit **
   2  Index         2.0143        8.2744        .50000       -.32283E-05
   3  Normalizat    .97132        .17541E-02    .77114E-01   -.58902E-03
   4  Prefactor     .98734        .91893E-03    .46109E-01   -.14366E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.0143
  Normalizat = 0.971321
  Prefactor  = 0.987338
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.640     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    38.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0143        5.4704        .50000       -.63993    
   3  Normalizat    .97132        .75378E-02    .34128E-03   -.93997    
   4  Prefactor     .98734        .39552E-02    .17657E-03   -.93153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.93616e-10
Minuit parameter uncertainties:
  1  0.000992109
  2  56.8108
  3  0.00753779
  4  0.00395519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407089': 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) = 6811.64038143
delta logL = 9.32859620661e-08

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  9.921e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.014e+00  5.681e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.873e-01  3.955e-03  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.713e-01  7.538e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/407089/cmap_HighResolution_435024001_435283201_4FGL_J1212.0-2326_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-05 04:07:13.469888', job_id='407089', GAL2='0.99', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630840033.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='755' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:07:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 407089: <4FGL_J1212.0-2326_daily_bin755> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin755> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 03:50:50 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:50:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:50:51 2021
Terminated at Sun Sep  5 04:07:13 2021
Results reported at Sun Sep  5 04:07:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin755 183.001 -23.4494 435024001 435283201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

